From 4f7f46f606c1be9c014352e820590d45c6de2eee Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Mon, 22 Jul 2013 15:28:43 +0200 Subject: Improve appearance of the rattach thread page --- hyperkitty.spec | 2 + .../static/hyperkitty/css/hyperkitty-common.css | 1 - .../static/hyperkitty/css/hyperkitty-message.css | 15 ++++- hyperkitty/static/hyperkitty/img/participant.png | Bin 675 -> 676 bytes hyperkitty/templates/ajax/reattach_suggest.html | 3 +- hyperkitty/templates/reattach.html | 66 ++++++++++----------- hyperkitty/templates/threads/right_col.html | 14 +++-- hyperkitty/views/thread.py | 11 +++- 8 files changed, 65 insertions(+), 47 deletions(-) diff --git a/hyperkitty.spec b/hyperkitty.spec index d6e3da8..99ab7bf 100644 --- a/hyperkitty.spec +++ b/hyperkitty.spec @@ -32,6 +32,7 @@ BuildRequires: python-cssmin BuildRequires: python-mailman-client BuildRequires: python-robot-detection BuildRequires: pytz +BuildRequires: python-django-paintstore %if 0%{fedora} && 0%{fedora} < 18 BuildRequires: Django BuildRequires: Django-south @@ -52,6 +53,7 @@ Requires: python-cssmin Requires: python-mailman-client Requires: python-robot-detection Requires: pytz +Requires: python-django-paintstore %if 0%{fedora} && 0%{fedora} < 18 Requires: Django >= 1.4 Requires: Django-south diff --git a/hyperkitty/static/hyperkitty/css/hyperkitty-common.css b/hyperkitty/static/hyperkitty/css/hyperkitty-common.css index 91c4556..dab65bb 100644 --- a/hyperkitty/static/hyperkitty/css/hyperkitty-common.css +++ b/hyperkitty/static/hyperkitty/css/hyperkitty-common.css @@ -85,7 +85,6 @@ form .buttons .submit { } .participant { background-image: url("../img/participant.png"); - padding-left: 16px; margin-right: 1em; } .discussion { diff --git a/hyperkitty/static/hyperkitty/css/hyperkitty-message.css b/hyperkitty/static/hyperkitty/css/hyperkitty-message.css index 769dc02..2f76e4e 100644 --- a/hyperkitty/static/hyperkitty/css/hyperkitty-message.css +++ b/hyperkitty/static/hyperkitty/css/hyperkitty-message.css @@ -101,11 +101,11 @@ display: none; } -#thread-overview-info .unread { - margin: 0 2px 0 2px; +#thread-overview-info i { + margin-right: 1px; + margin-left: 1px; } - /* Tags */ #tags { @@ -322,9 +322,18 @@ /* * Re-attach threads */ +.reattach-thread h1 { + text-align: center; + font-size: 24px; + line-height: 26px; + margin-bottom: 2em; +} .reattach-thread form { margin-bottom: 0; } +.reattach-thread form.search { + margin-top: 2em; +} .reattach-thread form.search p { line-height: 22px; } diff --git a/hyperkitty/static/hyperkitty/img/participant.png b/hyperkitty/static/hyperkitty/img/participant.png index f2d700b..ed6b861 100644 Binary files a/hyperkitty/static/hyperkitty/img/participant.png and b/hyperkitty/static/hyperkitty/img/participant.png differ diff --git a/hyperkitty/templates/ajax/reattach_suggest.html b/hyperkitty/templates/ajax/reattach_suggest.html index 7b94075..0eaa6d5 100644 --- a/hyperkitty/templates/ajax/reattach_suggest.html +++ b/hyperkitty/templates/ajax/reattach_suggest.html @@ -3,7 +3,8 @@ {% for s_thread in suggested_threads %}
  • {% empty %} diff --git a/hyperkitty/templates/reattach.html b/hyperkitty/templates/reattach.html index b2419c9..1eeed3a 100644 --- a/hyperkitty/templates/reattach.html +++ b/hyperkitty/templates/reattach.html @@ -10,7 +10,7 @@ Reattach a thread - {{ mlist.display_name|default:mlist.name|escapeemail }} - {{ {% block content %} -
    +
    {% include 'threads/month_list.html' %} @@ -18,41 +18,39 @@ Reattach a thread - {{ mlist.display_name|default:mlist.name|escapeemail }} - {{

    Re-attach a thread to another

    -
    -

    Thread to re-attach: +

    Thread to re-attach: + {{ thread.subject }} + (started {{ thread.starting_email|get_date }}, last active: {{ thread|get_date }}) +

    + +
    + {% csrf_token %} +
      + Loading... +
    +
      +
    • + + +
    • +
    +

    + (there's no undoing!), or {{ thread.subject }} - (started {{ thread.starting_email|get_date }}, last active: {{ thread|get_date }}) + >go back to the thread.

    - -

    Re-attach it to: - - - -

    -
    -
    - {% csrf_token %} -
      - Loading... -
    -
      -
    • - - -
    • -
    -

    - (there's no undoing!), or - go back to the thread. -

    -
    -
    +
    diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html index c6d6d30..a9b5b38 100644 --- a/hyperkitty/templates/threads/right_col.html +++ b/hyperkitty/templates/threads/right_col.html @@ -33,11 +33,19 @@ Remove from favorite discussions

    +
    {{ num_comments }} comments
    +
    {{ participants|length }} participants

    {% if user.is_authenticated %} {{ unread_count }} unread messages {% endif %}

    + {% if user.is_staff %} +

    + Reattach this thread +

    + {% endif %}
    {% include 'threads/tags.html' %}
    @@ -50,12 +58,6 @@ {{ addtag_form.as_p }}
    - {% if user.is_staff %} -

    - Reattach this thread -

    - {% endif %}
    participants ({{participants|length}})