From 9306c4762f19409054e361d0c56bf90860060d6f Mon Sep 17 00:00:00 2001 From: llj Date: Tue, 17 Apr 2018 16:57:59 +0800 Subject: [PATCH] [wiki] modification --- media/css/seahub.css | 10 +++++--- seahub/templates/home_base.html | 37 +++++++++++++++++++++------- seahub/templates/js/templates.html | 6 ++++- seahub/templates/wiki/wiki.html | 16 +++++++++--- static/scripts/app/router.js | 8 +++--- static/scripts/app/views/side-nav.js | 1 + 6 files changed, 58 insertions(+), 20 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index daa98a03db..6649aea450 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -3191,9 +3191,13 @@ button.sf-dropdown-toggle:focus { border-bottom:1px solid #e8e8e8; } #wiki-page-list { - line-height:1.8; margin-top:1.6em; } +.wiki-page-list-item { + word-break:break-all; + line-height:1.6; + margin:3px 0; +} .wiki-page-link, .wiki-page-link:hover { font-size:1.15em; @@ -3202,11 +3206,11 @@ button.sf-dropdown-toggle:focus { margin-left:5px; } #wiki-area { - padding: 30px 0 0; + padding:30px 0 0; } #wiki-last-modified, #wiki-page-last-modified { - margin-top: 10px; + margin-top:40px; font-size:12px; color: #666; } diff --git a/seahub/templates/home_base.html b/seahub/templates/home_base.html index 7acce56c91..0060651824 100644 --- a/seahub/templates/home_base.html +++ b/seahub/templates/home_base.html @@ -53,17 +53,30 @@ {% trans "Invite People" %} {% endif %} - -

{% trans "Share Admin" %}

- - {% endblock %} @@ -100,5 +113,11 @@ $('#group-nav a:first').on('click', function() { $('#group-nav .grp-list').slideToggle(); return false; }); +$('#share-admin-nav').on('click', 'a:first', function() { + var $shareAdmin = $('#share-admin-nav'); + $('.toggle-icon', $shareAdmin).toggleClass('icon-caret-left icon-caret-down'); + $('ul', $shareAdmin).slideToggle(250); + return false; +}); {% endblock %} diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html index b5f22ab18c..633a49884b 100644 --- a/seahub/templates/js/templates.html +++ b/seahub/templates/js/templates.html @@ -1401,8 +1401,12 @@ {% endif %}
  • - {% trans "Share Admin" %} + {% trans "Share Admin" %} + <% if (show_share_admin) { %> +