forked from bofh/fetsite
attachment new version
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
<div>
|
||||
<b>Titlepics</b>
|
||||
|
||||
<% @thema.titlepics.each do |tp| %>
|
||||
<%= link_to image_tag(tp.datei.thumb.url) , set_titlepic_thema_attachment_path(tp.thema,tp,:params=>{:titlepic=>false}) %>
|
||||
<% end %></div>
|
||||
<b> List </b>
|
||||
<%= render partial: "themen/attachment_list", object:@thema.attachments ,locals: {:editor => true}%>
|
||||
<div>
|
||||
<b>Form</b>
|
||||
<%= render :partial=>"attachments/form_bulk" %>
|
||||
<%= render_attachments_for(@thema) %>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
|
||||
<% unless small.hideattachment %>
|
||||
<%= render partial: "themen/attachment_list", object: small.attachments, locals:{editor: false} unless small.attachments.empty? %>
|
||||
<%= render partial: "attachments/attachment_list", object: small.attachments, locals:{editor: false, parent: small} unless small.attachments.empty? %>
|
||||
<% end %>
|
||||
<br/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user