Skip to content
This repository
Browse code

expose the Atom feed on user page

  • Loading branch information...
commit 0bc4b70bcd260a197c13c0abd7492598620d4953 1 parent 5287e5b
Mislav Marohnić authored

Showing 2 changed files with 19 additions and 3 deletions. Show diff stats Hide diff stats

  1. +19 3 app.rb
  2. BIN  public/feed.png
22 app.rb
@@ -174,6 +174,10 @@ def user_photos(params)
174 174 •
175 175 = @user.followers
176 176 followers
  177 + •
  178 + %a{ href: "#{request.path}.atom", class: 'feed' }
  179 + %span photo feed
  180 + %img{ src: '/feed.png', alt: '' }
177 181
178 182 %ol#photos
179 183 = haml :photos
@@ -309,15 +313,27 @@ def user_photos(params)
309 313 font-family: "Myriad Pro Condensed", "Gill Sans", "Lucida Grande", Helvetica, sans-serif;
310 314 font-weight: 100;
311 315 }
  316 +a:link, a:visited { color: darkblue }
  317 +a:hover, a:active { color: firebrick }
312 318
313 319 img { border: none }
314 320 h1 {
315 321 color: #333;
316 322 img.avatar { width: 30px; height: 30px }
317   - a { color: #555; font-weight: 400; text-decoration: none }
  323 + a:link, a:hover, a:active, a:visited { color: #555; font-weight: 400; text-decoration: none }
318 324 a:hover { text-decoration: underline }
319 325 }
320   -p.stats { color: gray; font-style: italic; font-size: 90%; margin-top: -1.1em }
  326 +p.stats {
  327 + margin-top: -1.1em;
  328 + font-style: italic; font-size: 90%;
  329 + color: gray;
  330 + a.feed {
  331 + text-decoration: none;
  332 + &:link, &:visited { color: inherit; }
  333 + span { text-decoration: underline }
  334 + img { vertical-align: middle }
  335 + }
  336 +}
321 337 article {
322 338 h1 + nav { margin-top: -1.1em; font-size: 90%; }
323 339 max-width: 40em;
@@ -376,5 +392,5 @@ def user_photos(params)
376 392 margin: 2em auto;
377 393 border-top: 1px solid silver;
378 394 p { text-align: center; text-transform: uppercase; font-family: "Gill Sans", Helvetica, sans-serif; }
379   - a { color: #444 }
  395 + a:link, a:hover, a:active, a:visited { color: #444 }
380 396 }
BIN  public/feed.png

0 comments on commit 0bc4b70

Please sign in to comment.
Something went wrong with that request. Please try again.