From fc00fda8410eb621a422ab63e03f051954d12555 Mon Sep 17 00:00:00 2001 From: llj Date: Thu, 31 Mar 2016 15:02:17 +0800 Subject: [PATCH] [api2] removed unused template files --- seahub/api2/templates/api2/discussion.html | 89 ------------------- .../templates/api2/discussion_posted.html | 64 ------------- seahub/api2/templates/api2/new_msg_reply.html | 88 ------------------ seahub/api2/templates/api2/reply.html | 11 --- 4 files changed, 252 deletions(-) delete mode 100644 seahub/api2/templates/api2/discussion.html delete mode 100644 seahub/api2/templates/api2/discussion_posted.html delete mode 100644 seahub/api2/templates/api2/new_msg_reply.html delete mode 100644 seahub/api2/templates/api2/reply.html diff --git a/seahub/api2/templates/api2/discussion.html b/seahub/api2/templates/api2/discussion.html deleted file mode 100644 index a01e8aa089..0000000000 --- a/seahub/api2/templates/api2/discussion.html +++ /dev/null @@ -1,89 +0,0 @@ -{% extends "api2/base.html" %} - -{% load seahub_tags avatar_tags i18n %} -{% load url from future %} - -{% block sub_title %}{% trans "Discussion" %} - {% endblock %} - -{% block main_panel %} - -
-
- {% avatar msg.from_email 48 %} -
-
-
- {{ msg.from_email|email2nickname }} - {{ msg.timestamp|translate_seahub_time }} -
-

{{ msg.message|seahub_urlize|find_at|linebreaksbr }}

- {% if msg.attachment %} - {% with ma=msg.attachment %} -
- {% if ma.src == 'recommend' %} - {% if ma.attach_type == 'file' %} - {% if ma.filetype != 'Image'%} - {% trans - {{ ma.name }} - {% else %} - {% if ma.err %} -

{{ma.err}}

- {% else %} - {{ma.name}} - {% endif %} - {% endif %} - {% else %} - {% trans - {{ ma.name }} - {% endif %} - {% endif %} - - {% if ma.src == 'filecomment' %} {# compatible with comments already exist #} - {% trans - {{ ma.name }} - {% endif %} -
- {% endwith %} - {% endif %} -
-
-
- - {% if msg.reply_cnt > 0 %} -
- {% else %} -
- {% endif %} -
    - {% for r in msg.replies %} -
  • - {% avatar r.from_email 48 %} -
    - {{ r.from_email|email2nickname }} - {{ r.timestamp|translate_seahub_time }} -

    {{ r.message|seahub_urlize|find_at }}

    -
    -
  • - {% endfor %} -
-
-
- -
-{% endblock %} - -{% block extra_script %} - -{% endblock %} diff --git a/seahub/api2/templates/api2/discussion_posted.html b/seahub/api2/templates/api2/discussion_posted.html deleted file mode 100644 index 9acf22aae4..0000000000 --- a/seahub/api2/templates/api2/discussion_posted.html +++ /dev/null @@ -1,64 +0,0 @@ -{% load seahub_tags avatar_tags i18n %} -{% load url from future %} - -
  • - {% avatar msg.from_email 48 %} -
    -
    -
    - {{ msg.from_email|email2nickname }} - {{ msg.timestamp|translate_seahub_time }} -
    -

    {{ msg.message|seahub_urlize|find_at|linebreaksbr }}

    - {% if msg.attachment %} - {% with ma=msg.attachment %} -
    - {% if ma.src == 'recommend' %} - {% if ma.attach_type == 'file' %} - {% if ma.filetype != 'Image'%} - {% trans - {{ ma.name }} - {% else %} - {% if ma.err %} -

    {{ma.err}}

    - {% else %} - {{ma.name}} - {% endif %} - {% endif %} - {% else %} - {% trans - {{ ma.name }} - {% endif %} - {% endif %} - - {% if ma.src == 'filecomment' %} {# compatible with comments already exist #} - {% trans - {{ ma.name }} - {% endif %} -
    - {% endwith %} - {% endif %} -
    - - {% if msg.reply_cnt > 0 %} -
    - {% if msg.reply_cnt > 3 %} - {% blocktrans with amount=msg.reply_cnt %}{{ amount }} replies{% endblocktrans %} - {% endif %} -
      - {% for r in msg.replies %} -
    • - {% avatar r.from_email 28 %} -
      - {{ r.from_email|email2nickname }} - {{ r.timestamp|translate_seahub_time }} -

      {{ r.message|seahub_urlize|find_at }}

      -
      -
    • - {% endfor %} -
    -
    -
    - {% endif %} -
    -
  • diff --git a/seahub/api2/templates/api2/new_msg_reply.html b/seahub/api2/templates/api2/new_msg_reply.html deleted file mode 100644 index 134bb232a6..0000000000 --- a/seahub/api2/templates/api2/new_msg_reply.html +++ /dev/null @@ -1,88 +0,0 @@ -{% extends "api2/base.html" %} - -{% load seahub_tags avatar_tags i18n %} -{% load url from future %} - -{% block sub_title %}{% trans "New Replies" %} - {% endblock %} - -{% block main_panel %} - -{% for msg in group_msgs %} - -
    - {% avatar msg.from_email 48 %} -
    -
    -
    - {{ msg.from_email|email2nickname }} - {{ msg.timestamp|translate_seahub_time }} -
    -

    {{ msg.message|seahub_urlize|find_at|linebreaksbr }}

    - {% if msg.attachment %} - {% with ma=msg.attachment %} -
    - {% if ma.src == 'recommend' %} - {% if ma.attach_type == 'file' %} - {% if ma.filetype != 'Image'%} - {% trans - {{ ma.name }} - {% else %} - {% if ma.err %} -

    {{ma.err}}

    - {% else %} - {{ma.name}} - {% endif %} - {% endif %} - {% else %} - {% trans - {{ ma.name }} - {% endif %} - {% endif %} - - {% if ma.src == 'filecomment' %} {# compatible with comments already exist #} - {% trans - {{ ma.name }} - {% endif %} -
    - {% endwith %} - {% endif %} -
    - {% if msg.reply_cnt > 0 %} -
    - {% else %} -
    - {% endif %} -
      - {% for r in msg.replies %} -
    • - {% avatar r.from_email 28 %} -
      - {{ r.from_email|email2nickname }} - {{ r.timestamp|translate_seahub_time }} -

      {{ r.message|seahub_urlize|find_at }}

      -
      -
    • - {% endfor %} -
    -
    -
    -
    -
    -{% endfor %} -{% endblock %} - -{% block extra_script %} - -{% endblock %} diff --git a/seahub/api2/templates/api2/reply.html b/seahub/api2/templates/api2/reply.html deleted file mode 100644 index 34607a620d..0000000000 --- a/seahub/api2/templates/api2/reply.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load seahub_tags avatar_tags i18n %} - -
  • - {% avatar r.from_email 48 %} -
    - {{ r.from_email|email2nickname }} - {{ r.timestamp|translate_seahub_time }} -

    {{ r.message|seahub_urlize|find_at }}

    -
    -
  • -