blob: 9132cddb5fdfb2b562dd22a44b4d622ee044fa33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
- content_for :title, t("gs_parameters.index.page_title")
- if @gs_parameters && @gs_parameters.count > 0
- cache(['gs_parameters_table', I18n.locale, @gs_parameters_unordered.reorder(:updated_at).last, @gs_parameters_unordered.count]) do
- if @sections
%table{:class => 'table table-striped'}
- @sections.each do |section|
%tr
%td{:colspan => 3}
%h3= section
-# Template Dependency: gs_parameters/_index_core
= render "index_core", :gs_parameters => @gs_parameters.where(:section => section)
- else
%table{:class => 'table table-striped'}
= render "index_core", :gs_parameters => @gs_parameters
|