Commit 38408a7c authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: show bugs filed on a dedicated page (thanks jmw for the idea)

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent e9e8e715
......@@ -205,7 +205,7 @@ write_page_header() {
fi
# Used to highlight the link for the current page
if [ "$1" = "dashboard" ] || [ "$1" = "performance" ] || [ "$1" = "repositories" ] || [ "$1" = "variations" ] || [ "$1" = "suite_arch_stats" ]; then
if [ "$1" = "dashboard" ] || [ "$1" = "performance" ] || [ "$1" = "repositories" ] || [ "$1" = "variations" ] || [ "$1" = "suite_arch_stats" ] || [ "$1" = "bugs" ] ; then
displayed_page="\"$1\": \"true\""
else
displayed_page=''
......
......@@ -463,6 +463,14 @@ write_meta_pkg_graphs_links () {
write_page "</center></p>"
}
write_global_graph() {
write_page " <a href=\"/debian/${TABLE[$i]}.png\"><img src=\"/debian/${TABLE[$i]}.png\" class="halfview" alt=\"${MAINLABEL[$i]}\"></a>"
# redo pngs once a day
if [ ! -f $DEBIAN_BASE/${TABLE[$i]}.png ] || [ $DUMMY_FILE -nt $DEBIAN_BASE/${TABLE[$i]}.png ] ; then
create_png_from_table $i ${TABLE[$i]}.png
fi
}
#
# create dashboard page
#
......@@ -561,16 +569,10 @@ create_dashboard_page() {
write_page "<tr><td class=\"left\">&nbsp;&nbsp;- which need to be build on some archs</td><td>$(echo $RESULT)</td><td colspan=\"$AC\"></td></tr>"
fi
write_page "</table>"
# write bugs with usertags table
write_usertag_table
write_page "</p><p style=\"clear:both;\">"
# do other global graphs
for i in 8 9 3 7 4 5 ; do
write_page " <a href=\"/debian/${TABLE[$i]}.png\"><img src=\"/debian/${TABLE[$i]}.png\" class="halfview" alt=\"${MAINLABEL[$i]}\"></a>"
# redo pngs once a day
if [ ! -f $DEBIAN_BASE/${TABLE[$i]}.png ] || [ $DUMMY_FILE -nt $DEBIAN_BASE/${TABLE[$i]}.png ] ; then
create_png_from_table $i ${TABLE[$i]}.png
fi
write_page "<p style=\"clear:both;\">"
# show issue graphs
for i in 4 5 ; do
write_global_graph
done
write_page "</p>"
# the end
......@@ -579,6 +581,28 @@ create_dashboard_page() {
publish_page debian
}
#
# create bugs page
#
create_bugs_page() {
VIEW=bugs
PAGE=index_${VIEW}.html
ARCH="amd64"
SUITE="unstable"
echo "$(date -u) - starting to write $PAGE page."
write_page_header $VIEW "Bugs filed"
# write bugs with usertags table
write_usertag_table
write_page "<p style=\"clear:both;\">"
# show bug graphs
for i in 8 9 3 7 ; do
write_global_graph
done
write_page "</p>"
write_page_footer
publish_page debian
}
#
# create performance page
#
......@@ -650,5 +674,6 @@ for ARCH in ${ARCHS} ; do
done
create_performance_page
create_variations_page
create_bugs_page
create_dashboard_page
rm -f $DUMMY_FILE >/dev/null
......@@ -146,6 +146,9 @@
<li {{#issues}}class='active'{{/issues}}>
Categorized <a href="/debian/index_issues.html">issues</a>
</li>
<li {{#bugs}}class='active'{{/bugs}}>
<a href="/debian/index_bugs.html">Bugs filed</a>
</li>
<li {{#repositories}}class='active'{{/repositories}}>
<a href="/debian/index_repositories.html">
Repositories overview
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment