Changeset 6567 for lang/ruby/pritter

Show
Ignore:
Timestamp:
02/11/08 20:04:53 (5 years ago)
Author:
nakamud
Message:

r41@syogun: daisuke | 2008-02-11 20:04:44 +0900
lang/ruby/pritter: moved style specification to css

Location:
lang/ruby/pritter
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/pritter/app/views/timeline/anybody.rhtml

    r5638 r6567  
    99</head> 
    1010<body> 
    11   <h1 style="font-size:3em;color:white;">Pritter</h1> 
    12   <p style="text-align:right;color:white"><%= about_pritter %></p> 
    13   <hr> 
     11  <h1>Pritter</h1> 
     12  <div id="about_pritter"><%= about_pritter %></div> 
     13 
    1414<div id="side"> 
    1515  <div class="people">People</div> 
    1616  <% @profiles.each do |profile| %> 
    17   <a href="/<%= profile.id %>"><img alt="#{profile.jid}" height="24" src="/images/profile/<%= profile.id %>.jpg" width="24" /></a> 
     17  <a href="/<%= profile.id %>"><img alt="#{profile.jid}" src="/images/profile/<%= profile.id %>.jpg" width="24" /></a> 
    1818  <% end %> 
    1919</div> 
    2020 
    2121<div class="content"> 
    22   <table style="margin:20px;"> 
     22  <table> 
    2323        <% @tweets.each do |tweet| %> 
    2424        <tr> 
    2525          <td> 
    2626                <a href="/<%= tweet.profile.id %>"> 
    27                   <%= image_tag("/images/profile/#{tweet.profile.id}.jpg", :size=>"48x48") %> 
     27                  <%= image_tag("/images/profile/#{tweet.profile.id}.jpg", :width=>"48") %> 
    2828                  <strong><%= tweet.name %></strong> 
    2929                </a> 
     
    3131          <td> 
    3232                <%= tweet.content %> 
    33                 <%= link_to( timediff_str(tweet.created_on), {:action=>:single,:id=>tweet.id} ) %> 
     33                <%= link_to( timediff_str(tweet.created_on), {:action=>:single,:id=>tweet.id},:class=>'tweet_time' ) %> 
    3434          </td> 
    3535        </tr> 
     
    3737  </table> 
    3838 
    39 <div style="float:right;"> 
     39<div id="newer_older"> 
    4040  <%= link_to( "&#171; Newer", { :page => @pages.current.previous}, :class=>'pagination_links'  ) if @pages.current.previous %> 
    4141  <%= link_to( "Older &#187;", { :page => @pages.current.next}, :class=>'pagination_links' ) if @pages.current.next %> 
  • lang/ruby/pritter/app/views/timeline/people.rhtml

    r5638 r6567  
    99</head> 
    1010<body> 
    11   <h1 style="font-size:3em;color:white;">Pritter</h1> 
    12   <p style="text-align:right;color:white"><%= about_pritter %></p> 
     11  <h1>Pritter</h1> 
     12  <div id="about_pritter"><%= about_pritter %></div> 
    1313  <%= link_to( "Back to Public Timeline", {:action=>:anybody}, :style=>'color:white;' ) %> 
    14   <hr> 
     14 
    1515<div id="side"> 
    1616  <div class="people">About</div> 
     
    2828  <br clear="left"/> 
    2929 
    30   <table style="margin:20px;"> 
     30  <table> 
    3131        <% @tweets.each do |tweet| %> 
    3232        <%  next if tweet.id == @latest_tweet.id %> 
     
    3434          <td> 
    3535                <%= tweet.content %> 
    36                 <%= link_to(timediff_str(tweet.created_on),{:action=>:single,:id=>tweet.id}) %> 
     36                <%= link_to(timediff_str(tweet.created_on),{:action=>:single,:id=>tweet.id},:class=>'tweet_time') %> 
    3737          </td> 
    3838        </tr> 
     
    4040  </table> 
    4141 
    42 <div style="float:right;"> 
     42<div id="newer_older"> 
    4343  <%= link_to( "&#171; Newer", { :page => @pages.current.previous}, :class=>'pagination_links'  ) if @pages.current.previous %> 
    4444  <%= link_to( "Older &#187;", { :page => @pages.current.next}, :class=>'pagination_links' ) if @pages.current.next %> 
  • lang/ruby/pritter/app/views/timeline/single.rhtml

    r5638 r6567  
    1818</div> 
    1919  <a href="/<%= @tweet.profile.id %>"> 
    20   <%= image_tag("/images/profile/#{@tweet.profile.id}.jpg", :size=>"64x64", :style=>"float:left;") %> 
     20  <%= image_tag("/images/profile/#{@tweet.profile.id}.jpg", :width=>"64", :style=>"float:left;") %> 
    2121  <p><%= @tweet.profile.jid %></p> 
    2222  </a> 
  • lang/ruby/pritter/public/stylesheets/page.css

    r5120 r6567  
    33padding:15px 0pt; 
    44width:750px; 
    5 background:#9A0408 
     5background:#9ae4e8 
    66} 
    77 
    8 a { text-decoration: none; } 
    9 a:hover { text-decoration: underline; } 
     8a 
     9{ 
     10text-decoration: none; 
     11color: blue; 
     12} 
     13 
     14a:hover 
     15{ 
     16text-decoration: underline; 
     17} 
    1018 
    1119a img 
     
    1725} 
    1826 
     27h1 
     28{ 
     29font-size:3em; 
     30color:white; 
     31} 
    1932 
    2033td 
     
    2336} 
    2437 
     38table 
     39{ 
     40margin:20px; 
     41} 
     42 
    2543#side { 
    26 background:#FFF none repeat scroll 0%; 
    27 border:3px solid black; 
     44background:#e0ff92 none repeat scroll 0%; 
     45border: 1px solid #87bc44; 
    2846float:right; 
    2947line-height:1.2; 
     
    3553 
    3654#side div.people { 
    37 border-bottom:1px solid #808080; 
     55border-bottom:1px solid #87bc44; 
    3856margin-bottom:10px; 
    3957font-size:1em; 
     
    4765padding:15px; 
    4866width:500px; 
    49 border:3px solid black; 
    5067} 
    5168 
     
    5673} 
    5774 
     75.tweet_time 
     76{ 
     77font-size:0.8em; 
     78} 
     79 
     80#about_pritter{ 
     81text-align:right; 
     82color:white; 
     83} 
     84 
     85 
    5886#footer{ 
    5987background:#FFF; 
     
    6391text-align:center; 
    6492font-size:0.8em; 
    65 border:3px solid black; 
    6693} 
    6794 
    68  
     95#newer_older 
     96{ 
     97float:right; 
     98} 
    6999 
    70100.latest_tweet {