FEATURE: add a link to the topic in the banner for staff members

This commit is contained in:
Régis Hanol 2015-06-09 19:31:14 +02:00
parent 7b6d6b76eb
commit 90eca69e0a
3 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,9 @@
<div id="banner-content">
<div class="close" {{action "dismiss"}}><i class="fa fa-times" title="{{i18n 'banner.close'}}"></i></div>
{{{banner.html}}}
{{#if currentUser.staff}}
<p><a href="{{banner.url}}">{{{i18n "banner.edit"}}}</a></p>
{{/if}}
</div>
</div>
</div>

View File

@ -662,7 +662,8 @@ class Topic < ActiveRecord::Base
{
html: post.cooked,
key: self.id
key: self.id,
url: self.url
}
end

View File

@ -218,6 +218,7 @@ en:
banner:
close: "Dismiss this banner."
edit: "Edit this banner >>"
choose_topic:
none_found: "No topics found."