~sircmpwn/lists.sr.ht

5ee581ceae830ba466d1a8dcd7646575de57a709 — Drew DeVault 4 months ago b0a9297 0.38.4
Fix patchset UI links
3 files changed, 13 insertions(+), 3 deletions(-)

M listssrht/process.py
M listssrht/templates/patchset.html
M listssrht/templates/thread.html
M listssrht/process.py => listssrht/process.py +1 -1
@@ 465,7 465,7 @@ def dispatch_message(address, list_id, mail):
                return
            dest.updated = datetime.utcnow()

            list_id = mail.get("List-Id")
            list_id = mail.get("List-ID")
            if dest.mirror_id or list_id:
                archived = _mirror(dest, mail)
                _webhooks(dest, archived)

M listssrht/templates/patchset.html => listssrht/templates/patchset.html +2 -2
@@ 114,9 114,9 @@
            Copy & paste the following snippet into your terminal to
            import this patchset into git:
          </p>
          <pre>curl -s {{root}}{{ url_for('archives.mbox',
          <pre>curl -s {{root}}{{ url_for('patches.mbox',
            owner_name=owner.canonical_name, list_name=ml.name,
            message_id=thread.message_id) }} | git am -3</pre>
            patchset_id=patchset.id) }} | git am -3</pre>
          <a
            href="https://git-send-email.io/"
            target="_blank"

M listssrht/templates/thread.html => listssrht/templates/thread.html +10 -0
@@ 13,6 13,16 @@
<div class="container">
  <div class="row">
    <div class="col-md-12">
      {% if thread.patchset_id %}
      <div class="alert alert-info">
        This thread contains a patchset. You're looking at the original emails,
        but you may wish to use the patch review UI.
        <a class="btn btn-primary pull-right" 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>
      </div>
      {% endif %}
      {% macro display_message(msg) %}
      {% set stripped_subject =
        msg.subject[4:] if (msg.subject