Sha256: 4a9504b2e612a3a8f279522ad2fb4490418d404e631634243398789e94a30d44

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">
  <head>
    <title><%= @meta_title %></title>
    <meta charset="utf-8" />
    <%= csrf_meta_tags %>
    <%= stylesheet_link_tag 'panel', media: 'all' %>
    <%= javascript_include_tag 'panel' %>
  </head>
  <body>
    <div id="page">
      <div id="navigation">
        <div class="holder">
          <ul id="menu">
            <li><%= link_to t('.example'), '#', class: 'button' %></li>
          </ul>
          <div id="session">
            <%= link_to t('.logout'), '#', class: 'button' %>
          </div>
        </div>
      </div>
      <% if @title.present? %>
        <div id="header">
          <div class="holder">
            <h1><%= @title %></h1>
          </div>
        </div>
      <% end %>
      <div id="content" class="holder">
        <% unless flash.empty? %>
          <div id="flash">
            <% [:alert, :notice].each do |type| %>
              <% if flash.key? type %>
                <% case flash[type] %>
                <% when String %>
                  <p class="<%= type %>"><%= flash[type].capitalize %></p>
                <% when Array %>
                  <% flash[type].each do |message| %>
                    <p class="<%= type %>"><%= message.capitalize %></p>
                  <% end %>
                <% end %>
              <% end %>
            <% end %>
          </div>
        <% end %>
        <%= yield %> 
      </div>
    </div>
    <div id="footer">
      <div class="holder">
        <p id="copyright"><%= t '.copyright', year: Time.now.year %></p>
      </div>
    </div>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
panel-0.1.5 lib/generators/panel/templates/install/panel.html.erb