2014-04-06 14:14:03 +00:00
|
|
|
<header>
|
2014-05-03 23:01:36 +00:00
|
|
|
<div class="banner <%= 'authenticated' if cuser %>">
|
2014-04-18 00:07:07 +00:00
|
|
|
<div class="wrapper">
|
|
|
|
<div id="logo">
|
2014-05-03 23:01:36 +00:00
|
|
|
<%= link_to image_tag('logo.png'), root_path %>
|
2014-04-18 00:07:07 +00:00
|
|
|
</div>
|
2014-04-19 01:12:02 +00:00
|
|
|
<div id="authentication" class="<%= 'admin' if cuser && cuser.admin? %>">
|
2014-04-18 00:07:07 +00:00
|
|
|
<% if cuser %>
|
|
|
|
<%= render partial: "widgets/logged" %>
|
|
|
|
<% else %>
|
|
|
|
<%= render partial: "widgets/login" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2014-04-06 14:14:03 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|