Use JavaScript to collapse long comments
commit4abde895a5b579fb798e062806c8fef2289f0d8f
authorLukas Fleischer <lfleischer@archlinux.org>
Wed, 19 Apr 2017 15:21:15 +0000 (19 17:21 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Thu, 20 Apr 2017 05:03:54 +0000 (20 07:03 +0200)
tree6898017bad6285e6a2c9c76c89dc39506f357570
parent44858e06188946c0082bb09061fcfa6cbb33938b
Use JavaScript to collapse long comments

Instead of using CSS to limit the height of package comments as
implemented in 7b13203 (Limit comment height to 15 lines, 2016-03-12),
use JavaScript to collapse long comments and add a link to expand them.
Clicking the same link twice results in the corresponding comment being
collapsed again.

If JavaScript is disabled, the full comments are shown (without any
possibility to collapse or expand).

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
web/html/css/aurweb.css
web/html/packages.php
web/template/pkg_comments.php