changeset 2850:867820342329 beta

fix for #569 add version to static files for rhodecode to overcome cache problems
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 19 Sep 2012 20:21:35 +0200
parents 2b672f04bfd9
children 3a7627e013c8
files rhodecode/templates/base/root.html
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/base/root.html	Wed Sep 19 00:38:21 2012 +0200
+++ b/rhodecode/templates/base/root.html	Wed Sep 19 20:21:35 2012 +0200
@@ -9,8 +9,8 @@
 
         ## CSS ###
         <%def name="css()">
-            <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen"/>
-            <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}"/>
+            <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css', ver=c.rhodecode_version)}" media="screen"/>
+            <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css', ver=c.rhodecode_version)}"/>
             ## EXTRA FOR CSS
             ${self.css_extra()}
         </%def>
@@ -50,13 +50,13 @@
             };
             var _TM = TRANSLATION_MAP;
             </script>
-            <script type="text/javascript" src="${h.url('/js/yui.2.9.js')}"></script>
+            <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.rhodecode_version)}"></script>
             <!--[if lt IE 9]>
                <script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script>
             <![endif]-->
-            <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
-            <script type="text/javascript" src="${h.url('/js/native.history.js')}"></script>
-            <script type="text/javascript" src="${h.url('/js/rhodecode.js')}"></script>
+            <script type="text/javascript" src="${h.url('/js/yui.flot.js', ver=c.rhodecode_version)}"></script>
+            <script type="text/javascript" src="${h.url('/js/native.history.js', ver=c.rhodecode_version)}"></script>
+            <script type="text/javascript" src="${h.url('/js/rhodecode.js', ver=c.rhodecode_version)}"></script>
            ## EXTRA FOR JS
            ${self.js_extra()}