Sha256: 22d03459de2bf83f6a18dd885c091ef26d2302e68030bb5a6c9dea36c41650b1

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <!-- check/fix: needs beer_db_admin reference ?? -->
  <%= render partial: 'layouts/beer_db_admin/header' %>
</head>
<body>


<% unless controller_name == 'sessions' %>

<div class='navbar'>
<table width='100%' cellspacing=0>
  <tr>
    <!-- left -->
    <td>
      <span class='logo'><%= link_to '[Logo]', beers_path() %></span> &nbsp;&nbsp;&nbsp;
      <% if content_for? :breadcrumb %>
        <span class='breadcrumb-inline'>
          <%= yield :breadcrumb %>
        </span>
      <% end %>
    </td>
    <!-- right -->
    <td style='text-align: right;'>
 <% if signed_in? %>
    Willkommen, <%= link_to current_user.name, edit_user_path(current_user_id) %>!

    &nbsp;
    <span class='signout'>
      <%= link_to t(:signout), signout_path %>
    </span>
 <% else %>
    <span class='signin'>
    <%= link_to t(:signin), signin_path %>
    </span>
 <% end %>
    </td>
  </tr>
</table>
</div>

<p>
  <% if signed_in? %>
    <%= link_to 'Frontpage', frontpage_path() %>  &bull;
  <% end %>

  <%= link_to 'Countries', countries_path() %>  &bull;
  <%= link_to 'Regions', regions_path() %>  &bull;
  <%= link_to 'Beers', beers_path() %>  &bull;
  <%= link_to 'Brands', brands_path() %>  &bull;
  <%= link_to 'Breweries', breweries_path() %>  &bull;
  <%= link_to 'Tags', tags_path() %>    &bull;
  <%= link_to 'Timeline', time_path() %>

.::.

  <!-- fix: use named url_helper for /api -->
  <%= link_to "Web Service Demo & Docu / HTTP JSON API", '/api' %>
</p>

<% end %>



<div class='content' style='padding: 0px 20px 0px 20px;'>

  <%= render partial: 'layouts/beer_db_admin/flash', locals: { flash: flash } %>

  <%= yield %>

</div>


<div class='version'>
  <%= powered_by %>
</div>

</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beerdb-admin-0.1.0 app/views/layouts/beer_db_admin/beer_db_admin.html.erb