truncate export names longer than 80 chars
[MojoFacets.git] / templates / data / export.html.ep
index 90fa954..36896d0 100644 (file)
@@ -4,15 +4,19 @@
 % foreach my $e ( @$export ) {
 %  my $path = $e; $path =~ s{^.+/public/export/}{};
 <li>
+<label>
 <tt>
 <a target="<%= $path %>" href="/export/<%= $path %>"><%= $path %></a>
 </tt>
 <%= -s $e %> bytes
-%  if ( $path =~ m/\.png$/ ) {
-<img src="/export/<%= $path %>">
-%  } else {
+<a class=remove href="<%= url_for( action => 'export' )->query( 'remove' => $path ) %>">remove</a>
+%  if ( $path =~ m/\/filter/ ) {
 <a href="?import=<%= $path %>">import</a>
 %  }
+</label>
+%  if ( -e $e . '.png' ) {
+<br><img src="/export/<%= $path %>.png">
+%  }
 % }
 </ul>