From 30c26b8e73fb497b7c42b2f528be118f4077890e Mon Sep 17 00:00:00 2001 From: Emanuele Aina <emanuele.aina@collabora.com> Date: Fri, 1 Oct 2021 23:36:52 +0200 Subject: [PATCH] dashboard: Add self-links on each report Make it easier to share a pointer to a specific report by making the anchors more discoverable with self-links that appear on hover. Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com> --- templates/index.html.jinja2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/index.html.jinja2 b/templates/index.html.jinja2 index e8e89a5..9a41719 100644 --- a/templates/index.html.jinja2 +++ b/templates/index.html.jinja2 @@ -13,6 +13,15 @@ .nonzero { font-weight: bold; } + .list-group-item .self-link { + transition: visibility 1s, opacity 1s; + visibility: hidden; + opacity: 0; + } + .list-group-item:hover .self-link { + visibility: initial; + opacity: 1; + } </style> </head> <body> @@ -66,6 +75,7 @@ {{ package.name }} {% endif -%} </strong> + <a class="self-link" href="#pkg-{{package.name}}">¶</a> </h5> </div> -- GitLab