get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1516050/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1516050,
    "url": "http://patchwork.ozlabs.org/api/patches/1516050/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/patchwork/patch/20210811213705.36293-14-stephen@that.guru/",
    "project": {
        "id": 16,
        "url": "http://patchwork.ozlabs.org/api/projects/16/?format=api",
        "name": "Patchwork",
        "link_name": "patchwork",
        "list_id": "patchwork.lists.ozlabs.org",
        "list_email": "patchwork@lists.ozlabs.org",
        "web_url": "http://jk.ozlabs.org/projects/patchwork/",
        "scm_url": "git://github.com/getpatchwork/patchwork",
        "webscm_url": "https://github.com/getpatchwork/patchwork",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20210811213705.36293-14-stephen@that.guru>",
    "list_archive_url": null,
    "date": "2021-08-11T21:36:59",
    "name": "[RFC,13/19] templates: Convert bundles view",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": false,
    "hash": "8da4a6d827f6c467c18ca10da1c581282ce0dea8",
    "submitter": {
        "id": 69991,
        "url": "http://patchwork.ozlabs.org/api/people/69991/?format=api",
        "name": "Stephen Finucane",
        "email": "stephen@that.guru"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/patchwork/patch/20210811213705.36293-14-stephen@that.guru/mbox/",
    "series": [
        {
            "id": 257699,
            "url": "http://patchwork.ozlabs.org/api/series/257699/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/patchwork/list/?series=257699",
            "date": "2021-08-11T21:36:49",
            "name": "Integrate Bulma",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/257699/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1516050/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1516050/checks/",
    "tags": {},
    "related": [
        {
            "id": 1523345,
            "url": "http://patchwork.ozlabs.org/api/patches/1523345/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/patchwork/patch/20210901165756.181192-14-stephen@that.guru/",
            "msgid": "<20210901165756.181192-14-stephen@that.guru>",
            "list_archive_url": null,
            "date": "2021-09-01T16:57:50",
            "name": "[RFC,v2,13/19] templates: Convert bundles view",
            "mbox": "http://patchwork.ozlabs.org/project/patchwork/patch/20210901165756.181192-14-stephen@that.guru/mbox/"
        }
    ],
    "headers": {
        "Return-Path": "\n <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "patchwork@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "patchwork@lists.ozlabs.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" header.d=that.guru\n header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=iMvqDiWM;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"key not found in DNS\" header.d=that.guru\n header.i=@that.guru header.a=rsa-sha256 header.s=x header.b=iMvqDiWM;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=that.guru\n (client-ip=136.175.108.179; helo=mail-108-mta179.mxroute.com;\n envelope-from=stephen@that.guru; receiver=<UNKNOWN>)",
            "lists.ozlabs.org;\n dkim=fail reason=\"key not found in DNS\" header.d=that.guru\n header.i=@that.guru\n header.a=rsa-sha256 header.s=x header.b=iMvqDiWM;\n dkim-atps=neutral"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4GlPCN4d7Pz9sSs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 12 Aug 2021 08:10:40 +1000 (AEST)",
            "from boromir.ozlabs.org (localhost [IPv6:::1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4GlPCN3k6xz3cLT\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 12 Aug 2021 08:10:40 +1000 (AEST)",
            "from mail-108-mta179.mxroute.com (mail-108-mta179.mxroute.com\n [136.175.108.179])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by lists.ozlabs.org (Postfix) with ESMTPS id 4GlPBp23tNz301N\n for <patchwork@lists.ozlabs.org>; Thu, 12 Aug 2021 08:10:09 +1000 (AEST)",
            "from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com)\n (Authenticated sender: mN4UYu2MZsgR)\n by mail-108-mta179.mxroute.com (ZoneMTA) with ESMTPSA id\n 17b3743f20c00074ba.002 for <patchwork@lists.ozlabs.org>\n (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256);\n Wed, 11 Aug 2021 22:10:04 +0000"
        ],
        "X-Zone-Loop": "8dec9740efcd54abfb71510e1a4b72ff146c68aa6e99",
        "X-Originating-IP": "[149.28.56.236]",
        "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru;\n s=x;\n h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:\n Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:\n Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:\n List-Post:List-Owner:List-Archive;\n bh=E0oxURcwugCDAmHiIfqt4ycDj5bO3WwDviQixPzR3/8=; b=iMvqDiWMKhQXNlpYajv0ILFpT5\n E6iBvxaR42LgRAZ0NQFGl/6TwmqC4NXp8wSxSIHBXfWvWewTX7AQGkgdlM4RfgdwJiRP3LHTqyhcp\n ctszPmPskHczJLuJBhVXRiF00TyYFKocyMPHaObVBYYOldnSXqfpn3WYMh9cGiN3YocqPyDU5aQd0\n EMCaMEVEuPGOGX42f03EZC1YGecIHZtpNz2SfnOht803Goy9I30R3mTCUWTPUeOIbSApS+dqnFR63\n DzyUwTILLaEsJoeV13bHTt3Vx3QA2dwjLnnW37op5me+0N8cqefslmwxv4R8ioP8pXj/ocHeMhHfK\n G5CvbhqA==;",
        "From": "Stephen Finucane <stephen@that.guru>",
        "To": "patchwork@lists.ozlabs.org",
        "Subject": "[RFC PATCH 13/19] templates: Convert bundles view",
        "Date": "Wed, 11 Aug 2021 22:36:59 +0100",
        "Message-Id": "<20210811213705.36293-14-stephen@that.guru>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20210811213705.36293-1-stephen@that.guru>",
        "References": "<20210811213705.36293-1-stephen@that.guru>",
        "MIME-Version": "1.0",
        "X-AuthUser": "stephen@that.guru",
        "X-Zone-Spam-Resolution": "no action",
        "X-Zone-Spam-Status": "No, score=5, required=15, tests=[ARC_NA=0,\n FROM_HAS_DN=0, RCPT_COUNT_THREE=0, TO_DN_SOME=0, R_MISSING_CHARSET=2.5,\n NEURAL_SPAM=0, BROKEN_CONTENT_TYPE=1.5, MID_CONTAINS_FROM=1,\n RCVD_COUNT_ZERO=0, FROM_EQ_ENVFROM=0, MIME_TRACE=0]",
        "X-BeenThere": "patchwork@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Patchwork development <patchwork.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/patchwork>,\n <mailto:patchwork-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/patchwork/>",
        "List-Post": "<mailto:patchwork@lists.ozlabs.org>",
        "List-Help": "<mailto:patchwork-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/patchwork>,\n <mailto:patchwork-request@lists.ozlabs.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Patchwork\"\n <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org>"
    },
    "content": "Signed-off-by: Stephen Finucane <stephen@that.guru>\n---\n patchwork/templates/patchwork/bundles.html | 137 ++++++++++++---------\n 1 file changed, 81 insertions(+), 56 deletions(-)",
    "diff": "diff --git patchwork/templates/patchwork/bundles.html patchwork/templates/patchwork/bundles.html\nindex cc2ebf90..c351a3cf 100644\n--- patchwork/templates/patchwork/bundles.html\n+++ patchwork/templates/patchwork/bundles.html\n@@ -1,66 +1,91 @@\n-{% extends \"base.html\" %}\n-\n-{% load static %}\n+{% extends \"base2.html\" %}\n \n {% block title %}Bundles{% endblock %}\n-{% block bundle_active %}active{% endblock %}\n \n {% block body %}\n-<h1>Bundles</h1>\n+<div class=\"container\" style=\"margin-top: 1rem;\">\n+  <h1 class=\"title\">\n+    Bundles\n+  </h1>\n+\n+  <section class=\"block\">\n+    <p>\n+      Bundles are groups of related patches.\n+      You can create bundles by selecting patches from a project,\n+      then using the 'create bundle' form to give your bundle a name.\n+      Each bundle can be public or private;\n+      public bundles are given a persistent URL,\n+      based on your username and the name of the bundle.\n+      Private bundles are only visible to you.\n+    </p>\n+  </section>\n \n+  <section class=\"block\">\n {% if bundles %}\n-<table class=\"bundlelist\">\n-  <tr>\n-    <th>Bundle</th>\n-    <th>Project</th>\n-    <th>Public</th>\n-    <th>Patches</th>\n-    <th>Download</th>\n-    <th>Delete</th>\n-  </tr>\n+    <div class=\"table-container\">\n+      <table class=\"table is-fullwidth\">\n+        <tr>\n+          <th class=\"has-text-left\">Bundle</th>\n+          <th class=\"has-text-centered\">Project</th>\n+          <th class=\"has-text-centered\">Patches</th>\n+          <th class=\"has-text-centered\">Public</th>\n+          <th class=\"has-text-right\">Actions</th>\n+        </tr>\n {% for bundle in bundles %}\n-  <tr>\n-    <td><a href=\"{{ bundle.get_absolute_url }}\">{{ bundle.name }}</a></td>\n-    <td>\n-      <a href=\"{% url 'project-detail' project_id=bundle.project.linkname %}\">\n-        {{ bundle.project.linkname }}\n-      </a>\n-    </td>\n-    <td style=\"text-align: center;\">\n-      {% if bundle.public %}\n-        <span class=\"glyphicon glyphicon-ok\"></span>\n-      {% else %}\n-        <span class=\"glyphicon glyphicon-remove\"></span>\n-      {% endif %}\n-    </td>\n-    <td style=\"text-align: right\">{{ bundle.patches.count }}</td>\n-    <td style=\"text-align: center;\"><a href=\"{{ bundle.get_mbox_url }}\"\n-      ><span class=\"glyphicon glyphicon-download-alt\"></span></a></td>\n-    <td style=\"text-align: center;\">\n-      <form method=\"post\"\n-        onsubmit=\"return confirm_delete('bundle', '{{ bundle.name|escapejs }}');\">\n-        {% csrf_token %}\n-        {{ bundle.delete_form.as_p }}\n-        <button type=\"submit\" style=\"background: transparent; border: 0px; padding: 0; outline: 0;\">\n-          <span class=\"glyphicon glyphicon-remove\"></span>\n-        </button>\n-      </form>\n-    </td>\n-\n-  </tr>\n-{% endfor %}\n-</table>\n+        <form id=\"delete-bundle\" method=\"post\" onsubmit=\"return confirm_delete('bundle', '{{ bundle.name|escapejs }}');\">\n+          {% csrf_token %}\n+          <input type=\"hidden\" name=\"form_name\" value=\"deletebundleform\">\n+          <input type=\"hidden\" name=\"bundle_id\" value=\"{{ bundle.id }}\">\n+        </form>\n+        <tr>\n+          <td class=\"has-text-left\">\n+            <a href=\"{{ bundle.get_absolute_url }}\">{{ bundle.name }}</a>\n+          </td>\n+          <td class=\"has-text-centered\">\n+            <a href=\"{% url 'project-detail' project_id=bundle.project.linkname %}\">\n+              {{ bundle.project.name }}\n+            </a>\n+          </td>\n+          <td class=\"has-text-centered\">{{ bundle.patches.count }}</td>\n+          <td class=\"has-text-centered\">\n+{% if bundle.public %}\n+            <span class=\"icon\">\n+              <i class=\"fa fa-check\"></i>\n+            </span>\n+{% else %}\n+            <span class=\"icon\">\n+              <i class=\"fa fa-times\"></i>\n+            </span>\n {% endif %}\n-\n-<p>\n-  Bundles are groups of related patches. You can create bundles by\n-  selecting patches from a project, then using the 'create bundle' form\n-  to give your bundle a name. Each bundle can be public or private; public\n-  bundles are given a persistent URL, based you your username and the name\n-  of the bundle. Private bundles are only visible to you.\n-</p>\n-\n-{% if not bundles %}\n-<p>You have no bundles.</p>\n+          </td>\n+          <td class=\"has-text-right\">\n+            <a href=\"{{ bundle.get_mbox_url }}\" class=\"button is-success is-small\">\n+              <span class=\"icon is-small\"><i class=\"fas fa-download\"></i></span>\n+              <span>Download</span>\n+            </a>\n+            <button class=\"button is-danger is-small\" form=\"delete-bundle\">\n+              <span class=\"icon is-small\"><i class=\"fas fa-times\"></i></span>\n+              <span>Delete</span>\n+            </button>\n+          </td>\n+        </tr>\n+{% endfor %}\n+      </table>\n+    </div>\n+{% else %}\n+    <div class=\"box\">\n+      <div class=\"columns\">\n+        <div class=\"column is-narrow\">\n+          <span class=\"icon\">\n+            <i class=\"fa fa-info\"></i>\n+          </span>\n+        </div>\n+        <div class=\"column\">\n+          <p>You have no bundles.</p>\n+        </div>\n+      </div>\n+    </div>\n {% endif %}\n+  </section>\n+</div>\n {% endblock %}\n",
    "prefixes": [
        "RFC",
        "13/19"
    ]
}