summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-05-07 18:14:35 +0200
committerbbaetz%student.usyd.edu.au <>2002-05-07 18:14:35 +0200
commitb8465474ad9cc187ba020b16609ff6a1933d4e17 (patch)
tree5facd566b8459ee1da3cdf13ebb5959dd2e8353d /template
parent04fd648fa95c624466fd1ba626fa4ef02c089a72 (diff)
downloadbugzilla-b8465474ad9cc187ba020b16609ff6a1933d4e17.tar.gz
bugzilla-b8465474ad9cc187ba020b16609ff6a1933d4e17.tar.xz
Bug 134571 - client-side image maps in showdependencygraph.cgi
Patch by zeroJ@null.net (John Vandenberg), r=bbaetz, justdave
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/dependency-graph.html.tmpl16
1 files changed, 12 insertions, 4 deletions
diff --git a/template/en/default/bug/dependency-graph.html.tmpl b/template/en/default/bug/dependency-graph.html.tmpl
index 93c515bd8..3266f5fd7 100644
--- a/template/en/default/bug/dependency-graph.html.tmpl
+++ b/template/en/default/bug/dependency-graph.html.tmpl
@@ -27,7 +27,9 @@
# rankdir: string. "TB" if we are ranking top-to-bottom,
"LR" if left-to-right.
# image_url: string. The URL of the graphic showing the dependencies.
- # map_url: string. The URL of the map file for the image.
+ # map_url: string. The URL of the map file for the image. (Optional)
+ # image_map: string. The image map for the graphic showing the
+ dependencies. (Optional)
#%]
[% title = "Dependency Graph"
@@ -42,13 +44,19 @@
[% PROCESS global/header.html.tmpl %]
+[% image_map %]
+
<p>
Green circles represent open bugs.
</p>
-<a href="[% map_url %]">
- <img src="[% image_url %]" ismap>
-</a>
+[% IF image_map %]
+ <img src="[% image_url %]" usemap="#imagemap">
+[% ELSE %]
+ <a href="[% map_url %]">
+ <img src="[% image_url %]" ismap>
+ </a>
+[% END %]
<hr>