Sha256: ceb0e1ceac32b11eb3d1dcea5aece517240c0d44a0ff43b2580faf775eb04b38

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

<div id="sidebar_container">
  <ul id="cms_menus" class="tabs clearfix">
    <li><%= link_to t('pages.actions.index.title'), '#cms_pages' %></li>
    <li><%= link_to t('assets.actions.index.title'), '#cms_assets' %></li>
    <li><%= link_to t('components.actions.index.title'), '#cms_components' %></li>
  </ul>

  <div id="tab_container">
    <div id="cms_pages">
      <h2><%= t 'pages.actions.index.title' %></h2>
      <%= render 'cms/pages/list' %>
    </div>

    <div id="cms_assets">
      <h2><%= t 'assets.actions.index.title' %></h2>
      <%= render 'cms/assets/list' %>
    </div>

    <div id="cms_components">
      <h2><%= t 'components.actions.index.title' %></h2>
      <%= render 'cms/components/list' %>
    </div>
  </div>

  <% javascript_tag do %>
    new Control.Tabs('cms_menus', {
      defaultTab: jar.get('active_tab') || 'first',
      afterChange: function(new_container) {
        // save the active tab
        jar.put('active_tab', new_container.getAttribute('id'));
      }
    });
  <% end %>

  <p class="documentation"><%= cms_icon 'page.png' %> <%= link_to 'Documentation', cms_documentation_path %></p>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
liquid_cms-0.2.2.0 app/views/cms/shared/_sidebar.html.erb
liquid_cms-0.2.1.1 app/views/cms/shared/_sidebar.html.erb
liquid_cms-0.2.1.0 app/views/cms/shared/_sidebar.html.erb