Sha256: dfb945bb47cf80ea4e79cb455e9a2fc8169fab7078a486ea1f9e38571049ae26

Contents?: true

Size: 1005 Bytes

Versions: 1

Compression:

Stored size: 1005 Bytes

Contents

<!DOCTYPE html>
<html>
  <head>
    <title>HyperAdmin</title>

    <%= stylesheet_link_tag "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" %>
    <%= stylesheet_link_tag    "hyper_admin/application", media: :all %>
    <%= javascript_include_tag "hyper_admin/application" %>

    <%= csrf_meta_tags %>
  </head>
  <body>

    <nav class="navbar navbar-default">
      <div class="container-fluid">
        <div class="navbar-header">
          <a class="navbar-brand" href="/admin">Admin</a>

          <ul class="nav navbar-nav">
            <% @resource_classes.each do |resource_class| %>
              <li class="<%= "active" if params[:controller] == "admin/#{resource_class.model_name.plural}" %>">
                <%= link_to resource_class.model_name.human(count: 2), [ :admin, resource_class ] %>
              </li>
            <% end %>
          </ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <%= yield %>
    </div>

  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyper_admin-0.2.0 app/views/layouts/hyper_admin/application.html.erb