summaryrefslogtreecommitdiff
path: root/web/views/reports
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-31 20:35:18 +0100
committerJochen Topf <jochen@topf.org>2013-01-31 20:35:18 +0100
commitb940c8b01a379519dcfc2ac88c7beca86aa79854 (patch)
treeb40eff44ab39a316c1b70862d4ec2317df30a1ed /web/views/reports
parent59ca7dcc45cae63309795d3b30822fa06d4b7cb1 (diff)
downloadtaginfo-b940c8b01a379519dcfc2ac88c7beca86aa79854.tar
taginfo-b940c8b01a379519dcfc2ac88c7beca86aa79854.tar.gz
Hide unfinished reports.
Reports without sources are now "hidden", ie. they are not visible in the list of reports. But if you know the URL you can access them. This allows them to be tested before they are publicly released. Similarly APIs being tested can now use the API version 0, which will make them invisible in the API documentation.
Diffstat (limited to 'web/views/reports')
-rw-r--r--web/views/reports/index.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/views/reports/index.erb b/web/views/reports/index.erb
index 1717977..1bd6e8b 100644
--- a/web/views/reports/index.erb
+++ b/web/views/reports/index.erb
@@ -6,7 +6,7 @@
<h2><%= t.pages.reports.list %></h2>
<table class="list">
<tr><th class="tc" colspan="<%= Source.visible.size %>"/><%= t.pages.reports.data_sources %></th><th class="tl"><%= t.taginfo.report %></th></tr>
- <% Report.each_with_index do |report, n| c = (n%2!=0) ? ' even' : '' %>
+ <% Report.each_visible_with_index do |report, n| c = (n%2!=0) ? ' even' : '' %>
<tr>
<% Source.visible.each do |source| %>
<td class="tc<%= c %>" width="40"><%= source.img(16, t.taginfo.uses_data_from) if report.uses_source?(source.id) %></td>