Sha256: 008a1cb78e45df3d3441543013123b7dbfbf0edd084332fb9bdf16c6e3d1aa7f

Contents?: true

Size: 1.99 KB

Versions: 5

Compression:

Stored size: 1.99 KB

Contents

<% content_for :header do %>
  <ul class="namespaces">
    <% puffer_namespaces do |title, path, current| %>
      <li<%= raw(current ? ' class="selected"' : '') %>><%= link_to title, path %></li>
    <% end %>
  </ul>
  <ul class="navigation">
    <% puffer_navigation do |title, path, current| %>
      <li<%= raw(current ? ' class="selected"' : '') %>><%= link_to title, path %></li>
    <% end %>
  </ul>
<% end %>

<% content_for :content do %>
  <div class="columns">
    <div class="column sidebar">
      <div class="padder">
        <ul class="navigation">
          <% sidebar_puffer_navigation do |title, path, current| %>
            <li<%= raw(current ? ' class="selected"' : '') %>>
              <%= link_to title, path %>
              <% if current %>
                <div class="additional">
                  <dl>
                    <dt>Links</dt>
                    <dd>
                      <%= link_to t(:list, :target => resource.human), resource.collection_path %>
                      <%= link_to t(:add, :target => resource.human), resource.new_path %>
                    </dd>
                    <dt>Search</dt>
                    <dd>
                      <%= form_tag resource.collection_path, {:method => :get} do %>
                        <%= text_field_tag :search, params[:search] %>
                        <%= submit_tag 'Search' %>

                        <% if false %>
                        <% if resource_session[:search].present? %>
                          <%= link_to 'clear', resource.collection_path(:search => '') %>
                        <% end %>
                        <% end %>
                      <% end %>
                    </dd>
                  </dl>
                </div>
              <% end %>
            </li>
          <% end %>
        </ul>
        <%= yield :sidebar %>
      </div>
    </div>
    <div class="column">
      <div class="content">
        <%= yield %>
      </div>
    </div>
  </div>
<% end %>

<%= render :file => 'layouts/puffer_base' %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puffer-0.0.25 app/views/layouts/puffer.html.erb
puffer-0.0.24 app/views/layouts/puffer.html.erb
puffer-0.0.23 app/views/layouts/puffer.html.erb
puffer-0.0.22 app/views/layouts/puffer.html.erb
puffer-0.0.21 app/views/layouts/puffer.html.erb