add Admin functionality to user

yeah, we actually talked about it but did not create a card.  we’ll make sure to create a card for additions like this in the future.  it came up as i was working on this so we ran with it. 

Best, 

~Wax

jwaxnyc@gmail.com
917.279.6650

On Aug 11, 2014, at 4:27 PM, Matthew Mongeau <notifications@github.com> wrote:

> In app/views/layouts/application.html.erb:
> 
> > -  <% if signed_in? %>
> > -    <%= link_to "Sign out", session_path, method: :delete %>
> > -  <% else %>
> > -    <%= link_to "Sign in", new_session_path %>
> > -    <%= link_to "Sign up", new_user_path %>
> > -  <% end %>
> > -
> > +  <header class="top-bar">
> > +      <h3>
> > +        <% if signed_in? %>
> > +          Welcome <%= current_user.email %>
> > +          <%= link_to "Home", root_path %>
> > +          <%= link_to "Sign out", session_path, method: :delete %>
> > +          <% if current_user.admin? %>
> > +            You're an Admin!
> > +            <%= link_to "Moderate", root_path %>
> There is no need for this link yet (not part of the trello card you're working on) so it shouldn't be here.
> 
> —
> Reply to this email directly or view it on GitHub.
>