diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-10 12:30:07 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-10 12:30:07 +0100 |
commit | d92595edd1febbea58ccee742ac7b8cdb3b42e00 (patch) | |
tree | 78b496ed4d9f051c616c38fa9134f3401d5febb9 /app/views/gs_parameters/index.html.haml | |
parent | 7268fbc3b37ae35993a7379cc66221c5e24c2016 (diff) | |
parent | 2b57fadfebf7f7df6a589ab089eec522413e8390 (diff) |
Merge branch 'cache_gs_parameter_view' into develop
Diffstat (limited to 'app/views/gs_parameters/index.html.haml')
-rw-r--r-- | app/views/gs_parameters/index.html.haml | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/views/gs_parameters/index.html.haml b/app/views/gs_parameters/index.html.haml index 753e64b..3c16806 100644 --- a/app/views/gs_parameters/index.html.haml +++ b/app/views/gs_parameters/index.html.haml @@ -1,15 +1,15 @@ - title t("gs_parameters.index.page_title") - if @gs_parameters && @gs_parameters.count > 0 - - if @sections - %table - - @sections.each do |section| - %tr - %td{:colspan => 3} - %h3= section - = render "index_core", :gs_parameters => @gs_parameters.where(:section => section) - - else - %table - = render "index_core", :gs_parameters => @gs_parameters - -= render :partial => 'shared/create_link', :locals => {:child_class => GsParameter}
\ No newline at end of file + - cache([@ps_parameters_unordered.order(:updated_at).last, @ps_parameters_unordered.pluck(:id)]) do + - if @sections + %table + - @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 + = render "index_core", :gs_parameters => @gs_parameters |