ensl.org/app/views/application/_header.html.erb
2014-05-04 00:01:36 +01:00

16 lines
463 B
Text

<header>
<div class="banner <%= 'authenticated' if cuser %>">
<div class="wrapper">
<div id="logo">
<%= link_to image_tag('logo.png'), root_path %>
</div>
<div id="authentication" class="<%= 'admin' if cuser && cuser.admin? %>">
<% if cuser %>
<%= render partial: "widgets/logged" %>
<% else %>
<%= render partial: "widgets/login" %>
<% end %>
</div>
</div>
</div>
</header>