From 80fc05854135e575e7811b55f521e8bb9855a2ee Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Fri, 26 Nov 2010 14:56:29 +0000 Subject: Add custom template with identity support --- template/en/default/list/list.html.tmpl | 291 ++++++++++++++++++++++++++++++++ 1 file changed, 291 insertions(+) create mode 100644 template/en/default/list/list.html.tmpl (limited to 'template/en/default/list/list.html.tmpl') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl new file mode 100644 index 0000000..941b34a --- /dev/null +++ b/template/en/default/list/list.html.tmpl @@ -0,0 +1,291 @@ +[%# 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 Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Myk Melez + #%] + +[%# INTERFACE: + # searchtype: string. Type of search - either "series", "saved" or undef. + # ... + # defaultsavename: string. The default name for saving the query. + #%] + +[%############################################################################%] +[%# Template Initialization #%] +[%############################################################################%] + +[% PROCESS "global/field-descs.none.tmpl" %] + +[% title = "$terms.Bug List" %] +[% IF searchname || defaultsavename %] + [% title = title _ ": " _ (searchname OR defaultsavename) FILTER html %] +[% END %] + +[% qorder = order FILTER url_quote IF order %] + + +[%############################################################################%] +[%# Page Header #%] +[%############################################################################%] + +[% PROCESS global/header.html.tmpl + title = title + style = style + atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" + javascript_urls = [ "js/util.js", "js/field.js", "js/yui/calendar.js" ] + style_urls = [ "skins/standard/buglist.css", "skins/standard/yui/calendar.css" ] + doc_section = "query.html#list" +%] + +
+ + [% currenttime FILTER time('%a %b %e %Y %T %Z') FILTER html %]
+
+ + [% IF debug %] +

[% query FILTER html %]

+ [% IF query_explain.defined %] +
[% query_explain FILTER html %]
+ [% END %] + [% END %] + + [% IF user.settings.display_quips.value == 'on' %] + [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %] + + [% quip FILTER html %] + + [% END %] + +
+ +[% IF toolong %] +

+ This list is too long for [% terms.Bugzilla %]'s little mind; the + Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %]. +

+[% END %] + +[% SET shown_types = [ + 'notequals', 'regexp', 'notregexp', 'lessthan', 'lessthaneq', + 'greaterthan', 'greaterthaneq', 'changedbefore', 'changedafter', + 'changedfrom', 'changedto', 'changedby', 'notsubstring', 'nowords', + 'nowordssubstr', 'notmatches', +] %] + + +
+ +[%############################################################################%] +[%# Preceding Status Line #%] +[%############################################################################%] + +[% IF bugs.size > 9 %] + + [% bugs.size %] [%+ terms.bugs %] found. + +[% END %] + +[%############################################################################%] +[%# Start of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] +
+[% END %] + +[%############################################################################%] +[%# Bug Table #%] +[%############################################################################%] + +[% FLUSH %] +[% PROCESS list/table.html.tmpl %] + +[%############################################################################%] +[%# Succeeding Status Line #%] +[%############################################################################%] + + + [% IF bugs.size == 0 %] + [% terms.zeroSearchResults %]. + [% ELSIF bugs.size == 1 %] + One [% terms.bug %] found. + [% ELSE %] + [% bugs.size %] [%+ terms.bugs %] found. + [% END %] + + +[% IF bugs.size == 0 %] + +[% END %] + +
+ +[%############################################################################%] +[%# Rest of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] + [% PROCESS "list/edit-multiple.html.tmpl" %] +
+
+[% END %] + +[%############################################################################%] +[%# Navigation Bar #%] +[%############################################################################%] + + + + [% IF bugs.size > 0 %] + + + + + + [% END %] + + + + [% IF searchtype == "saved" %] + + [% ELSE %] + + + + [% END %] + +
+
+ [% FOREACH id = buglist %] + + [% END %] + + +
+
+ + [% FOREACH id = buglist %] + + [% END %] + + +
+ + [% IF user.is_timetracker %] +
+ + +
+ [% END %] +
  + Edit Search + + | + + Forget Search '[% searchname FILTER html %]' +   +
+ as + + + + +
+
+ +[% IF one_product.defined && bugs.size %] +

+ [% PROCESS enter_bug_link %] +

+[% END %] + +[%############################################################################%] +[%# Page Footer #%] +[%############################################################################%] + +[% PROCESS global/footer.html.tmpl %] + +[% BLOCK edit_search_url %] + [% editqueryname = searchname OR defaultsavename OR '' %] + query.cgi?[% urlquerypart FILTER html %] + [%- IF editqueryname != '' %]&known_name= + [%- editqueryname FILTER url_quote %] + [% END %] +[% END %] + +[% BLOCK enter_bug_link %] + File + a new [% terms.bug %] + [% IF one_product.defined %] + in the "[% one_product.name FILTER html %]" product + [% END %] +[% END %] -- cgit v1.2.1 From ba702dcd7ac9b2e6c4d46ad21c7bfacfd6883189 Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Wed, 20 Feb 2013 16:07:49 +0000 Subject: Add 4.0 branch --- template/en/default/list/list.html.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'template/en/default/list/list.html.tmpl') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 941b34a..8d87b5c 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -46,8 +46,9 @@ title = title style = style atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" - javascript_urls = [ "js/util.js", "js/field.js", "js/yui/calendar.js" ] - style_urls = [ "skins/standard/buglist.css", "skins/standard/yui/calendar.css" ] + yui = [ 'autocomplete', 'calendar' ] + javascript_urls = [ "js/util.js", "js/field.js" ] + style_urls = [ "skins/standard/buglist.css" ] doc_section = "query.html#list" %] @@ -252,6 +253,7 @@ value="[% urlquerypart FILTER html %][% "&order=$qorder" FILTER html IF order %]"> + -- cgit v1.2.1 From 4302bafb0583830649ced57f931eddb7a2af4829 Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Wed, 20 Feb 2013 16:26:57 +0000 Subject: Start from scratch --- template/en/default/list/list.html.tmpl | 293 -------------------------------- 1 file changed, 293 deletions(-) delete mode 100644 template/en/default/list/list.html.tmpl (limited to 'template/en/default/list/list.html.tmpl') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl deleted file mode 100644 index 8d87b5c..0000000 --- a/template/en/default/list/list.html.tmpl +++ /dev/null @@ -1,293 +0,0 @@ -[%# 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 Bugzilla Bug Tracking System. - # - # The Initial Developer of the Original Code is Netscape Communications - # Corporation. Portions created by Netscape are - # Copyright (C) 1998 Netscape Communications Corporation. All - # Rights Reserved. - # - # Contributor(s): Myk Melez - #%] - -[%# INTERFACE: - # searchtype: string. Type of search - either "series", "saved" or undef. - # ... - # defaultsavename: string. The default name for saving the query. - #%] - -[%############################################################################%] -[%# Template Initialization #%] -[%############################################################################%] - -[% PROCESS "global/field-descs.none.tmpl" %] - -[% title = "$terms.Bug List" %] -[% IF searchname || defaultsavename %] - [% title = title _ ": " _ (searchname OR defaultsavename) FILTER html %] -[% END %] - -[% qorder = order FILTER url_quote IF order %] - - -[%############################################################################%] -[%# Page Header #%] -[%############################################################################%] - -[% PROCESS global/header.html.tmpl - title = title - style = style - atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" - yui = [ 'autocomplete', 'calendar' ] - javascript_urls = [ "js/util.js", "js/field.js" ] - style_urls = [ "skins/standard/buglist.css" ] - doc_section = "query.html#list" -%] - -
- - [% currenttime FILTER time('%a %b %e %Y %T %Z') FILTER html %]
-
- - [% IF debug %] -

[% query FILTER html %]

- [% IF query_explain.defined %] -
[% query_explain FILTER html %]
- [% END %] - [% END %] - - [% IF user.settings.display_quips.value == 'on' %] - [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %] - - [% quip FILTER html %] - - [% END %] - -
- -[% IF toolong %] -

- This list is too long for [% terms.Bugzilla %]'s little mind; the - Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %]. -

-[% END %] - -[% SET shown_types = [ - 'notequals', 'regexp', 'notregexp', 'lessthan', 'lessthaneq', - 'greaterthan', 'greaterthaneq', 'changedbefore', 'changedafter', - 'changedfrom', 'changedto', 'changedby', 'notsubstring', 'nowords', - 'nowordssubstr', 'notmatches', -] %] -
    -[% FOREACH desc_item = search_description %] -
  • - [% field_descs.${desc_item.field} FILTER html %]: - [% IF shown_types.contains(desc_item.type) || debug %] - ([% search_descs.${desc_item.type} FILTER html %]) - [% END %] - [% FOREACH val IN desc_item.value.split(',') %] - [%+ display_value(desc_item.field, val) FILTER html %][% ',' UNLESS loop.last %] - [% END %] - [% IF debug %] - ([% desc_item.term FILTER html %]) - [% END %] -
  • -[% END %] -
- -
- -[%############################################################################%] -[%# Preceding Status Line #%] -[%############################################################################%] - -[% IF bugs.size > 9 %] - - [% bugs.size %] [%+ terms.bugs %] found. - -[% END %] - -[%############################################################################%] -[%# Start of Change Form #%] -[%############################################################################%] - -[% IF dotweak %] -
-[% END %] - -[%############################################################################%] -[%# Bug Table #%] -[%############################################################################%] - -[% FLUSH %] -[% PROCESS list/table.html.tmpl %] - -[%############################################################################%] -[%# Succeeding Status Line #%] -[%############################################################################%] - - - [% IF bugs.size == 0 %] - [% terms.zeroSearchResults %]. - [% ELSIF bugs.size == 1 %] - One [% terms.bug %] found. - [% ELSE %] - [% bugs.size %] [%+ terms.bugs %] found. - [% END %] - - -[% IF bugs.size == 0 %] - -[% END %] - -
- -[%############################################################################%] -[%# Rest of Change Form #%] -[%############################################################################%] - -[% IF dotweak %] - [% PROCESS "list/edit-multiple.html.tmpl" %] -
-
-[% END %] - -[%############################################################################%] -[%# Navigation Bar #%] -[%############################################################################%] - - - - [% IF bugs.size > 0 %] - - - - - - [% END %] - - - - [% IF searchtype == "saved" %] - - [% ELSE %] - - - - [% END %] - -
-
- [% FOREACH id = buglist %] - - [% END %] - - -
-
- - [% FOREACH id = buglist %] - - [% END %] - - -
- - [% IF user.is_timetracker %] -
- - -
- [% END %] -
  - Edit Search - - | - - Forget Search '[% searchname FILTER html %]' -   -
- as - - - - - -
-
- -[% IF one_product.defined && bugs.size %] -

- [% PROCESS enter_bug_link %] -

-[% END %] - -[%############################################################################%] -[%# Page Footer #%] -[%############################################################################%] - -[% PROCESS global/footer.html.tmpl %] - -[% BLOCK edit_search_url %] - [% editqueryname = searchname OR defaultsavename OR '' %] - query.cgi?[% urlquerypart FILTER html %] - [%- IF editqueryname != '' %]&known_name= - [%- editqueryname FILTER url_quote %] - [% END %] -[% END %] - -[% BLOCK enter_bug_link %] - File - a new [% terms.bug %] - [% IF one_product.defined %] - in the "[% one_product.name FILTER html %]" product - [% END %] -[% END %] -- cgit v1.2.1 From 0ff0976e18505b8aacece1d5903e5ec9041b43ee Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Mon, 25 Feb 2013 12:55:12 +0000 Subject: Use guided form --- template/en/default/list/list.html.tmpl | 340 ++++++++++++++++++++++++++++++++ 1 file changed, 340 insertions(+) create mode 100644 template/en/default/list/list.html.tmpl (limited to 'template/en/default/list/list.html.tmpl') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl new file mode 100644 index 0000000..91b1da2 --- /dev/null +++ b/template/en/default/list/list.html.tmpl @@ -0,0 +1,340 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[%# INTERFACE: + # searchtype: string. Type of search - either "series", "saved" or undef. + # ... + # defaultsavename: string. The default name for saving the query. + #%] + +[%############################################################################%] +[%# Template Initialization #%] +[%############################################################################%] + +[% PROCESS "global/field-descs.none.tmpl" %] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +[% unfiltered_title = "$terms.Bug List" %] +[% IF searchname || defaultsavename %] + [% unfiltered_title = unfiltered_title _ ": " _ (searchname OR defaultsavename) %] +[% END %] +[% title = unfiltered_title FILTER html %] + +[% qorder = order FILTER uri IF order %] + +[% javascript = BLOCK %] + [% new_url = cgi.self_url %] + [% IF quicksearch %] + [% new_url = BLOCK ~%] + buglist.cgi?quicksearch=[% quicksearch FILTER uri %] + [%~ IF cgi.param('list_id') ~%] + &list_id=[% cgi.param('list_id') FILTER uri %] + [%~ END %] + [% END %] + [% ELSIF cgi.param('token') != '' %] + [% new_url = 'buglist.cgi?' + _ cgi.canonicalise_query('token', 'cmdtype', 'remtype') %] + [% END %] + + if (history && history.replaceState) { + history.replaceState(null, "[% unfiltered_title FILTER js %]", + "[% new_url FILTER js %]"); + document.title = "[% unfiltered_title FILTER js %]"; + } + [% javascript FILTER none %] +[% END %] + +[%############################################################################%] +[%# Page Header #%] +[%############################################################################%] + +[% PROCESS global/header.html.tmpl + title = title + style = style + atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom" + yui = [ 'autocomplete', 'calendar' ] + javascript_urls = [ "js/util.js", "js/field.js", "js/TUI.js" ] + style_urls = [ "skins/standard/buglist.css" ] + doc_section = "query.html#list" +%] + +
+ + [% currenttime FILTER time('%a %b %e %Y %T %Z') FILTER html %]
+
+ + [% IF debug %] +
+

Total execution time: [% query_time FILTER html %] seconds

+ [% FOREACH query = queries %] +

[% query.sql FILTER html %]

+

Execution time: [% query.time FILTER html %] seconds

+ [% IF query.explain %] +
[% query.explain FILTER html %]
+ [% END %] + [% END %] +
+ [% END %] + + [% IF user.settings.display_quips.value == 'on' %] + [% DEFAULT quip = "$terms.Bugzilla would like to put a random quip here, but no one has entered any." %] + + [% quip FILTER html %] + + [% END %] + +
+ +[% IF toolong %] +

+ This list is too long for [% terms.Bugzilla %]'s little mind; the + Next/Prev/First/Last buttons won't appear on individual [% terms.bugs %]. +

+[% END %] + +[% SET shown_types = [ + 'notequals', 'regexp', 'notregexp', 'lessthan', 'lessthaneq', + 'greaterthan', 'greaterthaneq', 'changedbefore', 'changedafter', + 'changedfrom', 'changedto', 'changedby', 'notsubstring', 'nowords', + 'nowordssubstr', 'notmatches', +] %] +Hide Search Description +[%# Show the link if the browser supports JS %] + + +
    +[% FOREACH desc_item = search_description %] +
  • + [% field_descs.${desc_item.field} FILTER html %]: + [% IF shown_types.contains(desc_item.type) || debug %] + ([% search_descs.${desc_item.type} FILTER html %]) + [% END %] + [% FOREACH val IN desc_item.value.split(',') %] + [%+ display_value(desc_item.field, val) FILTER html %][% ',' UNLESS loop.last %] + [% END %] + [% IF debug %] + ([% desc_item.term FILTER html %]) + [% END %] +
  • +[% END %] +
+ +
+ +[%############################################################################%] +[%# Preceding Status Line #%] +[%############################################################################%] + +[% IF bugs.size > 9 %] + [% PROCESS num_results %] +[% END %] + +[%############################################################################%] +[%# Start of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] +
+[% END %] + +[%############################################################################%] +[%# Bug Table #%] +[%############################################################################%] + +[% PROCESS list/table.html.tmpl %] + +[%############################################################################%] +[%# Succeeding Status Line #%] +[%############################################################################%] + +[% PROCESS num_results %] + +[% IF bugs.size == 0 %] + +[% END %] + +
+ +[%############################################################################%] +[%# Rest of Change Form #%] +[%############################################################################%] + +[% IF dotweak %] + [% PROCESS "list/edit-multiple.html.tmpl" %] +
+
+[% END %] + +[%############################################################################%] +[%# Navigation Bar #%] +[%############################################################################%] + + + + [% IF bugs.size > 0 %] + + + + + + [% END %] + + + + [% IF searchtype == "saved" %] + + [% ELSE %] + + + + [% END %] + +
+
+ [% id = buglist.join(",") %] + + + +
+
+ + [% FOREACH id = buglist %] + + [% END %] + + +
+ + [% IF user.is_timetracker %] +
+ + +
+ [% IF time_summary_limited %] + + Time Summary will only include the [% terms.bugs %] shown above. In order to + to see a time summary for all [% terms.bugs %] found by the search, you can + + Show all search results. + [% END %] + [% END %] +
  + Edit Search + + | + + Forget Search '[% searchname FILTER html %]' +   +
+ as + + + + + +
+
+ +[% IF one_product.defined && bugs.size %] +

+ [% PROCESS enter_bug_link %] +

+[% END %] + +[%############################################################################%] +[%# Page Footer #%] +[%############################################################################%] + +[% PROCESS global/footer.html.tmpl %] + +[%##########%] +[%# Blocks #%] +[%##########%] + +[% BLOCK edit_search_url %] + [% editqueryname = searchname OR defaultsavename OR '' %] + query.cgi?[% urlquerypart FILTER html %] + [%- IF editqueryname != '' %]&known_name= + [%- editqueryname FILTER uri %] + [% END %] +[% END %] + +[% BLOCK enter_bug_link %] + File + a new [% terms.bug %] + [% IF one_product.defined %] + in the "[% one_product.name FILTER html %]" product + [% END %] +[% END %] + +[% BLOCK num_results %] + + [% IF bugs.size == 0 %] + [% terms.zeroSearchResults %]. + [% ELSIF default_limited AND bugs.size >= Param('default_search_limit') %] + This result was limited to [% Param('default_search_limit') FILTER html %] + [%+ terms.bugs %]. + See + all search results for this query. + [% time_summary_limited = 1 %] + [% ELSIF bugs.size == 1 %] + One [% terms.bug %] found. + [% ELSE %] + [% bugs.size %] [%+ terms.bugs %] found. + [% END %] + +[% END %] -- cgit v1.2.1