From 1f30fac936a3b0905e736dd86e559e33caf036ac Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 10 Aug 2011 18:26:03 -0400 Subject: Initial checkin of bmo/4.0 extensions. Still todo: port changes to core Bugzilla code --- .../hook/bug/comments-comment_banner.html.tmpl | 7 ++ .../default/hook/bug/create/create-form.html.tmpl | 18 ++++ .../hook/bug/create/create-guided-form.html.tmpl | 22 ++++ .../hook/bug/edit-after_custom_fields.html.tmpl | 82 +++++++++++++++ .../en/default/hook/bug/field-help-end.none.tmpl | 113 +++++++++++++++++++++ .../en/default/hook/bug/show-header-end.html.tmpl | 27 +++++ 6 files changed, 269 insertions(+) create mode 100644 extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug/create/create-guided-form.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug/field-help-end.none.tmpl create mode 100644 extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl (limited to 'extensions/BMO/template/en/default/hook/bug') diff --git a/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl b/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl new file mode 100644 index 000000000..fd5477c9f --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/comments-comment_banner.html.tmpl @@ -0,0 +1,7 @@ +[%# *** Disclaimer for Legal bugs *** %] +[% IF bug.product == "Legal" %] + +[% END %] diff --git a/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl b/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl new file mode 100644 index 000000000..1b1f1d67d --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/create/create-form.html.tmpl @@ -0,0 +1,18 @@ + + Security: + + [% sec_group = sec_groups.${product.name} || sec_groups._default %] + + + +

+ + diff --git a/extensions/BMO/template/en/default/hook/bug/create/create-guided-form.html.tmpl b/extensions/BMO/template/en/default/hook/bug/create/create-guided-form.html.tmpl new file mode 100644 index 000000000..5b58a9637 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/create/create-guided-form.html.tmpl @@ -0,0 +1,22 @@ + + + Security + + +

+ [% sec_group = sec_groups.${product.name} || sec_groups._default %] + + + +

+ + diff --git a/extensions/BMO/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl b/extensions/BMO/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl new file mode 100644 index 000000000..ba6eeb78c --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/edit-after_custom_fields.html.tmpl @@ -0,0 +1,82 @@ +[%# ***** BEGIN LICENSE BLOCK ***** + # Version: MPL 1.1 + # + # The contents of this file are subject to the Mozilla Public License Version + # 1.1 (the "License"); you may not use this file except in compliance with + # the License. You may obtain a copy of the License at + # http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS IS" basis, + # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + # for the specific language governing rights and limitations under the + # License. + # + # The Original Code is the BMO Bugzilla Extension; + # + # The Initial Developer of the Original Code is the Mozilla Foundation. + # Portions created by the Initial Developer are Copyright (C) 2011 the + # Initial Developer. All Rights Reserved. + # + # Contributor(s): + # Byron Jones + # + # ***** END LICENSE BLOCK ***** + #%] + +[% show_custom_flags = 0 %] +[% FOREACH field = Bugzilla.active_custom_fields %] + [% NEXT IF NOT user.id AND bug.${field.name} == "---" %] + [% NEXT IF cf_hidden_in_product(field.name, bug.product, bug.component, 2) %] + [% show_custom_flags = 1 %] + [% LAST %] +[% END %] + +[% IF show_custom_flags %] + [% custom_flags = [] %] + + + + [% IF user.id %] + + (edit) + + [% END %] + + + + + + [% FOREACH field = Bugzilla.active_custom_fields %] + [% NEXT IF NOT user.id AND field.value == "---" %] + [% NEXT IF cf_hidden_in_product(field.name, bug.product, bug.component, 2) %] + [% custom_flags.push(field.name) %] + + + + + + [% END %] +
  + + + [% PROCESS bug/field.html.tmpl value = bug.${field.name} + editable = user.id + no_tds = 1 %] + [% IF user.id %] + + [% bug.${field.name} FILTER html %] + + [% END %] +
+ + + +[% END %] diff --git a/extensions/BMO/template/en/default/hook/bug/field-help-end.none.tmpl b/extensions/BMO/template/en/default/hook/bug/field-help-end.none.tmpl new file mode 100644 index 000000000..d95d1b606 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/field-help-end.none.tmpl @@ -0,0 +1,113 @@ +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the BMO Extension + # + # The Initial Developer of the Original Code is the Mozilla Foundation + # Portions created by the Initial Developers are Copyright (C) 2011 the + # Initial Developer. All Rights Reserved. + # + # Contributor(s): + # Dave Lawrence + #%] + +[% IF fields_page %] + [% filtered_severity_blocker = display_value("bug_severity", "blocker") FILTER html %] + [% filtered_severity_critical = display_value("bug_severity", "critical") FILTER html %] + [% filtered_severity_major = display_value("bug_severity", "major") FILTER html %] + [% filtered_severity_normal = display_value("bug_severity", "normal") FILTER html %] + [% filtered_severity_minor = display_value("bug_severity", "minor") FILTER html %] + [% filtered_severity_trivial = display_value("bug_severity", "trivial") FILTER html %] + [% filtered_severity_enhancement = display_value("bug_severity", "enhancement") FILTER html %] + + [% filtered_platform_all = display_value("rep_platform", "All") FILTER html %] + [% filtered_platform_x86_64 = display_value("rep_platform", "x86_64") FILTER html %] + [% filtered_platform_arm = display_value("rep_platform", "ARM") FILTER html %] + + [% filtered_opsys_all = display_value("op_sys", "All") FILTER html %] + [% filtered_opsys_windows = display_value("op_sys", "Windows 7") FILTER html %] + [% filtered_opsys_mac = display_value("op_sys", "Mac OS X") FILTER html %] + [% filtered_opsys_linux = display_value("op_sys", "Linux") FILTER html %] + + [% filtered_status_new = display_value("bug_status", "NEW") FILTER html %] + + [% + help_html.priority = + "This field describes the importance and order in which $terms.abug + should be fixed compared to other ${terms.bugs}. This field is utilized + by the programmers/engineers to prioritize their work to be done." + + help_html.bug_severity = + "This field describes the impact of ${terms.abug}. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
$filtered_severity_blockerBlocks development and/or testing work
$filtered_severity_criticalcrashes, loss of data, severe memory leak
$filtered_severity_majormajor loss of function
$filtered_severity_normalregular issue, some loss of functionality under specific circumstances
$filtered_severity_minorminor loss of function, or other problem where easy + workaround is present
$filtered_severity_trivialcosmetic problem like misspelled words or misaligned + text
$filtered_severity_enhancementRequest for enhancement
" + + help_html.rep_platform = + "This is the hardware platform against which the $terms.bug was reported. + Legal platforms include: +
    +
  • $filtered_platform_all (happens on all platforms; cross-platform ${terms.bug})
  • +
  • $filtered_platform_x86_64
  • +
  • $filtered_platform_arm
  • +
+ Note: When searching, selecting the option + $filtered_platform_all does not + select $terms.bugs assigned against any platform. It merely selects + $terms.bugs that are marked as occurring on all platforms, i.e. are + designated $filtered_platform_all.", + + help_html.op_sys = + "This is the operating system against which the $terms.bug was + reported. Legal operating systems include: +
    +
  • $filtered_opsys_all (happens on all operating systems; cross-platform ${terms.bug})
  • +
  • $filtered_opsys_windows
  • +
  • $filtered_opsys_mac
  • +
  • $filtered_opsys_linux
  • +
+ Sometimes the operating system implies the platform, but not + always. For example, Linux can run on x86_64, ARM, and others.", + + help_html.assigned_to = + "This is the person in charge of resolving the ${terms.bug}. Every time + this field changes, the status changes to + $filtered_status_new to make it + easy to see which new $terms.bugs have appeared on a person's list.

", + %] +[% END %] diff --git a/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl b/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl new file mode 100644 index 000000000..55e428e01 --- /dev/null +++ b/extensions/BMO/template/en/default/hook/bug/show-header-end.html.tmpl @@ -0,0 +1,27 @@ +[%# ***** BEGIN LICENSE BLOCK ***** + # Version: MPL 1.1 + # + # The contents of this file are subject to the Mozilla Public License Version + # 1.1 (the "License"); you may not use this file except in compliance with + # the License. You may obtain a copy of the License at + # http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS IS" basis, + # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + # for the specific language governing rights and limitations under the + # License. + # + # The Original Code is the BMO Bugzilla Extension; + # + # The Initial Developer of the Original Code is the Mozilla Foundation. + # Portions created by the Initial Developer are Copyright (C) 2011 the + # Initial Developer. All Rights Reserved. + # + # Contributor(s): + # Byron Jones + # + # ***** END LICENSE BLOCK ***** + #%] + +[% style_urls.push('extensions/BMO/web/styles/edit_bug.css') %] +[% javascript_urls.push('extensions/BMO/web/js/edit_bug.js') %] -- cgit v1.2.3-24-g4f1b