summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-01-16 22:05:51 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-01-16 22:05:51 +0100
commit3fbadb4f1b1d9a16b81892356b4020dbfa455b5a (patch)
treeced8cd685a0366af3e827163943682a618094545 /app/views/users
parent0601ff60400e27451259531bb26cb69c7e6e352c (diff)
parent1bd91b138c773aedbd5f18b9df79e28fac240dbc (diff)
Merge branch 'develop' of https://github.com/amooma/GS5 into develop
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/_listing.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/users/_listing.html.haml b/app/views/users/_listing.html.haml
index 0a97ad1..9b7b653 100644
--- a/app/views/users/_listing.html.haml
+++ b/app/views/users/_listing.html.haml
@@ -1,8 +1,8 @@
- amount_of_users = users.count
- if amount_of_users > 0
- - if amount_of_users < 30
+ - if amount_of_users < GsParameter.get('NUMBER_OF_SHOWN_ITEMS')
= users.map{|user| user}.join(', ')
- else
- = users.limit(15).map{|user| user}.join(', ') + ', '
+ = users.limit((GsParameter.get('NUMBER_OF_SHOWN_ITEMS') / 2).floor).map{|user| user}.join(', ') + ', '
= '[...]'
- = users.offset(amount_of_users - 15).map{|user| user}.join(', ') \ No newline at end of file
+ = users.offset(amount_of_users - (GsParameter.get('NUMBER_OF_SHOWN_ITEMS') / 2).floor).map{|user| user}.join(', ') \ No newline at end of file