|
|
|
@ -19,18 +19,40 @@ See doc/COPYRIGHT.md for more details. |
|
|
|
|
|
|
|
|
|
++#%> |
|
|
|
|
|
|
|
|
|
<% content_for :action_menu_specific do %> |
|
|
|
|
<%= watcher_link @meeting, User.current %> |
|
|
|
|
<%= link_to_if_authorized(l(:button_edit), {:controller => '/meetings', :action => 'edit', :id => @meeting}, :class => 'icon icon-edit', :accesskey => accesskey(:edit))%> |
|
|
|
|
<%= 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-delete')%> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<% html_title "#{l(:label_meeting)}: #{@meeting.title}" %> |
|
|
|
|
<%= toolbar title: "#{l(:label_meeting)}: #{link_to @meeting}" do %> |
|
|
|
|
<% unless User.current.anonymous? %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<div class="button"> |
|
|
|
|
<%= watcher_link @meeting, User.current %> |
|
|
|
|
</div> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<% if authorize_for(:meetings, :edit) %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<%= link_to({:controller => '/meetings', :action => 'edit', :id => @meeting}, class: 'button',:accesskey => accesskey(:edit)) do%> |
|
|
|
|
<i class="button--icon icon-edit"></i> <%= l(:button_edit) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<% if authorize_for(:meetings, :copy) %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<%= link_to({:controller => '/meetings', :action => 'copy', :id => @meeting}, class: 'button') do %> |
|
|
|
|
<i class="button--icon icon-copy"></i> <%= l(:button_copy) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<% if authorize_for(:meetings, :delete) %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<%= link_to({:controller => '/meetings', :action => 'destroy', :id => @meeting}, class: 'button') do %> |
|
|
|
|
<i class="button--icon icon-delete"></i> <%= l(:button_delete) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<div class="top-page"> |
|
|
|
|
<%= render :partial => 'layouts/action_menu_specific' %> |
|
|
|
|
<h2 title="<%= h @meeting.title %>"><%= l(:label_meeting) %>: <%= link_to @meeting %></h2> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="meeting details box"> |
|
|
|
|