mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:01:52 +08:00
FEATURE: add a link to the topic in the banner for staff members
This commit is contained in:
parent
7b6d6b76eb
commit
90eca69e0a
|
@ -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>
|
||||
|
|
|
@ -662,7 +662,8 @@ class Topic < ActiveRecord::Base
|
|||
|
||||
{
|
||||
html: post.cooked,
|
||||
key: self.id
|
||||
key: self.id,
|
||||
url: self.url
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -218,6 +218,7 @@ en:
|
|||
|
||||
banner:
|
||||
close: "Dismiss this banner."
|
||||
edit: "Edit this banner >>"
|
||||
|
||||
choose_topic:
|
||||
none_found: "No topics found."
|
||||
|
|
Loading…
Reference in New Issue
Block a user