add Admin functionality to user

actually, i just deleted it instead. you’re right. we should have made a trello card. josh and i spoke about it but should have consulted Will and Ifeanyi first about it.  I’ll keep it out for now. 

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.
>