root/config/pragger/yasuyuki/template.rhtml

Revision 27771, 3.4 kB (checked in by yasuyuki, 5 days ago)

取得対象タグ追加
BASEタグのURLをホスト名からの記述に修正

Line 
1<html>
2        <head>
3                <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4    <base href="<%= config['host'] + config['root_dir'] %>"/>
5    <link rel="alternate" type="application/rss+xml" title="ニコニコ動画 タグ「<%=ERB::Util.h config['tag_name'] %>」新着動画" href="<%= config['new_arrival_feed_url'] %>">
6                <title>ニコニコ動画 タグ 「<%=ERB::Util.h config['tag_name'] %>」 マイリスト率ランキング(β1)</title>
7        </head>
8        <body>
9        <div class="generated_at"><%=ERB::Util.h now.strftime("%Y/%m/%d %H:%M:%S") %> 生成</div>
10        <h1><a href="http://www.nicovideo.jp/">ニコニコ動画</a> タグ 「<a href="http://www.nicovideo.jp/tag/<%= CGI.escape config['tag_name'] %>"><%=ERB::Util.h config['tag_name'] %></a>」 マイリスト率ランキング(β1)</h1>
11        このランキングは、アップロードされてから約24時間以内のマイリスト登録率を元に生成されています。このアイデアを考え出した<a href="http://www.nicovideo.jp/tag/%E7%A7%8B%E6%9C%88%E7%8E%87%E5%AD%90P">秋月率子P</a>、そして、動画を見て、マイリストに登録してくれたすべての方に感謝します。<br/>
12        <a href="http://webgames.jp:3000/projects/nicolist-rank/boards">バグ報告・機能要望はこちらへ</a>
13  <a href="<%= config['new_arrival_feed_url'] %>">タグ検索新着RSS</a>
14        <div>
15                <a href="<%= tommorow_root %>1.html"<%= page == 0 ? ' rel="prev"' : "" %>>翌日</a> |
16                <a href="<%= yesterday_root %>1.html"<%= (page + 1) * config['by_page'].to_i >= rank_data.length ? ' rel="next"' : "" %>>前日</a>
17        </div>
18        <div>
19                <a href="<%= today_root %>1.html">1~30</a>
20                <a href="<%= today_root %>2.html">31~60</a>
21                <a href="<%= today_root %>3.html">61~90</a>
22        </div>
23  <div class="autopagerize_page_element">
24        <%      rank_data[(page * config['by_page'].to_i) ... ((page + 1) * config['by_page'].to_i)].each_with_index do |item, i|
25                                break if i >= rank_data.length %>
26        <div class="xfolkentry"><%=     (page * config['by_page'].to_i) + i + 1 %>位:<a href="<%= item['link'] %>" class="taggedlink description"><%=ERB::Util.h item['title'] %></a></div>
27        <div>再生数:<%= item['viewed'].to_i %> マイリスト数:<%= item['mylisted'].to_i %> マイリスト率:<%= (item['viewed'] == 0 ? 0 : item['mylisted'] / item['viewed']) * 100 %>%</div>
28        <iframe width="760" height="160" src="http://www.nicovideo.jp/thumb/<%= item['link'].scan(/\/([^\/]+)$/)[0] %>" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"></iframe>
29        <%      end %>
30        </div>
31        <div class="autopagerize_insert_before">
32                <a href="<%= today_root %>1.html"<%= page == 1 ? ' rel="prev"' : "" %>>1~30</a>
33                <a href="<%= today_root %>2.html"<%= page == 0 && (page + 1) * config['by_page'].to_i < rank_data.length ? ' rel="next"' : "" %><%= page == 2 ? ' rel="prev"' : "" %>>31~60</a>
34                <a href="<%= today_root %>3.html"<%= page == 1 && (page + 1) * config['by_page'].to_i < rank_data.length ? ' rel="next"' : "" %>>61~90</a>
35        </div>
36        <div style="align:right"><a href="http://twitter.com/YaSuYuKi">Profile</a></div>
37        <div><a href="http://webgames.jp:3000/projects/show/nicolist-rank">nicolist-rank</a> project.</div>
38        <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
39        </script>
40        <script type="text/javascript">
41        _uacct = "UA-51177-1";
42        urchinTracker();
43        </script>
44        </body>
45</html>
Note: See TracBrowser for help on using the browser.