~sircmpwn/lists.sr.ht

ff57072e5c41cc31270db4ff5648348f54c0201d — Drew DeVault 5 months ago 37babb1 0.38.2
Rearrange thread template
1 files changed, 28 insertions(+), 29 deletions(-)

M listssrht/templates/thread.html
M listssrht/templates/thread.html => listssrht/templates/thread.html +28 -29
@@ 12,35 12,7 @@
{% block content %}
<div class="container">
  <div class="row">
    <div class="col-md-4">
      {% if ml.description %}
      {{ml.description | md}}
      {% endif %}
      <div class="form-group">
        {% if thread.patchset_id %}
        <a class="btn btn-success btn-block" href="{{ url_for('patches.patchset',
          owner_name=owner.canonical_name, list_name=ml.name,
          patchset_id=thread.patchset_id) }}"
        >Review patch {{icon('caret-right')}}</a>
        {% if current_user %}
        <a class="btn btn-default btn-block"
          href="{{reply_to(thread.replies[-1] if thread.replies else thread)}}"
        >Reply to thread {{icon('caret-right')}}</a>
        {% endif %}
        {% else %}
        {% if current_user %}
        <a class="btn btn-primary btn-block"
          href="{{reply_to(thread.replies[-1] if thread.replies else thread)}}"
        >Reply to thread {{icon('caret-right')}}</a>
        {% endif %}
        {% endif %}
        <a class="btn btn-default btn-block" href="{{ url_for('archives.mbox',
          owner_name=owner.canonical_name, list_name=ml.name,
          message_id=thread.message_id) }}"
        >Export thread (mbox) {{icon('caret-right')}}</a>
      </div>
    </div>
    <div class="col-md-8">
    <div class="col-md-12">
      {% macro display_message(msg) %}
      {% set stripped_subject =
        msg.subject[4:] if (msg.subject


@@ 189,5 161,32 @@
      {% endfor %}
    </div>
  </div>
  <div class="row">
    <div class="col-md-6 offset-md-6">
      <div class="form-group">
        {% if thread.patchset_id %}
        <a class="btn btn-success btn-block" href="{{ url_for('patches.patchset',
          owner_name=owner.canonical_name, list_name=ml.name,
          patchset_id=thread.patchset_id) }}"
        >Review patch {{icon('caret-right')}}</a>
        {% if current_user %}
        <a class="btn btn-default btn-block"
          href="{{reply_to(thread.replies[-1] if thread.replies else thread)}}"
        >Reply to thread {{icon('caret-right')}}</a>
        {% endif %}
        {% else %}
        {% if current_user %}
        <a class="btn btn-primary btn-block"
          href="{{reply_to(thread.replies[-1] if thread.replies else thread)}}"
        >Reply to thread {{icon('caret-right')}}</a>
        {% endif %}
        {% endif %}
        <a class="btn btn-default btn-block" href="{{ url_for('archives.mbox',
          owner_name=owner.canonical_name, list_name=ml.name,
          message_id=thread.message_id) }}"
        >Export thread (mbox) {{icon('caret-right')}}</a>
      </div>
    </div>
  </div>
</div>
{% endblock %}