From patchwork Sun Oct 7 19:01:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Olli X-Patchwork-Id: 795 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id C3B517680607 for ; Sun, 7 Oct 2018 19:01:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00=-1, MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] [127.0.0.10] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sun, 7 Oct 2018 19:01:42 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id EAF4CDF936CCE; Sun, 7 Oct 2018 19:01:37 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sun, 7 Oct 2018 19:01:37 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id B1A472BF09; Sun, 7 Oct 2018 19:01:37 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=none Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id B270A2BF08 for ; Sun, 7 Oct 2018 19:01:35 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sun, 7 Oct 2018 19:01:35 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 437B3DF936CCB for ; Sun, 7 Oct 2018 19:01:29 +0000 (UTC) Received: from wolf.uberspace.de (wolf.uberspace.de [185.26.156.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sun, 7 Oct 2018 19:01:29 +0000 (UTC) Received: (qmail 24302 invoked from network); 7 Oct 2018 19:01:28 -0000 Received: from unknown (HELO yuki.localdomain) (176.199.32.87) by wolf.uberspace.de with SMTP; 7 Oct 2018 19:01:28 -0000 From: coderkun To: arch-projects@archlinux.org Date: Sun, 7 Oct 2018 21:01:26 +0200 Message-Id: <20181007190126.9413-1-olli@suruatoel.xyz> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [arch-projects] =?utf-8?q?=5Barchweb=5D_=5BPATCH=5D_Add_=E2=80=9Cre?= =?utf-8?q?l=E2=80=9D_attribute_to_pagination_links?= X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux projects development discussion Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" Add the “rel” attribute for “prev” and “next” to the pagination links of news and packages. --- templates/news/paginator.html | 4 ++-- templates/packages/search_paginator.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/news/paginator.html b/templates/news/paginator.html index 57fbeb1..524c666 100644 --- a/templates/news/paginator.html +++ b/templates/news/paginator.html @@ -4,7 +4,7 @@

{% if page_obj.has_previous %} + title="Go to previous page" rel="prev">< Prev {% endif %} {% for num in paginator.page_range %} {% ifequal num page_obj.number %} @@ -15,7 +15,7 @@ {% endfor %} {% if page_obj.has_next %} + title="Go to next page" rel="next">Next > {% endif %}

diff --git a/templates/packages/search_paginator.html b/templates/packages/search_paginator.html index a748d26..a676626 100644 --- a/templates/packages/search_paginator.html +++ b/templates/packages/search_paginator.html @@ -7,7 +7,7 @@ {% if page_obj.has_previous %} < Prev + title="Go to previous page" rel="prev">< Prev {% else %} < Prev {% endif %} @@ -15,7 +15,7 @@ {% if page_obj.has_next %} Next > + title="Go to next page" rel="next">Next > {% else %} Next > {% endif %}