diff --git a/rhodecode/templates/summary/components.mako b/rhodecode/templates/summary/components.mako --- a/rhodecode/templates/summary/components.mako +++ b/rhodecode/templates/summary/components.mako @@ -185,8 +185,10 @@ % endif % else: - - tip.zip + + + + ${c.rhodecode_db_repo.landing_ref_name}.zip ## replaced by some JS on select diff --git a/rhodecode/templates/summary/summary.mako b/rhodecode/templates/summary/summary.mako --- a/rhodecode/templates/summary/summary.mako +++ b/rhodecode/templates/summary/summary.mako @@ -76,8 +76,8 @@ var initialCommitData = { id: null, - text: 'tip', - type: 'tag', + text: '${c.rhodecode_db_repo.landing_ref_name}', + type: '${c.rhodecode_db_repo.landing_ref_type}', raw_id: null, files_url: null }; @@ -92,7 +92,8 @@ var fname = e.added.raw_id + ext; var href = pyroutes.url('repo_archivefile', {'repo_name': templateContext.repo_name, 'fname':fname}); // set new label - $('#archive_link').html('{0}{1}'.format(escapeHtml(e.added.text), ext)); + var ico = ''; + $('#archive_link').html(ico+' {0}{1}'.format(escapeHtml(e.added.text), ext)); // set new url to button, $('#archive_link').attr('href', href)