# HG changeset patch # User Marcin Kuzminski # Date 2020-06-24 12:40:19 # Node ID a05a39ec95cadda15224a7521afeeb0d76c06094 # Parent 569617beaca5d88ce885f58fc87a1a84cf64ed11 download: make use of default landing revision for downloads too. 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)