Changeset 407 for lang/ruby/rdoc

Show
Ignore:
Timestamp:
10/07/07 00:49:56 (6 years ago)
Author:
cho45
Message:

lang/ruby/rdoc/generators/template/html/resh/file.rhtml,
lang/ruby/rdoc/generators/template/html/resh/class.rhtml,
lang/ruby/rdoc/generators/template/html/resh/index.rhtml:

#top a から index.html へリンクをはるように
フッタに #top へのリンクと index.html へのリンクを追加

lang/ruby/rdoc/generators/template/html/resh/style.css:

インデックスの一部見出しの余白がへんだったのを修正

Location:
lang/ruby/rdoc/generators/template/html/resh
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/rdoc/generators/template/html/resh/class.rhtml

    r386 r407  
    1313        </head> 
    1414        <body> 
     15                <% index = Pathname.new("").relative_path_from(Pathname.new(f.path).parent) + "index.html"%> 
    1516                <div id="whole"> 
    16                         <h1 id="top"><%=values["title"]%></h1> 
     17                        <h1 id="top"><a href="<%=index%>"><%=values["title"]%></a></h1> 
    1718                        <div class="class-information"> 
    1819                                <p class="full-name"> 
     
    214215 
    215216                        <div id="footer"> 
    216                                 <p>Created at: <%=require "time"; Time.now.xmlschema %></p> 
     217                                <% require "time" %> 
     218                                <p class="footer-links"><a href="<%=index%>">&lt;Index</a> <a href="#top">Top^</a></p> 
     219                                <p>Created at: <%=Time.now.xmlschema %></p> 
    217220                                <p>Powerd by <span class="ruby-r">R</span>Doc / <span class="ruby-r">R</span>uby / ruby<%=RUBY_VERSION%></p> 
    218221                        </div> 
  • lang/ruby/rdoc/generators/template/html/resh/file.rhtml

    r386 r407  
    1313        </head> 
    1414        <body> 
     15                <% index = Pathname.new("").relative_path_from(Pathname.new(f.path).parent) + "index.html"%> 
    1516                <div id="whole"> 
    16                         <h1 id="top"><%=values["title"]%></h1> 
     17                        <h1 id="top"><a href="<%=index%>"><%=values["title"]%></a></h1> 
    1718                        <div class="file-information"> 
    1819                                <p class="shot-name"> 
     
    196197 
    197198                        <div id="footer"> 
    198                                 <p>Original Document Last-modified: <%=values["dtm_modified"]%></p> 
    199                                 <p>Created at: <%=require "time"; Time.now.xmlschema %></p> 
     199                                <% require "time" %> 
     200                                <p class="footer-links"><a href="<%=index%>">&lt;Index</a> <a href="#top">Top^</a></p> 
     201                                <p>Original Document Last-modified: <%=Time.parse(values["dtm_modified"]).xmlschema%></p> 
     202                                <p>Created at: <%=Time.now.xmlschema %></p> 
    200203                                <p>Powerd by <span class="ruby-r">R</span>Doc / <span class="ruby-r">R</span>uby / ruby<%=RUBY_VERSION%></p> 
    201204                        </div> 
  • lang/ruby/rdoc/generators/template/html/resh/index.rhtml

    r389 r407  
    1515        <body> 
    1616                <div id="whole"> 
    17                         <h1 id="top"><%=values["title"]%></h1> 
     17                        <h1 id="top"><a href=""><%=values["title"]%></a></h1> 
    1818 
    1919                        <div id="content"> 
     
    8585 
    8686                        <div id="footer"> 
     87                                <p class="footer-links"><a href="#top">Top^</a></p> 
    8788                                <p>Created at: <%=require "time"; Time.now.xmlschema %></p> 
    8889                                <p>Powerd by <span class="ruby-r">R</span>Doc / <span class="ruby-r">R</span>uby / ruby<%=RUBY_VERSION%></p> 
  • lang/ruby/rdoc/generators/template/html/resh/style.css

    r390 r407  
    6262} 
    6363 
     64#top { 
     65} 
     66 
     67#top a:link , 
     68#top a:visited , 
     69#top a:hover { 
     70        color: #000; 
     71        text-decoration: none; 
     72} 
     73 
    6474.readme { 
    6575        background: #f9f9f9; 
     
    7181.index-classes { 
    7282        clear: both; 
     83} 
     84 
     85.index-files h3, 
     86.index-classes h3 { 
     87        margin: 0.5em 0.5em 1em 0.5em; 
    7388} 
    7489