GNU bug report logs - #36579
[PATCH] website: Add "permalinks" to package entries in package-list.

Previous Next

Package: guix-patches;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Wed, 10 Jul 2019 17:05:03 UTC

Severity: normal

Tags: patch

Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36579 in the body.
You can then email your comments to 36579 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#36579; Package guix-patches. (Wed, 10 Jul 2019 17:05:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 10 Jul 2019 17:05:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] website: Add "permalinks" to package entries in package-list.
Date: Wed, 10 Jul 2019 19:04:37 +0200
* website/apps/packages/templates/components.scm
  (detailed-package-preview): Add an id attribute and a link to itself
  to each package entry headline.
* website/static/packages/css/package-list.css: Add style rules
  to show the permalink symbol only when hovering over the
  headline.
---
 .../apps/packages/templates/components.scm    |  8 ++++++--
 website/static/packages/css/package-list.css  | 19 ++++++++++++++++++-
 2 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/website/apps/packages/templates/components.scm b/website/apps/packages/templates/components.scm
index 96e4296..7352402 100644
--- a/website/apps/packages/templates/components.scm
+++ b/website/apps/packages/templates/components.scm
@@ -41,13 +41,17 @@
   `(div
     (@ (class "package-preview"))
     (h3
-     (@ (class "package-name"))
+     (@ (class "package-name") (id ,(package-name package)))
      ,(package-name package) " " ,(package-version package) " "
      ,(if (package-issues? package) '(span (@ (class "red-tag")) "") " ")
      (span
       (@ (class "package-synopsis"))
       " — "
-      ,(package-synopsis-shtml package)))
+      ,(package-synopsis-shtml package))
+      (a
+       (@ (class "headerlink") (title "Permalink to this package")
+	  (href ,(string-append "#" (package-name package))))
+       " ¶"))
 
     (div
      (@ (class "package-description"))
diff --git a/website/static/packages/css/package-list.css b/website/static/packages/css/package-list.css
index 10f079b..2e9e352 100644
--- a/website/static/packages/css/package-list.css
+++ b/website/static/packages/css/package-list.css
@@ -40,4 +40,21 @@
     display: inline-block;
     height: 13px;
     width: 22px;
-}
\ No newline at end of file
+}
+
+a.headerlink {
+    visibility: hidden;
+}
+
+h1:hover > a.headerlink,
+h2:hover > a.headerlink,
+h3:hover > a.headerlink,
+h4:hover > a.headerlink,
+h5:hover > a.headerlink,
+h6:hover > a.headerlink,
+dt:hover > a.headerlink,
+caption:hover > a.headerlink,
+p.caption:hover > a.headerlink,
+div.code-block-caption:hover > a.headerlink {
+    visibility: visible;
+}
-- 
2.21.0





Reply sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
You have taken responsibility. (Thu, 08 Aug 2019 12:22:01 GMT) Full text and rfc822 format available.

Notification sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
bug acknowledged by developer. (Thu, 08 Aug 2019 12:22:05 GMT) Full text and rfc822 format available.

Message #10 received at 36579-close <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: 36579-close <at> debbugs.gnu.org
Subject: [PATCH] website: Add "permalinks" to package entries in package-list.
Date: Thu, 8 Aug 2019 14:21:21 +0200
Obsolete due to new website design

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 06 Sep 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.