diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-01 14:44:49 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-01 14:44:49 +0100 |
commit | a5ac86246481bba7fbdd5e5afc4a93d4f9fa0641 (patch) | |
tree | 3b979dcf8b0c571033c20b4097ecfefc5b57ee15 /web/views/reports | |
parent | 1f939fbdd1f94b18056c05eba14d2e509a5ae32b (diff) | |
download | taginfo-a5ac86246481bba7fbdd5e5afc4a93d4f9fa0641.tar taginfo-a5ac86246481bba7fbdd5e5afc4a93d4f9fa0641.tar.gz |
List table layout cleanup
Diffstat (limited to 'web/views/reports')
-rw-r--r-- | web/views/reports/index.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/views/reports/index.erb b/web/views/reports/index.erb index 122e5c0..94928a8 100644 --- a/web/views/reports/index.erb +++ b/web/views/reports/index.erb @@ -3,13 +3,13 @@ <%= t.pages.reports.index.intro %> <table class="list"> - <tr><th colspan="<%= Source.visible.size %>"/><%= t.pages.reports.index.data_sources %></th><th>Report</th></tr> -<% Report.each do |report| %> + <tr><th class="tc" colspan="<%= Source.visible.size %>"/><%= t.pages.reports.index.data_sources %></th><th class="tl">Report</th></tr> +<% Report.each_with_index do |report, n| c = (n%2!=0) ? ' even' : '' %> <tr> <% Source.visible.each do |source| %> - <td width="35"><%= source.link_img if report.uses_source? source.id %></td> + <td class="tc<%= c %>" width="45"><%= source.link_img if report.uses_source? source.id %></td> <% end %> - <td><a href="<%= report.url %>"><%= t.reports[report.name].name %></a></td> + <td class="tl<%= c %>"><a href="<%= report.url %>"><%= t.reports[report.name].name %></a></td> </tr> <% end %> </table> |