summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-07-03 21:38:38 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-07 00:19:20 +0200
commit6f68125893590fc9de60185f5535bae12adbcb54 (patch)
tree6d7b2b7885a750826655cf3896d7fd72791623b3 /template
parente3e2c7c0273499f832ee692ca63620cd8aa8bda1 (diff)
downloadbugzilla-6f68125893590fc9de60185f5535bae12adbcb54.tar.gz
bugzilla-6f68125893590fc9de60185f5535bae12adbcb54.tar.xz
Bug 1377232 - Revert code from bug 1361890
Diffstat (limited to 'template')
-rw-r--r--template/en/default/attachment/diff-header.html.tmpl4
-rw-r--r--template/en/default/bug/comments.html.tmpl3
-rw-r--r--template/en/default/flag/list.html.tmpl2
-rw-r--r--template/en/default/global/header.html.tmpl64
-rw-r--r--template/en/default/list/list-simple.html.tmpl2
-rw-r--r--template/en/default/reports/duplicates-simple.html.tmpl4
-rw-r--r--template/en/default/rest.html.tmpl2
-rw-r--r--template/en/default/search/boolean-charts.html.tmpl4
8 files changed, 42 insertions, 43 deletions
diff --git a/template/en/default/attachment/diff-header.html.tmpl b/template/en/default/attachment/diff-header.html.tmpl
index 3e56ab2f4..b407b4f3a 100644
--- a/template/en/default/attachment/diff-header.html.tmpl
+++ b/template/en/default/attachment/diff-header.html.tmpl
@@ -57,9 +57,9 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %]
[% ELSE %]
<html>
<head>
- <link href="[% asset_file('skins/standard/attachment.css') FILTER html %]"
+ <link href="[% 'skins/standard/attachment.css' FILTER mtime %]"
rel="stylesheet" type="text/css">
- <script src="[% asset_file('js/attachment.js') FILTER html %]"
+ <script src="[% 'js/attachment.js' FILTER mtime %]"
type="text/javascript"></script>
</head>
<body onload="[% onload FILTER html %]">
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index eb7d240b6..2f8658c9c 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -22,7 +22,8 @@
[% PROCESS bug/time.html.tmpl %]
-<script src="[% asset_file('js/comments.js') FILTER html %]" type="text/javascript"></script>
+<script src="[% 'js/comments.js' FILTER mtime %]" type="text/javascript">
+</script>
<script type="text/javascript">
<!--
diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl
index 09113bbf3..55184c47b 100644
--- a/template/en/default/flag/list.html.tmpl
+++ b/template/en/default/flag/list.html.tmpl
@@ -30,7 +30,7 @@
[% DEFAULT flag_table_id = "flags" %]
-<script src="[% asset_file('js/flag.js') FILTER html %]" type="text/javascript"></script>
+<script src="[% 'js/flag.js' FILTER mtime %]" type="text/javascript"></script>
<table id="[% flag_table_id FILTER html %]">
[% UNLESS flag_no_header %]
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index 57088ac2a..107c69069 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -52,6 +52,7 @@
style_urls = []
no_yui = 0
jquery = []
+ jquery_css = []
generate_api_token = 0
%]
@@ -72,7 +73,7 @@
"js/jquery/ui/jquery-ui-structure-min.css",
"js/jquery/ui/jquery-ui-theme-min.css",
] %]
-[% CALL style_urls.import(jq_css_urls) %]
+[% style_urls.import(jquery_css, jq_css_urls) FILTER null %]
[%# Add our required jQuery plugins %]
[% jquery.push("cookie", "devbridgeAutocomplete") %]
@@ -136,25 +137,30 @@
[% PROCESS 'global/setting-descs.none.tmpl' %]
[% SET css_sets = css_files(style_urls.unique, no_yui) %]
- [% SET css_standard_and_skin = css_sets.standard %]
- [% CALL css_standard_and_skin.import(css_sets.skin) %]
- [% IF style %]
- [% FOREACH asset_url = asset_files(css_standard_and_skin) %]
+ [% IF constants.CONCATENATE_ASSETS %]
+ [% PROCESS format_css_link asset_url = css_sets.unified_standard_skin %]
+ [% ELSE %]
+ [% FOREACH asset_url = css_sets.standard %]
+ [% PROCESS format_css_link %]
+ [% END %]
+ [% FOREACH asset_url = css_sets.skin %]
[% PROCESS format_css_link %]
[% END %]
+ [% END %]
+ [% IF style %]
<style type="text/css">
[% style %]
</style>
+ [% END %]
- [% FOREACH asset_url = asset_files(css_sets.custom) %]
- [% PROCESS format_css_link %]
- [% END %]
- [% ELSE %]
- [% SET css_all = [] %]
- [% CALL css_all.import(css_standard_and_skin, css_sets.custom) %]
- [% FOREACH asset_url = asset_files(css_all) %]
- [% PROCESS format_css_link %]
+ [% IF css_sets.unified_custom %]
+ [% IF constants.CONCATENATE_ASSETS %]
+ [% PROCESS format_css_link asset_url = css_sets.unified_custom %]
+ [% ELSE %]
+ [% FOREACH asset_url = css_sets.custom %]
+ [% PROCESS format_css_link %]
+ [% END %]
[% END %]
[% END %]
@@ -164,6 +170,10 @@
[% END %]
[% starting_js_urls.push('js/global.js') %]
+ [% FOREACH asset_url = concatenate_js(starting_js_urls) %]
+ [% PROCESS format_js_link %]
+ [% END %]
+
[% inline_javascript = BLOCK %]
[% IF NOT no_yui %]
YAHOO.namespace('bugzilla');
@@ -178,26 +188,14 @@
[% javascript %]
[% END %]
[% END %]
-
[% IF inline_javascript.search("\\S") %]
- [% FOREACH asset_url = asset_files(starting_js_urls) %]
- [% PROCESS format_js_link %]
- [% END %]
-
<script [% script_nonce FILTER none %]>
[% inline_javascript FILTER none %]
</script>
+ [% END %]
- [% FOREACH asset_url = asset_files(javascript_urls) %]
- [% PROCESS format_js_link %]
- [% END %]
- [% ELSE %]
- [% SET js_all = [] %]
- [% CALL js_all.import(starting_js_urls) %]
- [% CALL js_all.import(javascript_urls) %]
- [% FOREACH asset_url = asset_files(js_all) %]
- [% PROCESS format_js_link %]
- [% END %]
+ [% FOREACH asset_url = concatenate_js(javascript_urls) %]
+ [% PROCESS format_js_link %]
[% END %]
[%# this puts the live bookmark up on firefox for the Atom feed %]
@@ -312,7 +310,7 @@
</td>
<td id="moz_tab">
<a href="https://www.mozilla.org/" title="Mozilla - Home of the Mozilla Project">
- <img src="[% asset_file('images/tabzilla.png') FILTER html %]" border="0" height="42" width="154"></a>
+ <img src="images/tabzilla.png" border="0" height="42" width="154"></a>
</td>
</tr>
</table>
@@ -398,9 +396,9 @@
[% END %]
[% BLOCK format_css_link %]
- <link data-file="[% asset_url FILTER html %]" href="[% asset_file(asset_url) FILTER html %]" rel="stylesheet" type="text/css">
-[%+ END %]
+ <link href="[% asset_url FILTER html %]" rel="stylesheet" type="text/css">
+[% END %]
[% BLOCK format_js_link %]
- <script [% script_nonce FILTER none %] data-file="[% asset_url FILTER html %]" type="text/javascript" src="[% asset_file(asset_url) FILTER html %]"></script>
-[%+ END %]
+ <script [% script_nonce FILTER none %] type="text/javascript" src="[% asset_url FILTER mtime FILTER html %]"></script>
+[% END %]
diff --git a/template/en/default/list/list-simple.html.tmpl b/template/en/default/list/list-simple.html.tmpl
index 4c186e207..f4c3549ed 100644
--- a/template/en/default/list/list-simple.html.tmpl
+++ b/template/en/default/list/list-simple.html.tmpl
@@ -39,7 +39,7 @@
<head>
<title>[% title FILTER html %]</title>
<base href="[% urlbase FILTER html %]">
- <link href="[% asset_file('skins/standard/buglist.css') FILTER html %]"
+ <link href="[% 'skins/standard/buglist.css' FILTER mtime %]"
rel="stylesheet" type="text/css">
</head>
diff --git a/template/en/default/reports/duplicates-simple.html.tmpl b/template/en/default/reports/duplicates-simple.html.tmpl
index 88f14b910..a08522790 100644
--- a/template/en/default/reports/duplicates-simple.html.tmpl
+++ b/template/en/default/reports/duplicates-simple.html.tmpl
@@ -39,9 +39,9 @@
<head>
<title>[% title FILTER html %]</title>
- <link href="[% asset_file('skins/standard/global.css') FILTER html %]"
+ <link href="[% 'skins/standard/global.css' FILTER mtime %]"
rel="stylesheet" type="text/css">
- <link href="[% asset_file('skins/standard/duplicates.css') FILTER html %]"
+ <link href="[% 'skins/standard/duplicates.css' FILTER mtime %]"
rel="stylesheet" type="text/css">
</head>
diff --git a/template/en/default/rest.html.tmpl b/template/en/default/rest.html.tmpl
index bc9c5b6fd..0b8321dd1 100644
--- a/template/en/default/rest.html.tmpl
+++ b/template/en/default/rest.html.tmpl
@@ -10,7 +10,7 @@
<html>
<head>
<title>Bugzilla::REST::API</title>
- <link href="[% urlbase FILTER none %][% asset_file('skins/standard/global.css') FILTER html %]"
+ <link href="[% urlbase FILTER none %][% 'skins/standard/global.css' FILTER mtime %]"
rel="stylesheet" type="text/css">
</head>
<body>
diff --git a/template/en/default/search/boolean-charts.html.tmpl b/template/en/default/search/boolean-charts.html.tmpl
index e3b149969..3fb1f8eae 100644
--- a/template/en/default/search/boolean-charts.html.tmpl
+++ b/template/en/default/search/boolean-charts.html.tmpl
@@ -76,8 +76,8 @@
TUI_alternates['custom_search_advanced'] = "Show Advanced Features";
TUI_hide_default('custom_search_advanced');
</script>
- <script type="text/javascript" src="[% asset_file('js/custom-search.js') FILTER html %]"></script>
- <script type="text/javascript" src="[% asset_file('js/history.js/native.history.js') FILTER html %]"></script>
+ <script type="text/javascript" src="[% 'js/custom-search.js' FILTER mtime %]"></script>
+ <script type="text/javascript" src="[% 'js/history.js/native.history.js' FILTER mtime %]"></script>
<script type="text/javascript">
redirect_html4_browsers();
[%# These are alternative labels for the AND and OR options in and_all_select %]