Skip to content

Commit

Permalink
Added edit profile link to layout under your following/follwers count…
Browse files Browse the repository at this point in the history
…. Removed link from user show page.
  • Loading branch information
caleywoods committed Mar 27, 2011
1 parent 2441256 commit 5da8685
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions views/layout.haml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#{current_user.followers.length}
.updates
Updates: #{current_user.feed.updates.count}
.edit-profile
%a{ :href => "/users/#{current_user.username}/edit"}
Edit profile

.links
%a{:href => "/follow"} Would you like to follow someone not on rstat.us?
Expand Down
5 changes: 1 addition & 4 deletions views/users/show.haml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@

%p.note= @author.bio

- if current_user and @author.user == current_user
%a{:href=>"/users/#{current_user.username}/edit"}
Edit your profile
- else
- unless current_user and @author.user == current_user
#follow
- if current_user and current_user.following? @author.feed.url
.negative
Expand Down

0 comments on commit 5da8685

Please sign in to comment.