Sha256: f3d73dc34b42bda38d68c5d8e5a457f200d860d59c1a50ad560a566c50d2b72d

Contents?: true

Size: 614 Bytes

Versions: 21

Compression:

Stored size: 614 Bytes

Contents

    <h4><%= _("Currently this article has the following resources")%></h4>
    <% for resource in @article.resources %>
      <%= link_to_remote "- #{resource.filename}", :url => { :action => "resource_remove", :id => @article.id, :resource_id => resource.id}, :update => 'resources' %><br/>
    <% end %>

    <h4><%= _("You can associate the following resources")%></h4>
    <% for resource in @resources - @article.resources %>
      <%= link_to_remote "+ #{resource.filename}", :url => { :action => "resource_add", :id => @article.id, :resource_id => resource.id}, :update => 'resources' %><br/>
    <% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
typo-5.3 app/views/admin/content/_show_resources.html.erb