Sha256: d8c9ffbbb39c8c5b25d289eb47b492e51582e63e52b9ae99f84aaa00bd55f5c3

Contents?: true

Size: 1.73 KB

Versions: 23

Compression:

Stored size: 1.73 KB

Contents

<% if Setting.any? %>

 <% if Fullstack::Cms.localized? %>
 
           <%= nav :class => "nav-pills" do %>
               
               <%= content_tag :li, :class => (:active if @locale.blank?) do  %>
                 <%= link_to t("fullstack.cms.commons", :default => "Commons"), request.path %> 
               <% end %>

               <% I18n.available_locales.each do |locale| %>
                  <%= content_tag :li, :class => (:active if @locale == locale.to_s) do  %>
                   <%= link_to t("locale_names.#{locale}", :default => "#{locale}".humanize), "?locale=#{locale}" %>
                 <% end %>
               <% end %>    
           <% end %>
 
<% end %>
 
  <%= tabs :class => "tabs-left" do |t| %>

      <% @groups.each do |g,settings| %>
        <%= t.pane t(g, :scope => "fullstack.admin.groups", :default => g.to_s.humanize) do %>


 <table class="table table-striped table-bordered">
        <% settings.each do |stg| %>
         
              <tr>
                <th style="width: 20%">
                  <%= link_to t(stg.key, :scope => "helpers.label", :default => stg.key.to_s.humanize), [:edit, :admin, stg] %>
                </th>
                <td style="width: 10%">
                  <%= stg.locale ? t("locale_names.#{stg.locale}", :default => "#{stg.locale}".humanize) : "-" %>
                </td>
                <td>
                  <% if stg.value %>
                  <%= truncate stg.options[:markup] ? "#markup" : "#{stg.value}" %>
                  <% else %>
                    (<%= t('fullstack.cms.empty', :default => "Empty") %>)
                  <% end %>
                </td>
              </tr>

          <% end %>
  </table>


  
        <% end %>
      <% end %>

  <% end %>

<% end %>

 

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fullstack-cms-0.2.32.fix app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.4 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.3 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.2 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.1 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.36 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.35 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.34 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.33 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.31 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.30 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.29 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.28 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.27 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.26 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.25 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.24 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.23 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.22 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.2.21 app/views/admin/settings/_collection.html.erb