cookutils rev 1091
index.cgi: change URL for badges (was "Bad request" on SliTaz server)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 24 14:41:40 2018 +0200 (2018-11-24) |
parents | 77291d41f21a |
children | 1bc8e59284aa |
files | lighttpd/index.cgi |
line diff
1.1 --- a/lighttpd/index.cgi Sat Nov 24 13:28:02 2018 +0200 1.2 +++ b/lighttpd/index.cgi Sat Nov 24 14:41:40 2018 +0200 1.3 @@ -96,7 +96,7 @@ 1.4 if [ -n "$pkg" ]; then 1.5 case "$pkg" in 1.6 ~) if [ -z "$cmd" ]; then pretitle="Tag cloud - "; else pretitle="Tag \"$cmd\" - "; fi;; 1.7 - %) if [ -z "$cmd" ]; then pretitle="Badges - "; else pretitle="Badge \"$cmd\" - "; fi;; 1.8 + =) if [ -z "$cmd" ]; then pretitle="Badges - "; else pretitle="Badge \"$cmd\" - "; fi;; 1.9 *) pretitle="$pkg - ";; 1.10 esac 1.11 else 1.12 @@ -1367,7 +1367,7 @@ 1.13 cat <<-EOT 1.14 <section> 1.15 <h2>For maintainers</h2> 1.16 - <p>Here you can <a href="%/">explore the badges</a>.</p> 1.17 + <p>Here you can <a href="=/">explore the badges</a>.</p> 1.18 <p>Or see some <a href="?maintainer&stats">repository statistics</a>.</p> 1.19 <p>Or check packages version either for specified maintainer or using regular expression:</p> 1.20 <form> 1.21 @@ -1582,7 +1582,7 @@ 1.22 1.23 # show badges 1.24 1.25 -if [ "$pkg" == '%' ]; then 1.26 +if [ "$pkg" == '=' ]; then 1.27 page_header 1.28 echo '<div id="content2">' 1.29