changeset 1240:2c558e2264b4 beta

fixes issue #159, thanks to Thomas Waldmann
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 10 Apr 2011 00:01:04 +0200
parents abbfd7c03e59
children ed5270522724
files rhodecode/templates/summary/summary.html
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/summary/summary.html	Sat Apr 09 18:48:12 2011 +0200
+++ b/rhodecode/templates/summary/summary.html	Sun Apr 10 00:01:04 2011 +0200
@@ -284,8 +284,9 @@
                  
                  for(k in tmpl_links){
                 	 var s = YUD.get(k+'_link')
-                	 title_tmpl = "${_('Download %s as %s') % ('__CS_NAME__',archive['type'])}";
-                	 s.title = title_tmpl.replace('__CS_NAME__',new_cs.text)
+                	 title_tmpl = "${_('Download %s as %s') % ('__CS_NAME__','__CS_EXT__')}";
+                	 s.title = title_tmpl.replace('__CS_NAME__',new_cs.text);
+                	 s.title = s.title.replace('__CS_EXT__',k);
                 	 s.innerHTML = tmpl_links[k].replace('__CS__',new_cs.value);
                  }