From fbda6112da850b219aed62c6f83c294e90a1d19f Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 28 Feb 2014 20:27:27 +0800 Subject: [PATCH] modified css for wiki-index-con, show 8 grps in top-grp-popup, modified grp name shown length --- media/css/seahub.css | 3 +++ seahub/base/context_processors.py | 2 +- seahub/group/templates/group/group_base.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index 3374ed287b..69f37d8f52 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -2742,6 +2742,9 @@ textarea:-moz-placeholder {/* for FF */ .wiki-index { margin-top:25px; } +#wiki-index-con { + padding-left:12px; +} .wiki-index ul { list-style-type: square; padding-left: 1.5em; diff --git a/seahub/base/context_processors.py b/seahub/base/context_processors.py index f1ecec2b5a..43e6d7c741 100644 --- a/seahub/base/context_processors.py +++ b/seahub/base/context_processors.py @@ -46,7 +46,7 @@ def base(request): mods_enabled = get_enabled_mods_by_user(username) # get groups - grps = get_personal_groups_by_user(username)[:4] + grps = get_personal_groups_by_user(username)[:8] return { 'seafile_version': SEAFILE_VERSION, diff --git a/seahub/group/templates/group/group_base.html b/seahub/group/templates/group/group_base.html index e6c79c5448..833ad81c5a 100644 --- a/seahub/group/templates/group/group_base.html +++ b/seahub/group/templates/group/group_base.html @@ -10,7 +10,7 @@

- {% grp_avatar group.props.id 32 %} {{ group.group_name|truncatechars:11 }} + {% grp_avatar group.props.id 32 %} {{ group.group_name|truncatechars:14 }}

{% if is_staff %}