Alexandre Julliard : Make the regression SHA1 a URL in the bug edit form.
Alexandre Julliard
julliard at winehq.org
Fri Sep 23 06:09:08 CDT 2011
Module: bugzilla
Branch: master
Commit: 1bfdb2639676f750aa34f14a09da598b9113a913
URL: http://source.winehq.org/git/bugzilla.git/?a=commit;h=1bfdb2639676f750aa34f14a09da598b9113a913
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Sep 23 12:25:32 2011 +0200
Make the regression SHA1 a URL in the bug edit form.
---
template/en/default/bug/edit.html.tmpl | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 2638d04..ced2646 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -907,9 +907,16 @@
[% FOREACH field = Bugzilla.active_custom_fields %]
<tr>
+ [% IF field.name == 'cf_regression_sha1sum' && bug.${field.name} %]
[% PROCESS bug/field.html.tmpl value=bug.${field.name}
+ desc_url="http://source.winehq.org/git/wine.git/commit/${bug.cf_regression_sha1sum}"
editable = bug.check_can_change_field(field.name, 0, 1)
value_span = 2 %]
+ [% ELSE %]
+ [% PROCESS bug/field.html.tmpl value=bug.${field.name}
+ editable = bug.check_can_change_field(field.name, 0, 1)
+ value_span = 2 %]
+ [% END %]
</tr>
[% END %]
[% END %]
More information about the wine-cvs
mailing list