From 3bc951e3d87eaf692a7e47cf16a28d838c7cb2bd Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 27 Aug 2013 02:07:50 +0200 Subject: pkg_details: Convert most action links to forms Use forms and POST instead of GET for following actions: * Flagging/Unflagging a package out-of-date * Voting for a package and removing votes * Enabling/Disabling notifications Use CSS to make the submit buttons of these forms look like links. Signed-off-by: Lukas Fleischer --- web/html/css/aur.css | 19 +++++++++++++++++++ web/template/pkg_details.php | 36 ++++++++++++++++++++++++++++++------ 2 files changed, 49 insertions(+), 6 deletions(-) diff --git a/web/html/css/aur.css b/web/html/css/aur.css index bae8e21..a8fb009 100644 --- a/web/html/css/aur.css +++ b/web/html/css/aur.css @@ -14,3 +14,22 @@ #pkg-stats td.stat-desc { white-space: normal; } + +#actionlist form { + margin: 0; + padding: 0; +} + +#actionlist .text-button { + color: #07b; + background: none; + border: none; + padding: 0; + cursor: pointer; + font-size: 100%; +} + +#actionlist .text-button:hover { + text-decoration: underline; + color: #666; +} diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 0973448..bd54923 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -39,20 +39,44 @@ $sources = package_sources($row["ID"]);
  • -
  • +
  • +
    + +
    +
  • -
  • +
  • +
    + +
    +
  • -
  • +
  • +
    + +
    +
  • -
  • +
  • +
    + +
    +
  • -
  • +
  • +
    + +
    +
  • -
  • +
  • +
    + +
    +
  • -- cgit v1.2.3-54-g00ecf