UX: banner enabled/disabled posts should be small posts, not full-size posts

This commit is contained in:
Neil Lalonde 2017-03-16 17:31:27 -04:00
parent 63c8b23690
commit ad8a579c79
3 changed files with 7 additions and 2 deletions

View File

@ -16,6 +16,8 @@ const icons = {
'pinned.disabled': 'thumb-tack unpinned',
'pinned_globally.enabled': 'thumb-tack',
'pinned_globally.disabled': 'thumb-tack unpinned',
'banner.enabled': 'thumb-tack',
'banner.disabled': 'thumb-tack unpinned',
'visible.enabled': 'eye',
'visible.disabled': 'eye-slash',
'split_topic': 'sign-out',

View File

@ -833,7 +833,7 @@ SQL
.update_all(dismissed_banner_key: nil)
self.archetype = Archetype.banner
self.add_moderator_post(user, I18n.t("archetypes.banner.message.make"))
self.add_small_action(user, "banner.enabled")
self.save
MessageBus.publish('/site/banner', banner)
@ -841,7 +841,7 @@ SQL
def remove_banner!(user)
self.archetype = Archetype.default
self.add_moderator_post(user, I18n.t("archetypes.banner.message.remove"))
self.add_small_action(user, "banner.disabled")
self.save
MessageBus.publish('/site/banner', nil)

View File

@ -162,6 +162,9 @@ en:
visible:
enabled: 'listed %{when}'
disabled: 'unlisted %{when}'
banner:
enabled: 'made this a banner %{when}. It will appear at the top of every page until it is dismissed by the user.'
disabled: 'removed this banner %{when}. It will no longer appear at the top of every page.'
topic_admin_menu: "topic admin actions"