[PATCH] pkg_comments.php: Make comment timestamps link to the comment

Eli Schwartz eschwartz at archlinux.org
Tue Oct 16 19:23:47 UTC 2018


On 10/15/18 8:26 PM, Vladimir Panteleev wrote:
> As of today, there is no easy way to obtain a link to a specific
> comment on a package page.
> 
> Many implementations of forums and comment systems today seem to
> follow a convention where a comment's timestamp is an unobtrusive link
> to the comment itself. Some examples are:
> 
> - phpBB (e.g. bbs.archlinux.org)
> - GitHub
> - Disqus
> - Discourse
> 
> This patch adopts this convention as well, by making the comment
> timestamp an unobtrusive link to the comment itself.
> ---
>  web/html/css/aurweb.css       |  2 +-
>  web/template/pkg_comments.php | 12 +++++++-----
>  2 files changed, 8 insertions(+), 6 deletions(-)
> 
> diff --git a/web/html/css/aurweb.css b/web/html/css/aurweb.css
> index 593c9ae..d587dc6 100644
> --- a/web/html/css/aurweb.css
> +++ b/web/html/css/aurweb.css
> @@ -122,7 +122,7 @@
>  	top: 4px;
>  }
>  
> -.flagged a {
> +.flagged a, a.date {
>  	color: inherit;
>  }

This causes the link color to be the same black as the rest of the
"commented on" text. Question is, do we actually want that? It makes it
a bit hard to tell the links are there...

-- 
Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/aur-dev/attachments/20181016/1cd68549/attachment.asc>


More information about the aur-dev mailing list