mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +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 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,9 @@
|
||||||
<div id="banner-content">
|
<div id="banner-content">
|
||||||
<div class="close" {{action "dismiss"}}><i class="fa fa-times" title="{{i18n 'banner.close'}}"></i></div>
|
<div class="close" {{action "dismiss"}}><i class="fa fa-times" title="{{i18n 'banner.close'}}"></i></div>
|
||||||
{{{banner.html}}}
|
{{{banner.html}}}
|
||||||
|
{{#if currentUser.staff}}
|
||||||
|
<p><a href="{{banner.url}}">{{{i18n "banner.edit"}}}</a></p>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -662,7 +662,8 @@ class Topic < ActiveRecord::Base
|
||||||
|
|
||||||
{
|
{
|
||||||
html: post.cooked,
|
html: post.cooked,
|
||||||
key: self.id
|
key: self.id,
|
||||||
|
url: self.url
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -218,6 +218,7 @@ en:
|
||||||
|
|
||||||
banner:
|
banner:
|
||||||
close: "Dismiss this banner."
|
close: "Dismiss this banner."
|
||||||
|
edit: "Edit this banner >>"
|
||||||
|
|
||||||
choose_topic:
|
choose_topic:
|
||||||
none_found: "No topics found."
|
none_found: "No topics found."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue