# HG changeset patch # User Milka Kuzminski # Date 2021-04-16 15:49:54 # Node ID c6d250c6a8971455da04fbb5e34bbbe40791ec39 # Parent a287ef57c8c1bf5c826f73ce1dd056e52e982ab0 summary: fixed ui on summary page for non-admins. The setup instructions were broken if user had no write permissions. diff --git a/rhodecode/templates/summary/summary_commits.mako b/rhodecode/templates/summary/summary_commits.mako --- a/rhodecode/templates/summary/summary_commits.mako +++ b/rhodecode/templates/summary/summary_commits.mako @@ -111,9 +111,10 @@ %else: -%if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): +
+ %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):

${_('Add or upload files directly via RhodeCode:')}

${_('Add New File')} @@ -124,6 +125,7 @@ %endif
+

${_('Push new repo:')}