diff --git a/media/css/seahub.css b/media/css/seahub.css index 9f4c0ff2d3..c1fddb48d5 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -2729,7 +2729,6 @@ textarea:-moz-placeholder {/* for FF */ width:756px; } #md-view h2, -#wmd-preview h2, #wiki-content h2 { border-bottom: 1px solid #ccc; } diff --git a/media/img/rm.png b/media/img/rm.png new file mode 100644 index 0000000000..df065d115d Binary files /dev/null and b/media/img/rm.png differ diff --git a/seahub/share/templates/share/priv_shared_files.html b/seahub/share/templates/share/priv_shared_files.html deleted file mode 100644 index 664f5903cb..0000000000 --- a/seahub/share/templates/share/priv_shared_files.html +++ /dev/null @@ -1,93 +0,0 @@ -{% extends "home_base.html" %} -{% load seahub_tags i18n %} -{% load url from future %} - -{% block sub_title %}{% trans "Files - Share" %} - {% endblock %} - -{% block cur_share_files %}tab-cur{% endblock %} - -{% block right_panel %} -
- -
- {% if priv_share_in %} - - - - - - - - - {% for e in priv_share_in %} - - {% if e.s_type == 'f' %} - - - {% else %} - - - {% endif %} - - - - - {% endfor %} -
{% trans "Name" %}{% trans "Library" %}{% trans "From" %}{% trans "Operations" %}
{{e.file_or_dir}}{{e.file_or_dir}}--{{e.from_user|email2nickname}} - - - -
- {% else %} -
-

{% trans "No file is shared to you" %}

-

{% trans "Single files shared to you will be listed here, and you can download them or save them to some libraries." %}

-
- {% endif %} -
- - {% if user.permissions.can_add_repo %} -
- {% if priv_share_out %} - - - - - - - - - {% for e in priv_share_out %} - - {% if e.s_type == 'f' %} - - - {% else %} - - - {% endif %} - - - - - {% endfor %} -
{% trans "Name"%}{% trans "Library"%}{% trans "To"%}{% trans "Operations"%}
{% trans {{e.file_or_dir}}{% trans {{e.file_or_dir}}{{e.repo.name}}{{e.to_user|email2nickname}} - - - -
- {% else %} -
-

{% trans "You don't have any private shared files" %}

-

{% trans "You can share a single file with a registered user if you don't want to share a whole library." %}

-
- {% endif %} -
- {% endif %} -
-{% endblock %} diff --git a/seahub/templates/home_base.html b/seahub/templates/home_base.html index 81bf97b8ae..0321384ce9 100644 --- a/seahub/templates/home_base.html +++ b/seahub/templates/home_base.html @@ -36,6 +36,9 @@

{% trans "Tools" %}

+ {% if user.permissions.can_add_repo %} + + {% endif %}