From 6d3857e31ab6d39625c2b5703a876d0b13930c18 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 14 May 2014 13:35:25 +0800 Subject: Bug 977969: concatenate and slightly minify css files r=gerv, a=glob --- template/en/default/global/header.html.tmpl | 40 +++++------------------------ 1 file changed, 6 insertions(+), 34 deletions(-) (limited to 'template/en/default') diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 427934264..e6bd8f45d 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -90,35 +90,20 @@ [% PROCESS 'global/setting-descs.none.tmpl' %] [% SET yui = yui_resolve_deps(yui, yui_deps) %] - [% SET css_sets = css_files(style_urls, yui, yui_css) %] - - [%# CSS cascade, parts 1 & 2: YUI & Standard Bugzilla stylesheet set (persistent). - # Always present. %] - - [% FOREACH style_url = css_sets.standard %] - [% PROCESS format_css_link css_set_name = 'standard' %] - [% END %] - [%# CSS cascade, part 3: Third-party stylesheet set, per user prefs. %] - [% FOREACH style_url = css_sets.skin %] - [% PROCESS format_css_link css_set_name = user.settings.skin.value %] - [% END %] + [% SET css_sets = css_files(style_urls, yui, yui_css) %] + - [%# CSS cascade, part 4: page-specific styles. %] [% IF style %] [% END %] - [%# CSS cascade, part 5: Custom Bugzilla stylesheet set (persistent). - # Always present. Site administrators may override all other style - # definitions, including skins, using custom stylesheets. - #%] - [% FOREACH style_url = css_sets.custom %] - [% PROCESS format_css_link css_set_name = 'standard' %] + [% IF css_sets.unified_custom %] + [% END %] [%# YUI Scripts %] @@ -265,19 +250,6 @@
[% message %]
[% END %] -[% BLOCK format_css_link %] - [% IF css_set_name == 'standard' %] - [% SET css_title_link = '' %] - [% ELSE %] - [% css_title_link = BLOCK ~%] - title="[% setting_descs.${user.settings.skin.value} || user.settings.skin.value FILTER html %]" - [% END %] - [% END %] - - -[% END %] - [% BLOCK format_js_link %] [% END %] -- cgit v1.2.3-24-g4f1b