Use new icons from icon font

pull/6827/head
Christian Ratz 11 years ago
parent a9b777bce2
commit c7a012cf13
  1. 10
      app/helpers/meeting_contents_helper.rb
  2. 2
      app/views/meetings/show.html.erb
  3. 5
      lib/open_project/meeting/engine.rb

@ -48,16 +48,16 @@ module MeetingContentsHelper
def close_meeting_agenda_link(content_type, meeting) def close_meeting_agenda_link(content_type, meeting)
case content_type case content_type
when "meeting_agenda" when "meeting_agenda"
link_to_if_authorized l(:label_meeting_close), {:controller => '/meeting_agendas', :action => 'close', :meeting_id => meeting}, :method => :put, :class => "icon icon-lock show-meeting_agenda" link_to_if_authorized l(:label_meeting_close), {:controller => '/meeting_agendas', :action => 'close', :meeting_id => meeting}, :method => :put, :class => "icon icon-locked show-meeting_agenda"
when "meeting_minutes" when "meeting_minutes"
link_to_if_authorized l(:label_meeting_agenda_close), {:controller => '/meeting_agendas', :action => 'close', :meeting_id => meeting}, :method => :put, :class => "icon icon-lock show-meeting_minutes" link_to_if_authorized l(:label_meeting_agenda_close), {:controller => '/meeting_agendas', :action => 'close', :meeting_id => meeting}, :method => :put, :class => "icon icon-locked show-meeting_minutes"
end end
end end
def open_meeting_agenda_link(content_type, meeting) def open_meeting_agenda_link(content_type, meeting)
case content_type case content_type
when "meeting_agenda" when "meeting_agenda"
link_to_if_authorized l(:label_meeting_open), {:controller => '/meeting_agendas', :action => 'open', :meeting_id => meeting}, :method => :put, :class => 'icon icon-unlock show-meeting_agenda', :confirm => l(:text_meeting_agenda_open_are_you_sure) link_to_if_authorized l(:label_meeting_open), {:controller => '/meeting_agendas', :action => 'open', :meeting_id => meeting}, :method => :put, :class => 'icon icon-unlocked show-meeting_agenda', :confirm => l(:text_meeting_agenda_open_are_you_sure)
when "meeting_minutes" when "meeting_minutes"
end end
end end
@ -67,10 +67,10 @@ module MeetingContentsHelper
end end
def meeting_content_history_link(content_type, meeting) def meeting_content_history_link(content_type, meeting)
link_to_if_authorized l(:label_history), {:controller => '/' + content_type.pluralize, :action => 'history', :meeting_id => meeting}, :class => "icon icon-history show-#{content_type}" link_to_if_authorized l(:label_history), {:controller => '/' + content_type.pluralize, :action => 'history', :meeting_id => meeting}, :class => "icon icon-wiki show-#{content_type}"
end end
def meeting_content_notify_link(content_type, meeting) def meeting_content_notify_link(content_type, meeting)
link_to_if_authorized l(:label_notify), {:controller => '/' + content_type.pluralize, :action => 'notify', :meeting_id => meeting}, :method => :put, :class => "icon icon-notification show-#{content_type}" link_to_if_authorized l(:label_notify), {:controller => '/' + content_type.pluralize, :action => 'notify', :meeting_id => meeting}, :method => :put, :class => "icon icon-mail show-#{content_type}"
end end
end end

@ -22,7 +22,7 @@ See doc/COPYRIGHT.md for more details.
<%= watcher_link @meeting, User.current %> <%= watcher_link @meeting, User.current %>
<%= link_to_if_authorized(l(:button_edit), {:controller => '/meetings', :action => 'edit', :id => @meeting}, :class => 'icon icon-edit')%> <%= link_to_if_authorized(l(:button_edit), {:controller => '/meetings', :action => 'edit', :id => @meeting}, :class => 'icon icon-edit')%>
<%= link_to_if_authorized(l(:button_copy), {:controller => '/meetings', :action => 'copy', :id => @meeting}, :class => 'icon icon-copy')%> <%= link_to_if_authorized(l(:button_copy), {:controller => '/meetings', :action => 'copy', :id => @meeting}, :class => 'icon icon-copy')%>
<%= link_to_if_authorized(l(:button_delete), {:controller => '/meetings', :action => 'destroy', :id => @meeting}, :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del')%> <%= link_to_if_authorized(l(:button_delete), {:controller => '/meetings', :action => 'destroy', :id => @meeting}, :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-delete')%>
</div> </div>
<h2><%= l(:label_meeting) %>: <%= link_to @meeting %></h2> <h2><%= l(:label_meeting) %>: <%= link_to @meeting %></h2>

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

Loading…
Cancel
Save