myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3653] branches/packs/app/views/packs/_resource_t


From: noreply
Subject: [myexperiment-hackers] [3653] branches/packs/app/views/packs/_resource_tile.html.erb: tweaked folder display
Date: Mon, 2 Sep 2013 01:34:10 +0000 (UTC)

Revision
3653
Author
dgc
Date
2013-09-02 01:34:10 +0000 (Mon, 02 Sep 2013)

Log Message

tweaked folder display

Modified Paths

Diff

Modified: branches/packs/app/views/packs/_resource_tile.html.erb (3652 => 3653)


--- branches/packs/app/views/packs/_resource_tile.html.erb	2013-09-01 23:45:50 UTC (rev 3652)
+++ branches/packs/app/views/packs/_resource_tile.html.erb	2013-09-02 01:34:10 UTC (rev 3653)
@@ -2,11 +2,15 @@
 <% association = find_association(resource) %>
 <tr>
   <td><img src="" association["image"] -%>"> <%= link_to(h(resource.folder_entry.entry_name), pack_items_path(pack) + "/" + ore_path) -%></td>
-  <td><%=h resource.size -%></td>
+  <% if resource.is_folder || resource.is_proxy %>
+    <td></td>
+  <% else %>
+    <td><%=h resource.size -%></td>
+  <% end %>
   <td><%=h association["label"] -%></td>
   <td><%=h resource.annotations.count -%></td>
   <td>
-    <% if Authorization.check('destroy', resource, current_user) %>
+    <% if !resource.is_folder && Authorization.check('destroy', resource, current_user) %>
       <%= link_to("<img src='' />",
           pack_item_path(pack, ore_path),
           :method => :delete,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]