Sha256: 4ea61750b404e39314ffaea6c9608a50585397b5eab31f8a4393760644255468

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

<% attached = (controller.action_name == 'attach' or controller.controller_name != 'assets') %>
<%= link_to_function truncate(asset.filename,{:length => 50}), "AssetBrowser.openInfo(#{asset.id}, this)" %> - <%= asset.description %>
<div>
<%= link_to_function "View Info", "AssetBrowser.openInfo(#{asset.id}, this)", :title => "View and update information for this file." %><br/>

<% if for_content or attached %>
  <%= link_to_function "Insert", "addAsset(#{asset.id})", :title => "Insert a link to this file into the currently active text area on the left." %><br />
<% end -%>
<br/>
<% if for_content %>
  <%= link_to_function "Attach", "AssetBrowser.addAssetToContentNode(#{asset.to_json}.#{asset.class.name.demodulize.underscore})", :title => "Show this file in the current page's downloads list." %>
<% elsif attached %>
  <%= link_to_function "Detach", "AssetBrowser.removeAssetFromContentNode(#{asset.id})", :title => "Remove this file from the current page, still available to other pages." %>
<% else %>
  <%= link_to_function "Delete", "AssetBrowser.assetAction(#{asset.to_json}.#{asset.class.name.demodulize.underscore})", :title => "Totally delete this file from all pages of the website, not undo-able" %>
<% end -%>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
beef-has_assets-0.7.12 app/views/admin/assets/_document.html.erb
beef-has_assets-0.7.11 app/views/admin/assets/_document.html.erb
beef-has_assets-0.7.10 app/views/admin/assets/_document.html.erb
beef-has_assets-0.7.9 app/views/admin/assets/_document.html.erb
beef-has_assets-0.7.8 app/views/admin/assets/_document.html.erb
beef-has_assets-0.7.7 app/views/admin/assets/_document.html.erb