Changeset 42
- Timestamp:
- 08/07/06 00:35:10 (2 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 modified
-
app/controllers/themes_controller.rb (modified) (1 diff)
-
app/models/theme_revision.rb (modified) (1 diff)
-
app/views/themes/atom_single.rxml (added)
-
app/views/themes/view.rhtml (modified) (1 diff)
-
config/routes.rb (modified) (1 diff)
-
public/images/feed-icon-32-gray.gif (added)
-
public/images/feed-icon-64-gray.gif (added)
-
public/stylesheets/default.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/themes_controller.rb
r40 r42 9 9 10 10 redirect_to(:action=>"view", :id=>theme.id) 11 end 12 13 def feed_single 14 @headers["Content-Type"] = "application/xml" 15 @theme = Theme.find(@params["id"]) 16 @revisions = @theme.theme_revisions 17 render_without_layout :action=>"atom_single" 11 18 end 12 19 -
trunk/app/models/theme_revision.rb
r34 r42 9 9 svninfo.each("\n") {|line| 10 10 if(line.index("Last Changed Date")) 11 rc = line.gsub( /.*\(/, '').gsub(')', '')11 rc = line.gsub("Last Changed Date: ", "").gsub(/\(.*/, '').strip.sub(" ", "T").sub(" ", "").sub(/00$/, ":00") 12 12 end 13 13 } -
trunk/app/views/themes/view.rhtml
r36 r42 4 4 <div id="theme-stats" class="bottom"> 5 5 <div class="top"> 6 <h4>Watch Changes</h4> 7 <%= link_to(image_tag("feed-icon-32-gray.gif") + " Atom Feed", "#{@theme.id}/atom.xml") %> 6 8 <h4>Statistics</h4> 7 9 <dl> -
trunk/config/routes.rb
r14 r42 16 16 map.connect '', :controller=>"themes", :action=>"list" 17 17 18 map.connect 'themes/view/:id/atom.xml', :controller=>"themes", :action=>"feed_single", :format=>"atom" 19 18 20 # Allow downloading Web Service WSDL as a file with an extension 19 21 # instead of a file named 'wsdl' -
trunk/public/stylesheets/default.css
r27 r42 144 144 div#theme-details > div { 145 145 padding: 1em; 146 height: 300px;146 height: 400px; 147 147 } 148 148 … … 152 152 153 153 div#theme-stats { 154 font-family: Verdana, Arial, sans-serif; 154 155 float: right; 155 156 width: 18%; 157 height: 400px; 156 158 } 159 160 div#theme-stats a { 161 text-decoration: none; 162 } 163 164 div#theme-stats img { 165 border: none; 166 }
