Changeset 10895 for config

Show
Ignore:
Timestamp:
05/01/08 23:24:46 (7 months ago)
Author:
yasuyuki
Message:

AutoPagerize用タグ出力を修正
Vocaloid3dの前後の日付へのリンクを修正

Location:
config/pragger/yasuyuki
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • config/pragger/yasuyuki/config_rank_vocaloid3d.yaml

    r10828 r10895  
    1010    by_page: 30 
    1111    fetch_date: /home/flame/var/tmp/nicovideo_cache_vocaloid3d.last_fetched 
    12     root_dir: /imas/ 
     12    root_dir: /vocaloid3d/ 
    1313    template: /home/flame/bin/config/template.rhtml 
    1414- module: Publish::nicorank_save_daily 
  • config/pragger/yasuyuki/template.rhtml

    r10828 r10895  
    1111        <a href="http://webgames.jp:3000/projects/nicolist-rank/boards">バグ報告・機能要望はこちらへ</a> 
    1212        <div> 
    13                 <a href="<%= "#{config['root_dir']}#{tommorow_root}1.html" %>"<%= page == 0 ? ' rel="prev"' : "" %>>翌日</a> 
    14                 <a href="<%= "#{config['root_dir']}#{yesterday_root}1.html" %>"<%= page == 2 ? ' rel="next"' : "" %>>前日</a> 
     13                <a href="<%= "#{config['root_dir']}#{tommorow_root}1.html" %>"<%= page == 0 ? ' rel="prev"' : "" %>>翌日</a> | 
     14                <a href="<%= "#{config['root_dir']}#{yesterday_root}1.html" %>"<%= (page + 1) * config['by_page'].to_i >= rank_data.length ? ' rel="next"' : "" %>>前日</a> 
    1515        </div> 
    1616        <div> 
    17                 <a href="1.html"<%= page == 1 ? ' rel="prev"' : "" %>>1~30</a> 
    18                 <a href="2.html"<%= page == 0 ? ' rel="next"' : "" %><%= page == 2 ? ' rel="prev"' : "" %>>31~60</a> 
    19                 <a href="3.html"<%= page == 1 ? ' rel="next"' : "" %>>61~90</a> 
     17                <a href="1.html">1~30</a> 
     18                <a href="2.html">31~60</a> 
     19                <a href="3.html">61~90</a> 
    2020        </div> 
    2121  <div class="autopagerize_page_element"> 
     
    2828        </div> 
    2929        <div class="autopagerize_insert_before"> 
    30                 <a href="1.html">1~30</a> 
    31                 <a href="2.html">31~60</a> 
    32                 <a href="3.html">61~90</a> 
     30                <a href="1.html"<%= page == 1 ? ' rel="prev"' : "" %>>1~30</a> 
     31                <a href="2.html"<%= page == 0 && (page + 1) * config['by_page'].to_i < rank_data.length ? ' rel="next"' : "" %><%= page == 2 ? ' rel="prev"' : "" %>>31~60</a> 
     32                <a href="3.html"<%= page == 1 && (page + 1) * config['by_page'].to_i < rank_data.length ? ' rel="next"' : "" %>>61~90</a> 
    3333        </div> 
    3434        <div style="align:right"><a href="http://twitter.com/YaSuYuKi">Profile</a></div>