Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

expose the Atom feed on user page

  • Loading branch information...
commit 0bc4b70bcd260a197c13c0abd7492598620d4953 1 parent 5287e5b
@mislav authored
Showing with 19 additions and 3 deletions.
  1. +19 −3 app.rb
  2. BIN  public/feed.png
View
22 app.rb
@@ -174,6 +174,10 @@ def user_photos(params)
•
= @user.followers
followers
+ •
+ %a{ href: "#{request.path}.atom", class: 'feed' }
+ %span photo feed
+ %img{ src: '/feed.png', alt: '' }
%ol#photos
= haml :photos
@@ -309,15 +313,27 @@ def user_photos(params)
font-family: "Myriad Pro Condensed", "Gill Sans", "Lucida Grande", Helvetica, sans-serif;
font-weight: 100;
}
+a:link, a:visited { color: darkblue }
+a:hover, a:active { color: firebrick }
img { border: none }
h1 {
color: #333;
img.avatar { width: 30px; height: 30px }
- a { color: #555; font-weight: 400; text-decoration: none }
+ a:link, a:hover, a:active, a:visited { color: #555; font-weight: 400; text-decoration: none }
a:hover { text-decoration: underline }
}
-p.stats { color: gray; font-style: italic; font-size: 90%; margin-top: -1.1em }
+p.stats {
+ margin-top: -1.1em;
+ font-style: italic; font-size: 90%;
+ color: gray;
+ a.feed {
+ text-decoration: none;
+ &:link, &:visited { color: inherit; }
+ span { text-decoration: underline }
+ img { vertical-align: middle }
+ }
+}
article {
h1 + nav { margin-top: -1.1em; font-size: 90%; }
max-width: 40em;
@@ -376,5 +392,5 @@ def user_photos(params)
margin: 2em auto;
border-top: 1px solid silver;
p { text-align: center; text-transform: uppercase; font-family: "Gill Sans", Helvetica, sans-serif; }
- a { color: #444 }
+ a:link, a:hover, a:active, a:visited { color: #444 }
}
View
BIN  public/feed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0bc4b70

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