[Opda-develop] OPDA/app/views/channels index.rhtml,1.3,1.4
Brought to you by:
digitalpodcast
|
From: Alex N. <dig...@us...> - 2006-07-23 06:27:00
|
Update of /cvsroot/opda/OPDA/app/views/channels In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15105/app/views/channels Modified Files: index.rhtml Log Message: made major changes to css to improve ui. font size will need to be tuned up across the app. Old default.css moved to default-old.css. Also updated default.rhtml to use new css Index: index.rhtml =================================================================== RCS file: /cvsroot/opda/OPDA/app/views/channels/index.rhtml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.rhtml 16 Jul 2006 04:13:56 -0000 1.3 --- index.rhtml 23 Jul 2006 06:26:55 -0000 1.4 *************** *** 1,74 **** ! <div id="threecolumnright"> ! <div class="boxtitlerow"><span class="boxtitle">Tags</span></div> ! <div class="tagmatrix"> ! <% for tag in @tags %> ! <% i = rand%> ! <% if i < 0.6%> ! <% i=1 %> ! <% elsif i >= 0.6 && i< 0.775 %> ! <% i=2 %> ! <% elsif i >= 0.775 && i< 0.85 %> ! <% i=3 %> ! <% elsif i >= 0.85 && i< 0.875 %> ! <% i=4 %> ! <% elsif i >= 0.875 && i< 0.92 %> ! <% i=5 %> ! <% elsif i >= 0.92 && i< 0.95 %> ! <% i=6 %> ! <% elsif i >= 0.95 && i< 0.97 %> ! <% i=7 %> ! <% elsif i >= 0.97 && i< 0.99 %> ! <% i=8 %> ! <% elsif i >= 0.99 && i<=1.0 %> ! <% i=9 %> ! <% end %> ! ! <span class="level<%= i %>"><%= link_to h(tag.name),:controller =>'tags', :action => 'show', :id => tag.name %></span> ! ! ! <% end %> ! </div> <!-- end tagmatrix div --> ! </div> <!-- end 3 threecolumnright div --> ! ! ! ! <div id="threecolumnmiddle"> ! <div class="boxtitlerow"><span class="boxtitle">New Casts</span></div> ! <% for channel in @newchannels %> ! <div class="tinycast"> ! <div class="image50"> ! <% if channel.itunes_image.nil? %> ! <%= link_to theme_image_tag("defaultart.jpg",:size => "50x50", :border => 0), :action => 'show', :id => channel%> ! <% else %> ! <%= link_to image_tag(channel.itunes_image,:size => "50x50", :border => 0), :action => 'show', :id => channel%> ! <% end %> ! </div> <!--end image50 div --> ! <span class="smalltitle"><%= link_to h(channel.title), :action => 'show', :id => channel %></span><br /> ! <span class="smalldescription"><%= h(channel.description.to_s.slice(0..100)) if !channel.description.nil?%></span> ! </div> <!-- end tinycast div --> ! <div class="clearspan"> </div> ! <% end %> ! </div> <!-- end 3columnmiddle div --> ! ! ! <div id="threecolumnleft"> ! <div class="boxtitlerow"><span class="boxtitle">Featured Casts</span></div> ! <% left_or_right = 0%> ! <% for channel in @featuredchannels %> ! <% left_or_right = 1- left_or_right %> ! <div class="feature<%=left_or_right%>"> - <% if channel.itunes_image.nil? %> - <%= link_to theme_image_tag("defaultart.jpg",:size => "144x144", :border => 0), :action => 'show', :id => channel%> - <% else %> - <%= link_to image_tag(channel.itunes_image,:size => "144x144", :border => 0), :action => 'show', :id => channel%> - <% end %> - - <p>Listen | Subscribe</p><br /><br /> - </div> - <% end %> - </div> <!-- end 3columnleft div --> \ No newline at end of file --- 1,74 ---- ! <div id="sub"> ! <div id="center"> ! ! <div class="boxtitlerow"><span class="boxtitle">New Casts</span></div> ! <% for channel in @newchannels %> ! <div class="tinycast"> ! <div class="image50"> ! <% if channel.itunes_image.nil? %> ! <%= link_to theme_image_tag("defaultart.jpg",:size => "50x50", :border => 0), :action => 'show', :id => channel%> ! <% else %> ! <%= link_to image_tag(channel.itunes_image,:size => "50x50", :border => 0), :action => 'show', :id => channel%> ! <% end %> ! </div> <!--end image50 div --> ! <span class="smalltitle"><%= link_to h(channel.title), :action => 'show', :id => channel %></span><br /> ! <span class="smalldescription"><%= h(channel.description.to_s.slice(0..100)) if !channel.description.nil?%></span> ! </div> <!-- end tinycast div --> ! <div class="clearspan"> </div> ! <% end %> ! </div><!-- end center --> ! <hr /> ! ! <div id="left"> ! ! <div class="boxtitlerow"><span class="boxtitle">Featured Casts</span></div> ! <% left_or_right = 0%> ! <% for channel in @featuredchannels %> ! <% left_or_right = 1- left_or_right %> ! <div class="feature<%=left_or_right%>"> ! <% if channel.itunes_image.nil? %> ! <%= link_to theme_image_tag("defaultart.jpg",:size => "144x144", :border => 0), :action => 'show', :id => channel%> ! <% else %> ! <%= link_to image_tag(channel.itunes_image,:size => "144x144", :border => 0), :action => 'show', :id => channel%> ! <% end %> ! <p>Listen | Subscribe</p><br /><br /> ! </div> ! <% end %> ! </div> <!-- end left --> ! <hr /> ! </div> <!--end sub --> ! ! <div id="right"> ! <div class="boxtitlerow"><span class="boxtitle">Tags</span></div> ! <div class="tagmatrix"> ! <% for tag in @tags %> ! <% i = rand%> ! <% if i < 0.6%> ! <% i=1 %> ! <% elsif i >= 0.6 && i< 0.775 %> ! <% i=2 %> ! <% elsif i >= 0.775 && i< 0.85 %> ! <% i=3 %> ! <% elsif i >= 0.85 && i< 0.875 %> ! <% i=4 %> ! <% elsif i >= 0.875 && i< 0.92 %> ! <% i=5 %> ! <% elsif i >= 0.92 && i< 0.95 %> ! <% i=6 %> ! <% elsif i >= 0.95 && i< 0.97 %> ! <% i=7 %> ! <% elsif i >= 0.97 && i< 0.99 %> ! <% i=8 %> ! <% elsif i >= 0.99 && i<=1.0 %> ! <% i=9 %> ! <% end %> ! <span class="level<%= i %>"><%= link_to h(tag.name),:controller =>'tags', :action => 'show', :id => tag.name %></span> ! <% end %> ! </div> <!-- end tagmatrix div --> ! </div> <!--end right --> ! <!-- end content --> |