]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 595380: Add a ?mtime string to all of the manually-inserted
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Sep 2010 03:21:20 +0000 (20:21 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 28 Sep 2010 03:21:20 +0000 (20:21 -0700)
<script src> and <link href> tags in Bugzilla
r=glob, a=mkanat

Bugzilla/Template.pm
template/en/default/attachment/diff-header.html.tmpl
template/en/default/bug/comments.html.tmpl
template/en/default/flag/list.html.tmpl
template/en/default/global/header.html.tmpl
template/en/default/list/list-simple.html.tmpl

index 946b0cd301167509a06048dce7b00b200b92ba6d..afd5734f8e18c587a926099dc21238fc3cb97b8a 100644 (file)
@@ -763,7 +763,7 @@ sub create {
 
             email => \&Bugzilla::Util::email_filter,
             
-            mtime_url => \&mtime_filter,
+            mtime => \&mtime_filter,
 
             # iCalendar contentline filter
             ics => [ sub {
index 30b8e98e9d56980d4a1b8f1f0f6cac7da009eec7..22e101c64975f15e5be8d993ad649ab3202d86a3 100644 (file)
@@ -57,8 +57,10 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %]
 [% ELSE %]
   <html>
   <head>
-  <link href="skins/standard/attachment.css" rel="stylesheet" type="text/css">
-  <script src="js/attachment.js" type="text/javascript"></script>
+  <link href="[% 'skins/standard/attachment.css' FILTER mtime %]" 
+        rel="stylesheet" type="text/css">
+  <script src="[% 'js/attachment.js' FILTER mtime %]" 
+          type="text/javascript"></script>
   </head>
   <body onload="[% onload FILTER html %]">
 [% END %]
index 9a7a050afedc78a7efe3303fbedfe5d7e2111ec9..4f7795b1253a4a76dfc1e7ec6decc56d4e66443e 100644 (file)
@@ -22,7 +22,7 @@
 
 [% PROCESS bug/time.html.tmpl %]
 
-<script src="js/comments.js" type="text/javascript">
+<script src="[% 'js/comments.js' FILTER mtime %]" type="text/javascript">
 </script>
 
 [% DEFAULT start_at = 0 mode = "show" %]
index 661f37dd18a8adb5f191144a871e7d77531ea536..24418e44a4e0bd38a5969695af581955d319218d 100644 (file)
@@ -30,7 +30,7 @@
 
 [% DEFAULT flag_table_id = "flags" %]
 
-<script type="text/javascript" src="js/flag.js"></script>
+<script src="[% 'js/flag.js' FILTER mtime %]" type="text/javascript"></script>
 
 <table id="[% flag_table_id FILTER html %]">
   [% UNLESS flag_no_header %]
index e6764ed2bf463e4afa4440b8d471e455ec2818c2..772e775e9fa536cb9c498c7a374098030b35abc0 100644 (file)
     [%# This allows people to switch back to the "Classic" skin if they
       # are in another skin. 
       #%]
-    <link href="[% 'skins/standard/global.css' FILTER mtime_url FILTER html %]"
+    <link href="[% 'skins/standard/global.css' FILTER mtime FILTER html %]"
           rel="alternate stylesheet" 
           title="[% setting_descs.standard FILTER html %]">
     [% FOREACH style_url = css_sets.standard %]
 [% END %]
 
 [% BLOCK format_js_link %]
-  <script type="text/javascript" src="[% javascript_url FILTER mtime_url FILTER html %]"></script>
+  <script type="text/javascript" src="[% javascript_url FILTER mtime FILTER html %]"></script>
 [% END %]
index 125a164f0d00d05ed8910f5d0289ed5e49521134..f4c3549ed083a9e7842135ad2349b7275b84305e 100644 (file)
@@ -39,7 +39,8 @@
   <head>
     <title>[% title FILTER html %]</title>
     <base href="[% urlbase FILTER html %]">
-    <link href="skins/standard/buglist.css" rel="stylesheet" type="text/css">
+    <link href="[% 'skins/standard/buglist.css' FILTER mtime %]" 
+          rel="stylesheet" type="text/css">
   </head>
 
   <body>