File: referer.rhtml

package info (click to toggle)
tdiary 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,088 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 4
file content (24 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="day">
<% if @cgi.params['referer'][0] == 'no' then %>
<h2><span class="title"><%%=label_no_referer%></span></h2>
<div class="body">
<ul>
<%= (@conf.no_referer - @conf.no_referer2).collect{|r| "<li>#{h r}</li>\n" }.join %>
</ul>
</div>
<% elsif @cgi.params['referer'][0] == 'volatile' %>
<h2><span class="title"><%%=label_only_volatile%></span></h2>
<div class="body">
<ul>
<%= (@conf.only_volatile - @conf.only_volatile2).collect{|r| "<li>#{h r}</li>\n" }.join %>
</ul>
</div>
<% else %>
<h2><span class="title"><%%=label_referer_table%></span></h2>
<div class="body">
<table>
<%= (@conf.referer_table - @conf.referer_table2).collect{|r,n| "<td><td>#{h r}</td><td>#{h n}</td></tr>\n" }.join %>
</table>
</div>
<% end %>
</div>