Merge pull request #91 from finnlabs/21920-move-new-meeting-link

Move 'Create meeting' to toolbar
pull/6827/head
Stefan Botzenhart 9 years ago
commit e492427dd2
  1. 10
      app/views/meetings/index.html.erb
  2. 5
      lib/open_project/meeting/engine.rb

@ -21,7 +21,15 @@ See doc/COPYRIGHT.md for more details.
<% html_title l(:label_meeting_plural) %>
<%= toolbar title: l(:label_meeting_plural) %>
<%= toolbar title: l(:label_meeting_plural) do %>
<% if authorize_for(:meetings, :new) %>
<a href="<%= new_meeting_path %>" id="add-meeting-button" title="Add meeting" class="button -alt-highlight">
<i class="button--icon icon-add"></i>
<span class="button--text"><%= I18n.t(:label_meeting_new) %></span>
</a>
<% end %>
<% end %>
<% if @meetings_by_start_year_month_date.empty? -%>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else -%>

@ -51,11 +51,6 @@ module OpenProject::Meeting
param: :project_id,
after: :wiki,
html: { class: 'icon2 icon-quote' }
menu :project_menu, :new_meeting, { controller: '/meetings', action: 'new' },
param: :project_id,
caption: :label_meeting_new,
parent: :meetings,
html: { class: 'icon2 icon-add' }
ActiveSupport::Inflector.inflections do |inflect|
inflect.uncountable 'meeting_minutes'

Loading…
Cancel
Save