Sha256: 716485001044851625980da5249461b7d87ba3bd071a0746c2954833e6ecb955

Contents?: true

Size: 1.81 KB

Versions: 40

Compression:

Stored size: 1.81 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>

                <% if Fullstack::Cms.localized? %>
                  <td style="width: 10%">
                    <%= stg.locale ? t("locale_names.#{stg.locale}", :default => "#{stg.locale}".humanize) : "-" %>
                  </td>
                <% end %>

                <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

40 entries across 40 versions & 1 rubygems

Version Path
fullstack-cms-0.4.6 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.4.5 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.4.4 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.8.fix app/views/admin/settings/_collection.html.erb
fullstack-cms-0.4.3 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.4.2 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.4.1 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.39 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.38 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.37 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.36 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.35 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.34 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.33 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.32 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.31 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.30 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.29 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.28 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.3.27 app/views/admin/settings/_collection.html.erb