summaryrefslogtreecommitdiff
path: root/app/views/gs_parameters/index.html.haml
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-10 13:37:55 +0100
committerspag <spag@golwen.net>2013-01-10 13:37:55 +0100
commit490e3f9bcda2943d1bff77ec5cfaa0a9b7d13458 (patch)
tree9d9e2a1e5b1da7e301675e2767acfa5ca954ea38 /app/views/gs_parameters/index.html.haml
parent6ce81a29e0918b3494a08fa47190b2cea59d1a84 (diff)
parentae296748501982bac71525507ff9c1fdfefb8ad2 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/gs_parameters/index.html.haml')
-rw-r--r--app/views/gs_parameters/index.html.haml24
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