From c71c07894995f92628cb69af5183f2cb9a872bac Mon Sep 17 00:00:00 2001
From: Levente Polyak <levente@leventepolyak.net>
Date: Thu, 15 Oct 2020 00:08:05 +0200
Subject: [PATCH] section: add package back ref link to archweb

---
 src/Section.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Section.js b/src/Section.js
index 68a70c3..bacb3e7 100644
--- a/src/Section.js
+++ b/src/Section.js
@@ -8,7 +8,8 @@ function StatusSection(props) {
   const content = (
     <ul>
     {props.pkgs.map(function(pkg) {
-      return <li key={pkg.name}><p className="subtitle is-6 has-text-white">{pkg.name} {pkg.version}</p></li>
+      let url=`https://www.archlinux.org/packages/${pkg.suite}/${pkg.architecture}/${pkg.name}`;
+      return <li key={pkg.name}><p className="subtitle is-6 has-text-white"><a href={url}>{pkg.name} {pkg.version}</a></p></li>
     })}
     </ul>
   );
-- 
GitLab