mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 07:19:25 -05:00
Read from PromotionLog.
This commit is contained in:
@@ -3148,6 +3148,7 @@ class PromoteLinkForm(Templated):
|
||||
else g.default_sr)
|
||||
# have the promo code wrap the campaigns for rendering
|
||||
self.link = promote.editable_add_props(link)
|
||||
self.promotion_log = promote.PromotionLog.get(link)
|
||||
|
||||
if not c.user_is_sponsor:
|
||||
self.now = promote.promo_datetime_now().date()
|
||||
|
||||
@@ -510,7 +510,7 @@ ${unsafe(js.use('sponsored'))}
|
||||
<input id="promote_note" name="note" value="" type="text" size="40" />
|
||||
<button type="submit">save</button>
|
||||
<div class="notes">
|
||||
%for line in getattr(thing.link, "promotion_log", []):
|
||||
%for line in thing.promotion_log:
|
||||
<p>${line}</p>
|
||||
%endfor
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user