Skip to content

Commit

Permalink
Merge pull request codeforamerica#44 from codeforamerica/35-logged-in…
Browse files Browse the repository at this point in the history
…-link

Removes logged in user link
  • Loading branch information
monfresh committed Feb 18, 2014
2 parents 4a37a21 + 7c36d4b commit 8f3d339
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,12 @@
{
padding:10px;
}
}

// creates styles for text in the navbar that is not a link
.navbar .nav > li > span
{
padding: 10px 15px 10px;
color:#DE9292;
display:block;
}
3 changes: 2 additions & 1 deletion app/views/layouts/_navigation.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
%ul.nav
- if user_signed_in?
%li
= link_to "Logged in as #{current_user.name}", ""
%span
Logged in as #{current_user.name}
%li
= link_to 'Sign out', destroy_user_session_path, :method=>'delete'
- else
Expand Down

0 comments on commit 8f3d339

Please sign in to comment.