diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-20 16:11:35 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-20 16:11:35 +0200 |
commit | 51ba2bdccc9bee872f28a61ee7539cd5752982dd (patch) | |
tree | 0cfe9db4477fa30346eccd867318b94589275677 /web/views | |
parent | 8cfce89148cfdbbd89a2f57ef20f670382cb774e (diff) | |
download | taginfo-51ba2bdccc9bee872f28a61ee7539cd5752982dd.tar taginfo-51ba2bdccc9bee872f28a61ee7539cd5752982dd.tar.gz |
Improved and extended /sources page.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/sources.erb | 50 |
1 files changed, 34 insertions, 16 deletions
diff --git a/web/views/sources.erb b/web/views/sources.erb index 4d338ee..4186d22 100644 --- a/web/views/sources.erb +++ b/web/views/sources.erb @@ -2,19 +2,37 @@ <h1 class="section"><%= h(t.taginfo.sources) %></h1> <%= t.pages.sources.intro %> </div> -<div class="box resize"> - <table class="list"> - <tr> - <th class="tl"><%= h(t.taginfo.source) %></th><th><%= h(t.pages.sources.data_until) %>*</th><th><%= h(t.pages.sources.last_update_run) %></th> - </tr> - <% Source.visible.each_with_index do |source, n| c = (n%2!=0) ? ' even' : '' %> - <tr> - <td class="<%= c %>"><%= h(source.name) %> - <td class="tc<%= c %>"><%= h(source.data_until) %> UTC</td> - <td class="tc<%= c %>"><%= h(source.update_start + ' ' + t.pages.sources.to + ' ' + source.update_end) %> UTC</td> - </tr> - <% end %> - </table> - - <p style="font-size: 80%">* <%= h(t.pages.sources.data_until_explanation) %></p> -</div> +<table class="boxes" width="100%"> + <tr> + <td><h2><%= h(t.pages.sources.list.title) %></h2></td> + <td rowspan="2" width="20"></td> + <td><h2><%= h(t.pages.sources.updates.title) %></h2></td> + </tr> + <tr> + <td class="box"> + <p><%= h(t.pages.sources.list.intro) %></p> +<% Source.visible.each_with_index do |source, n| c = (n%2!=0) ? ' even' : '' %> + <h2><img src="<%= source.imgurl(24) %>" width="24" height="24" alt=""/> <%= h(source.name) %></h2> + <%= t.pages.sources.description[source.id] %> +<% end %> + </td> + <td class="box"> + <p><%= h(t.pages.sources.updates.intro) %></p> + <table class="list"> + <tr> + <th class="tl"><%= h(t.taginfo.source) %></th> + <th><%= h(t.pages.sources.data_until) %>*</th> + <th><%= h(t.pages.sources.last_update_run) %></th> + </tr> +<% Source.visible.each_with_index do |source, n| c = (n%2!=0) ? ' even' : '' %> + <tr> + <td class="<%= c %>"><img src="<%= source.imgurl(16) %>" width="16" height="16" alt=""/> <%= h(source.name) %> + <td class="tc<%= c %> nowrap"><%= h(source.data_until) %> UTC</td> + <td class="tc<%= c %> nowrap"><%= h(source.update_start + ' ' + t.pages.sources.to + ' ' + source.update_end) %> UTC</td> + </tr> +<% end %> + </table> + <p class="note">* <%= h(t.pages.sources.data_until_explanation) %></p> + </td> + </tr> +</table> |