meeting ix
This commit is contained in:
@@ -20,16 +20,17 @@
|
||||
<%= raw(frage.text) %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% if can?(:edit,small) || !small.meetings.empty? %>
|
||||
<b>Treffen/Sitzungen</b>
|
||||
<%= link_to "Neues Meeting", new_meeting_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
||||
<div id="<%= Meeting.new_divid_for(small) %>"></div>
|
||||
|
||||
<% unless small.meetings.empty? %>
|
||||
<% small.meetings.each do |m| %>
|
||||
<%= render m %>
|
||||
<% end%>
|
||||
<% end%>
|
||||
|
||||
<% end %>
|
||||
<% if can?(:edit,small)|| ! small.documents.empty? %>
|
||||
<b>Dokumente</b>
|
||||
<%= link_to "Neues Dokument", new_document_path(:parent_id=>small.id, :parent_type=>"Thema"), :remote=>true %>
|
||||
<div id="<%= Document.new_divid_for(small) %>"></div>
|
||||
@@ -40,7 +41,7 @@
|
||||
|
||||
<% end%>
|
||||
<% end%>
|
||||
|
||||
<% end %>
|
||||
<% unless small.hideattachment %>
|
||||
<%= render partial: "themen/attachment_list", object: small.attachments, locals:{editor: false} unless small.attachments.empty? %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user