diff --git a/rhodecode/templates/summary/summary.html b/rhodecode/templates/summary/summary.html --- a/rhodecode/templates/summary/summary.html +++ b/rhodecode/templates/summary/summary.html @@ -74,7 +74,7 @@ %endif ##REPO NAME - ${h.repo_link(c.dbrepo.groups_and_repo)} + ${h.repo_link(c.dbrepo.groups_and_repo)} ##FORK %if c.dbrepo.fork: @@ -121,7 +121,10 @@
- + +
${_('Show by ID')}
+ +
@@ -240,6 +243,28 @@ YUE.on(clone_url,'click',function(e){ } }) +YUE.on('clone_by_name','click',function(e){ + // show url by name and hide name button + YUD.setStyle('clone_url','display',''); + YUD.setStyle('clone_by_name','display','none'); + + // hide url by id and show name button + YUD.setStyle('clone_by_id','display',''); + YUD.setStyle('clone_url_id','display','none'); + +}) +YUE.on('clone_by_id','click',function(e){ + + // show url by id and hide id button + YUD.setStyle('clone_by_id','display','none'); + YUD.setStyle('clone_url_id','display',''); + + // hide url by name and show id button + YUD.setStyle('clone_by_name','display',''); + YUD.setStyle('clone_url','display','none'); +}) + + var tmpl_links = {}; %for cnt,archive in enumerate(c.rhodecode_repo._get_archives()): tmpl_links["${archive['type']}"] = '${h.link_to('__NAME__', h.url('files_archive_home',repo_name=c.dbrepo.repo_name, fname='__CS__'+archive['extension'],subrepos='__SUB__'),class_='archive_icon ui-btn')}';