Index: trunk/tools/bugzilla/bugzilla-4.0/template/en/custom/global/site-navigation.html.tmpl |
— | — | @@ -20,7 +20,6 @@ |
21 | 21 | #%] |
22 | 22 | |
23 | 23 | [%# INTERFACE: |
24 | | - # bug_list: list of integers. List of bug numbers of current query (if any). |
25 | 24 | # bug.bug_id: integer. Number of current bug (for navigation purposes) |
26 | 25 | #%] |
27 | 26 | |
— | — | @@ -32,38 +31,13 @@ |
33 | 32 | [% IF NOT (cgi.user_agent("MSIE [1-6]") OR cgi.user_agent("Mozilla/4")) %] |
34 | 33 | <link rel="Top" href="[% urlbase FILTER html %]"> |
35 | 34 | |
36 | | - [%# *** Bug List Navigation *** %] |
37 | | - [% IF bug_list && bug_list.size > 0 %] |
38 | | - <link rel="Up" href="buglist.cgi?regetlastlist=1"> |
39 | | - |
40 | | - <link rel="First" href="show_bug.cgi?id=[% bug_list.first %]"> |
41 | | - <link rel="Last" href="show_bug.cgi?id=[% bug_list.last %]"> |
42 | | - |
43 | | - [% IF bug && bug.bug_id %] |
44 | | - [% current_bug_idx = lsearch(bug_list, bug.bug_id) %] |
45 | | - [% IF current_bug_idx != -1 %] |
46 | | - |
47 | | - [% IF current_bug_idx > 0 %] |
48 | | - [% prev_bug = current_bug_idx - 1 %] |
49 | | - <link rel="Prev" href="show_bug.cgi?id=[% bug_list.$prev_bug %]"> |
50 | | - [% END %] |
51 | | - |
52 | | - [% IF current_bug_idx + 1 < bug_list.size %] |
53 | | - [% next_bug = current_bug_idx + 1 %] |
54 | | - <link rel="Next" href="show_bug.cgi?id=[% bug_list.$next_bug %]"> |
55 | | - [% END %] |
56 | | - |
57 | | - [% END %] |
58 | | - [% END %] |
59 | | - [% END %] |
60 | | - |
61 | 35 | [%# *** Attachment *** %] |
62 | 36 | [% IF attachment && attachment.bug_id %] |
63 | 37 | <link rel="Up" href="show_bug.cgi?id=[% attachment.bug_id FILTER none %]"> |
64 | 38 | [% END %] |
65 | 39 | |
66 | 40 | |
67 | | - [%# *** Dependencies, Votes, Activity, Print-version *** %] |
| 41 | + [%# *** Dependencies, Activity, Print-version *** %] |
68 | 42 | [% IF bug %] |
69 | 43 | <link rel="Show" title="Dependency Tree" |
70 | 44 | href="showdependencytree.cgi?id=[% bug.bug_id %]&hide_resolved=1"> |
— | — | @@ -86,12 +60,6 @@ |
87 | 61 | href="[% Param('mybugstemplate').replace('%userid%', user_login) %]"> |
88 | 62 | [% END %] |
89 | 63 | |
90 | | - [% FOREACH q = user.queries %] |
91 | | - <link rel="Saved Searches" |
92 | | - title="[% q.name FILTER html %]" |
93 | | - href="buglist.cgi?cmdtype=runnamed&namedcmd=[% q.name FILTER url_quote %]"> |
94 | | - [% END %] |
95 | | - |
96 | 64 | [% FOREACH q = user.queries_subscribed %] |
97 | 65 | <link rel="Saved Search" |
98 | 66 | title="[% q.name FILTER html %] ([% q.user.login FILTER html %])" |
Index: trunk/tools/bugzilla/bugzilla-4.0/template/en/custom/global/nav-links.html.tmpl |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | <li><a href="enter_bug.cgi">Enter a new [% terms.bug %]</a></li> |
6 | 6 | [% IF doc_section && Param('docs_urlbase') %] |
7 | 7 | <li> |
8 | | - <a href="[% docs_urlbase _ doc_section FILTER html %]" target="_blank">Help [% doc_section %]</a> |
| 8 | + <a href="[% docs_urlbase _ doc_section FILTER html %]" target="_blank">Help</a> |
9 | 9 | </li> |
10 | 10 | [% ELSIF Param('docs_urlbase') %] |
11 | 11 | <li> |
Index: trunk/tools/bugzilla/bugzilla-4.0/template/en/custom/global/header.html.tmpl |
— | — | @@ -44,6 +44,7 @@ |
45 | 45 | [% DEFAULT |
46 | 46 | subheader = "" |
47 | 47 | header_addl_info = "" |
| 48 | + bodyclasses = ['skin-vector'] |
48 | 49 | onload = "" |
49 | 50 | style_urls = [] |
50 | 51 | yui = [] |
— | — | @@ -64,6 +65,13 @@ |
65 | 66 | datatable => ['json', 'connection', 'datasource', 'element'], |
66 | 67 | } %] |
67 | 68 | |
| 69 | +[%# When using certain YUI modules, we need to process certain |
| 70 | + # extra JS templates. |
| 71 | + #%] |
| 72 | +[% SET yui_templates = { |
| 73 | + datatable => ['global/value-descs.js.tmpl'], |
| 74 | +} %] |
| 75 | + |
68 | 76 | [%# These are JS URLs that are *always* on the page and come before |
69 | 77 | # every other JS URL. |
70 | 78 | #%] |
— | — | @@ -104,8 +112,12 @@ |
105 | 113 | [%# This allows people to switch back to the "Classic" skin if they |
106 | 114 | # are in another skin. |
107 | 115 | #%] |
108 | | - <link rel="stylesheet" href="skins/custom/vector.css" media="screen" /> |
109 | | - [% PROCESS "global/site-navigation.html.tmpl" %] |
| 116 | + [% IF user.settings.skin.value=='Wikimedia' %] |
| 117 | + <link rel="stylesheet" href="skins/contrib/Wikimedia/vector.css" media="screen" /> |
| 118 | + [% END %] |
| 119 | + <link href="[% 'skins/standard/global.css' FILTER mtime FILTER html %]" |
| 120 | + rel="alternate stylesheet" |
| 121 | + title="[% setting_descs.standard FILTER html %]"> |
110 | 122 | [% FOREACH style_url = css_sets.standard %] |
111 | 123 | [% PROCESS format_css_link css_set_name = 'standard' %] |
112 | 124 | [% END %] |
— | — | @@ -153,7 +165,12 @@ |
154 | 166 | <script type="text/javascript"> |
155 | 167 | <!-- |
156 | 168 | YAHOO.namespace('bugzilla'); |
157 | | - if (YAHOO.env.ua.gecko) { |
| 169 | + YAHOO.util.Event.addListener = function (el, sType, fn, obj, overrideContext) { |
| 170 | + if ( ("onpagehide" in window || YAHOO.env.ua.gecko) && sType === "unload") { sType = "pagehide"; }; |
| 171 | + var capture = ((sType == "focusin" || sType == "focusout") && !YAHOO.env.ua.ie) ? true : false; |
| 172 | + return this._addListener(el, this._getType(sType), fn, obj, overrideContext, capture); |
| 173 | + }; |
| 174 | + if ( "onpagehide" in window || YAHOO.env.ua.gecko) { |
158 | 175 | YAHOO.util.Event._simpleRemove(window, "unload", |
159 | 176 | YAHOO.util.Event._unload); |
160 | 177 | } |
— | — | @@ -194,6 +211,12 @@ |
195 | 212 | 'You must select a Version for this [% terms.bug %].' |
196 | 213 | } |
197 | 214 | }; |
| 215 | + |
| 216 | + [% FOREACH yui_name = yui %] |
| 217 | + [% FOREACH yui_template = yui_templates.$yui_name %] |
| 218 | + [% PROCESS $yui_template %] |
| 219 | + [% END %] |
| 220 | + [% END %] |
198 | 221 | [% IF javascript %] |
199 | 222 | [% javascript %] |
200 | 223 | [% END %] |
— | — | @@ -222,23 +245,82 @@ |
223 | 246 | # but set the onload attribute in the DEFAULT directive above. |
224 | 247 | #%] |
225 | 248 | |
226 | | - |
227 | 249 | <body onload="[% onload %]" |
228 | | - class="skin-vector" dir="ltr" > |
| 250 | + class="[% urlbase.replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %] |
| 251 | + [% FOREACH class = bodyclasses %] |
| 252 | + [% ' ' %][% class FILTER css_class_quote %] |
| 253 | + [% END %] yui-skin-sam"> |
229 | 254 | |
230 | | - <div id="page-base" class="noprint"></div> |
| 255 | +[%# Migration note: the following file corresponds to the old Param |
| 256 | + # 'bannerhtml' |
| 257 | + #%] |
| 258 | + |
| 259 | +<!-- If custom Wikimedia skin --> |
| 260 | +[% IF user.settings.skin.value=='Wikimedia' %] |
| 261 | + <div id="page-base" class="noprint"></div> |
231 | 262 | <div id="head-base" class="noprint"></div> |
232 | 263 | <!-- content --> |
233 | 264 | <div id="content-container" > |
234 | 265 | <a id="top"></a> |
235 | 266 | <!-- bodyContent --> |
236 | 267 | <div id="bodyContent"> |
| 268 | + [% IF header_addl_info %] |
| 269 | + <p class="header_addl_info">[% header_addl_info %]</p> |
| 270 | + [% END %] |
237 | 271 | |
238 | 272 | |
| 273 | +[% ELSE %] |
| 274 | + |
| 275 | +<div id="header"> |
| 276 | + |
| 277 | +[% INCLUDE global/banner.html.tmpl %] |
| 278 | + |
| 279 | +<table border="0" cellspacing="0" cellpadding="0" id="titles"> |
| 280 | +<tr> |
| 281 | + <td id="title"> |
| 282 | + <p>[% terms.Bugzilla %] |
| 283 | + [% " – $header" IF header %]</p> |
| 284 | + </td> |
| 285 | + |
| 286 | + [% IF subheader %] |
| 287 | + <td id="subtitle"> |
| 288 | + <p class="subheader">[% subheader %]</p> |
| 289 | + </td> |
| 290 | + [% END %] |
| 291 | + |
239 | 292 | [% IF header_addl_info %] |
| 293 | + <td id="information"> |
240 | 294 | <p class="header_addl_info">[% header_addl_info %]</p> |
| 295 | + </td> |
241 | 296 | [% END %] |
| 297 | +</tr> |
| 298 | +</table> |
242 | 299 | |
| 300 | +<table id="lang_links_container" cellpadding="0" cellspacing="0" |
| 301 | + class="bz_default_hidden"><tr><td> |
| 302 | +[% IF Bugzilla.languages.size > 1 %] |
| 303 | + <ul class="links"> |
| 304 | + [% FOREACH lang = Bugzilla.languages.sort %] |
| 305 | + <li>[% IF NOT loop.first %]<span class="separator"> | </span>[% END %] |
| 306 | + [% IF lang == current_language %] |
| 307 | + <span class="lang_current">[% lang FILTER html FILTER upper %]</span> |
| 308 | + [% ELSE %] |
| 309 | + <a href="#" onclick="set_language('[% lang FILTER none %]');"> |
| 310 | + [%- lang FILTER html FILTER upper %]</a> |
| 311 | + [% END %] |
| 312 | + </li> |
| 313 | + [% END %] |
| 314 | + </ul> |
| 315 | +[% END %] |
| 316 | +</td></tr></table> |
| 317 | + |
| 318 | +[% PROCESS "global/common-links.html.tmpl" qs_suffix = "_top" %] |
| 319 | +</div> [%# header %] |
| 320 | + |
| 321 | +<div id="bugzilla-body"> |
| 322 | + |
| 323 | +[% END %] <!-- If custom Wikimedia skin --> |
| 324 | + |
243 | 325 | [% IF Param('announcehtml') %] |
244 | 326 | [% Param('announcehtml') FILTER none %] |
245 | 327 | [% END %] |
Index: trunk/tools/bugzilla/bugzilla-4.0/template/en/custom/global/footer.html.tmpl |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | <!-- /bodyContent --> |
6 | 6 | </div> |
7 | 7 | <!-- /content --> |
| 8 | + [% IF user.settings.skin.value=='Wikimedia' %] |
8 | 9 | <!-- header --> |
9 | 10 | <div id="head" class="noprint"> |
10 | 11 | <!-- /search --> |
— | — | @@ -66,7 +67,7 @@ |
67 | 68 | <!-- panel --> |
68 | 69 | <div id="panel" class="noprint"> |
69 | 70 | <!-- logo --> |
70 | | - <div id="p-logo"><a style="background-image: url(skins/custom/images/bugzilla-logo.png);" href="./" title="Visit the main page"></a></div> |
| 71 | + <div id="p-logo"><a style="background-image: url(skins/contrib/Wikimedia/images/bugzilla-logo.png);" href="./" title="Visit the main page"></a></div> |
71 | 72 | <!-- /logo --> |
72 | 73 | <!-- navigation --> |
73 | 74 | <div class="portal"> |
— | — | @@ -104,6 +105,7 @@ |
105 | 106 | <!-- /toolbox --> |
106 | 107 | </div> |
107 | 108 | <!-- /panel --> |
| 109 | + [% END %] |
108 | 110 | |
109 | 111 | <!-- footer --> |
110 | 112 | <div id="footer" > |
Index: trunk/tools/bugzilla/bugzilla-4.0/template/en/custom/index.html.tmpl |
— | — | @@ -37,9 +37,11 @@ |
38 | 38 | <link rel="stylesheet" href="skins/custom/index.css" media="screen" /> |
39 | 39 | |
40 | 40 | <div id="page-index"> |
| 41 | + [% IF user.settings.skin.value=='Wikimedia' %] |
41 | 42 | <div class="intro"> |
42 | | - <img src="skins/custom/bugzilla-ayb.png" width="308" height="236" border="2" alt="bugzzz"/> |
| 43 | + <img src="skins/contrib/Wikimedia/bugzilla-ayb.png" width="308" height="236" border="2" alt="bugzzz"/> |
43 | 44 | </div> |
| 45 | + [% END %] |
44 | 46 | |
45 | 47 | <p>This is the new bug tracker for <a |
46 | 48 | href="http://www.mediawiki.org/">MediaWiki</a> and its extensions |