summaryrefslogtreecommitdiff
path: root/app/views/gs_parameters/_index_core.html.haml
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-16 09:28:55 +0100
committerspag <spag@golwen.net>2013-01-16 09:28:55 +0100
commit3880e410353f1e80a938e110c04c2b3629ab5eb6 (patch)
tree793d44cfafcc3925684309c1650b922842828a01 /app/views/gs_parameters/_index_core.html.haml
parent1debae060b1c4a816f4565ad55490fee61c6472b (diff)
parent6635621faeebbc8dd744e0ad71741f9e82aed1f8 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/gs_parameters/_index_core.html.haml')
-rw-r--r--app/views/gs_parameters/_index_core.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/gs_parameters/_index_core.html.haml b/app/views/gs_parameters/_index_core.html.haml
index 0c36560..a3f8e1c 100644
--- a/app/views/gs_parameters/_index_core.html.haml
+++ b/app/views/gs_parameters/_index_core.html.haml
@@ -1,4 +1,4 @@
-- cache([gs_parameters.first.section, gs_parameters.reorder(:updated_at).last, gs_parameters.pluck(:id)]) do
+- cache(['gs_parameters_table_section', gs_parameters.first.section, gs_parameters.reorder(:updated_at).last, gs_parameters.pluck(:id)]) do
%tr
%th= t('gs_parameters.index.name')
- if !@sections
@@ -7,10 +7,10 @@
- reset_cycle
- for gs_parameter in gs_parameters
- - cache(gs_parameter) do
+ - cache(['gs_parameters_table_single_row', gs_parameter]) do
%tr{:class => cycle('odd', 'even')}
%td= gs_parameter.name
- if !@sections
%td= gs_parameter.section
- %td= gs_parameter.value
+ %td= truncate(gs_parameter.value, :length => 50)
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => gs_parameter} \ No newline at end of file