mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
PromoteLinkForm cleanup.
This commit is contained in:
@@ -3318,7 +3318,7 @@ class PromoteLinkForm(Templated):
|
||||
def setup(self, link, listing):
|
||||
self.bids = []
|
||||
if c.user_is_sponsor:
|
||||
self.author = Account._byID(link.author_id)
|
||||
self.author = Account._byID(link.author_id, data=True)
|
||||
try:
|
||||
bids = bidding.Bid.lookup(thing_id=link._id)
|
||||
except NotFound:
|
||||
|
||||
@@ -346,14 +346,14 @@ ${self.javascript_setup()}
|
||||
<input id="no_targeting" class="nomargin"
|
||||
type="radio" value="none" name="targeting"
|
||||
onclick="r.sponsored.targeting_off()"
|
||||
checked="checked" />
|
||||
checked="checked">
|
||||
${_("no targeting (displays site-wide)")}
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input id="targeting" class="nomargin"
|
||||
type="radio" value="one" name="targeting"
|
||||
onclick="r.sponsored.targeting_on()" />
|
||||
onclick="r.sponsored.targeting_on()">
|
||||
${_("enable targeting (runs on a specific subreddit)")}
|
||||
</label>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user