Sha256: 7e8caa6e451c2717312b66dc6442dd5efa4842d6c18bf5340ee41ff71b56dd52

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title>Dummy</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
<%= content_tag :body, loco_body_data do %>
  <%= render 'layouts/flash', name: '', msg: '' %>
  <% flash.each do |name, msg| %>
    <%= render 'layouts/flash', name: name, msg: msg %>
  <% end %>

  <div id="container">
    <% if admin_panel? || user_panel? %>
    <div id="user_nav">
      <% if admin_panel? && current_admin %>
        <p><%= link_to "Sign out", admin_session_url(id: 'current'), method: :delete,
                data: {'admin-id' => current_admin.id} %>
        </p>
        <p class="text_right">
          <%= link_to "Users", admin_users_url, class: "#{'bold' if controller_name == 'users'}" %>
          |
          <%= link_to "Articles", published_admin_articles_url, class: "#{'bold' if controller_name == 'articles'}" %>
          <% if controller_name == 'comments' %>
          | <span class='bold'>Comments</span>
          <% end %>
        </p>
      <% end %>

      <% if user_panel? && current_user %>
        <p>Hello <%= current_user.email %>!
          <%= link_to "sign out", user_session_url(id: 'current'), method: :delete,
                data: {'user-id' => current_user.id}, id: 'sign_out_user' %>
        </p>
      <% end %>
    </div>
    <% end %>

    <%= yield %>
  </div>
<% end %>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loco-rails-1.0.2 test/dummy/app/views/layouts/application.html.erb
loco-rails-1.0.1 test/dummy/app/views/layouts/application.html.erb
loco-rails-1.0.0 test/dummy/app/views/layouts/application.html.erb