Skip to content

Commit

Permalink
DG RY; moved actions to the bottom of the show pages; fixed arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrippi committed Feb 21, 2012
1 parent 653e93f commit ead286b
Show file tree
Hide file tree
Showing 5 changed files with 953 additions and 48 deletions.
42 changes: 13 additions & 29 deletions app/views/posts/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,46 +14,30 @@
= person_image_link @post.author
.bd
= person_link(@post.author, :class => 'author-name')

.post-time
%i.icon-time
= time_ago_in_words(@post.created_at) + ' ago'

.post-vitals
%span
%i.icon-heart
= @post.likes.size

%span
%i.icon-plus
= @post.participations.size

%span
%i.icon-retweet
= @post.reshares.size

%span
%i.icon-comment
= @post.comments.size

#post-content

- if current_user
#user-controls
= link_to "#", :class => "label" do
%i.icon-heart.icon-white
- if current_user
#user-controls
= link_to "#", :class => "label", do
%i.icon-user.icon-white

= link_to "#", :class => "label" do
%i.icon-plus.icon-white
= link_to "#", :class => "label" do
%i.icon-heart.icon-white

= link_to "#", :class => "label" do
%i.icon-retweet.icon-white
= link_to "#", :class => "label" do
%i.icon-plus.icon-white

= link_to "#", :class => "label", do
%i.icon-comment.icon-white
= link_to "#", :class => "label" do
%i.icon-retweet.icon-white

= link_to person_image_tag(current_user.person), root_path
= link_to "#", :class => "label", do
%i.icon-comment.icon-white

#post-content

= link_to image_tag('arrow-left.png'), '#', :class => 'nav-arrow left', :id => 'back'
= link_to image_tag('arrow-right.png'), '#', :class => 'nav-arrow right', :id => 'forward'
Expand Down
Loading

0 comments on commit ead286b

Please sign in to comment.