Sha256: 5c7ca2dd6d4a5619ef35fe736d4c3d7aa97bf2c8828de8a8514f70adcd015bba

Contents?: true

Size: 1.73 KB

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
fullstack-cms-0.3.6 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.5 app/views/admin/settings/_collection.html.erb