Skip to content

Commit

Permalink
Move the Create Status Message back to the News box
Browse files Browse the repository at this point in the history
The Create Status Message action is best placed close its context, the News box,
where the status messages live.
  • Loading branch information
danidoni committed Oct 15, 2020
1 parent bd81115 commit 96f41b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/api/app/views/webui/main/_status_messages.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
.card-header.d-flex.justify-content-between
%h5
News
- if feature_enabled?(:responsive_ux) && policy(StatusMessage.new).create?
= link_to(new_status_message_path, title: 'Create Status Message') do
%i.fas.fa-xs.fa-plus-circle.text-primary
.float-right
= link_to(news_feed_path(format: 'rss'), title: 'RSS Feed') do
%i.fa.fa-rss
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
- content_for :actions do
- if policy(StatusMessage.new).create?
%li.nav-item
= link_to(new_status_message_path, class: 'nav-link', title: 'Create Status Message') do
%i.fas.fa-plus-circle.fa-lg.mr-2
%span.nav-item-name Create Status Message
%li.nav-item
= link_to(new_project_path, class: 'nav-link', title: 'Create Project') do
%i.fas.fa-plus-circle.fa-lg.mr-2
Expand Down

0 comments on commit 96f41b1

Please sign in to comment.