# HG changeset patch # User Marcin Kuzminski # Date 2019-05-29 18:22:44 # Node ID da37aa4958bb9f8934e564a15723199d907427df # Parent 9aa2b59532737134c6d58d2a5942b1e5e849953a files: don't format 0 revision in select pickers diff --git a/rhodecode/templates/files/files.mako b/rhodecode/templates/files/files.mako --- a/rhodecode/templates/files/files.mako +++ b/rhodecode/templates/files/files.mako @@ -206,7 +206,9 @@ tmpl = tmpl.concat(escapeHtml(commit_ref.text)); } var idx = commit_ref.idx || 0; - tmpl = tmpl.concat('r{0}'.format(idx)); + if (idx !== 0) { + tmpl = tmpl.concat('r{0}'.format(idx)); + } return tmpl }; @@ -397,7 +399,9 @@ } var idx = commit_ref.idx || 0; - tmpl = tmpl.concat('r{0}'.format(idx)); + if (idx !== 0) { + tmpl = tmpl.concat('r{0}'.format(idx)); + } return tmpl };