Commits

Christian Scholz  committed 2e247d9

added hover effect for edit/info/trash

  • Participants
  • Parent commits a222b77

Comments (0)

Files changed (1)

File quantumbuster/assets/templates/index.pt

     <img src="/static/img/icon-icons.png" />
       <div id="thumbs">
       <tal:block repeat="asset latest">
-        <a class="noopener" id="o-${asset.get_id()}" href="/pdf/${asset.filename}"><img class="thumb" src="/assets/${asset.context.variants['squared']}" width="100" height="100" /></a>
-		<div class="button-edit"><a href="/edit/${asset.filename}">[ edit ]</a></div>
-        <div tal:content="asset.context.mimetype" style="display:none"/>
-          <div class="dialog" id="d-${asset.get_id()}" style="display:none">
-            <div class="info-image">
-            <a target="image" class="closer" id="c-${asset.get_id()}" href="/assets/${asset.filename}">            
-                <img src="/assets/${asset.context.variants['small']}" />
-            </a>
+      
+        <div class="asset">
+            <a class="noopener" id="o-${asset.get_id()}" href="/pdf/${asset.filename}"><img class="thumb" src="/assets/${asset.context.variants['squared']}" width="100" height="100" /></a>
+            <div class="asset-info">
+                <a href="#" class="asset-button ui-icon ui-icon-info">Info</a>
+                <a href="/edit/${asset.filename}" class="asset-button ui-icon ui-icon-pencil">Edit</a>
+                <a href="#" class="asset-button ui-icon ui-icon-trash">Remove</a>
             </div>
-            <div class="info-title">Filename: ${asset.title}</div>
-            <div class="info-size">Size: ${asset.size}</div>
-            <div class="info-created">Created: ${asset.creation_date}</div>
-          </div>
+        </div>
       </tal:block>
       </div>
     <a href="/add">Add new file</a>