Skip to content

Instantly share code, notes, and snippets.

@pcarrier
Created August 25, 2009 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcarrier/174616 to your computer and use it in GitHub Desktop.
Save pcarrier/174616 to your computer and use it in GitHub Desktop.
<h2>
<span class="analyzed icon">
<%= i18n.analyzed.section %>
</span>
</h2>
<div class="inner">
<div class="list">
<% if(@analyzed and @analyzed.length != 0) - %>
<table>
<thead><tr>
<th><%= i18n.report.name %></td>
<th><%= i18n.report.in_album %></td>
<th><%= i18n.report.creation_date %></td>
<th></th>
</tr></thead>
<tbody>
<% for report in @analyzed -%>
<tr>
<td class="name"><%= report.name %></td>
<td class="name"><%= report.album.name %></td>
<td><%= show_date(report.created_at) %></td>
<td class="actions">
<a href="<%= "/analyses/#{@analysis.id}/reports/remove/#{report.id}" %>"
rel="nofollow"
title="<%= i18n.report.remove_from_analysis %>">
<img src="/icones/delete-trans.png"/>
</a>
</td>
</tr>
<%- end %>
</tbody>
</table>
<%- else -%>
<i><%= i18n.analyzed.none %></i>
<%- end %>
</div>
</div>
%h2
%span.analyzed.icon= i18n.analyzed.section
.inner
.list
- if @analyzed and @analyzed.length != 0
%table
%thead
%tr
%th= i18n.report.name
%th= i18n.report.in_album
%th= i18n.report.creation_date
%th
%tbody
- for report in @analyzed
%tr
%td.name
= report.name
%td.name
= report.album.name
%td
= show_date(report.created_at)
%td.actions
%a{:href => "/analyses/#{@analysis.id}/reports/remove/#{report.id}",
:rel => "nofollow",
:title => i18n.report.remove_from_analysis}
%img(src='/icons/delete-trans.png')
- else
%i= i18n.analyzed.none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment