CHANGE: Attachment-Einbindung in TinyMCE mit Thumbnails und eigenem Partial-View

This commit is contained in:
HausdorffHimself
2013-08-27 18:35:50 +02:00
parent 348c81b856
commit 338f3a0a06
6 changed files with 49 additions and 16 deletions

View File

@@ -24,12 +24,4 @@
<br/>
<h2>Attachments:</h2>
<% @thema.attachments.each do |attachment| %>
<ul>
<li>
<%= link_to attachment.name, edit_thema_attachment_path(@thema,attachment) %> | <%= link_to 'Destroy',[@thema,attachment], method: :delete, data: { confirm: 'Are you sure?' } %>
</li>
</ul>
<% end %>
<%= link_to 'Neues Attachment', new_thema_attachment_path(@thema) %>
<br/>
<%= render :partial => "themen/select", :object => @thema, :locals => { :editor => :false }%>