summaryrefslogtreecommitdiff
path: root/web/views/sources.erb
blob: de202aa0e96b4e2943aa4d73a4f1be8b9284f365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class="pre">
    <h1 class="section"><%= h(t.taginfo.sources) %></h1>
    <%= t.pages.sources.intro %>
</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(t.sources[source.id].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=""/>&nbsp;&nbsp;<%= h(t.sources[source.id].name) %>
                    <td class="tc<%= c %> nowrap"><%= h(source.data_until) %> UTC</td>
                    <td class="tc<%= c %> nowrap"><%= h(source.update_start.to_s + ' ' + t.pages.sources.to + ' ' + source.update_end.to_s) %> UTC</td>
                </tr>
<% end %>
            </table>
            <p class="note">* <%= h(t.pages.sources.data_until_explanation) %></p>
        </td>
    </tr>
</table>