# HG changeset patch # User RhodeCode Admin # Date 2023-07-18 07:43:16 # Node ID 0c2a09c812ecb1d2735ba59edcd2c6a62aa987aa # Parent 0ea2e86045954da89218c791afa472104ebd1a33 templates: few small UI fixes diff --git a/rhodecode/templates/base/base.mako b/rhodecode/templates/base/base.mako --- a/rhodecode/templates/base/base.mako +++ b/rhodecode/templates/base/base.mako @@ -342,7 +342,6 @@

%elif repo_instance.enable_locking:

- ${_('Repository not locked. Pull repository to lock it.')}

%endif @@ -403,14 +402,14 @@
  • % if has_actions: - + diff --git a/rhodecode/templates/base/sidebar.mako b/rhodecode/templates/base/sidebar.mako --- a/rhodecode/templates/base/sidebar.mako +++ b/rhodecode/templates/base/sidebar.mako @@ -41,19 +41,20 @@ <% - comment_ver_index = comment_obj.get_index_version(getattr(c, 'versions', [])) + vers = getattr(c, 'versions', []) + + comment_ver_index = comment_obj.get_index_version(vers) prev_comment_ver_index = 0 if loop_obj.previous: - prev_comment_ver_index = loop_obj.previous.get_index_version(getattr(c, 'versions', [])) - + prev_comment_ver_index = loop_obj.previous.get_index_version(vers) ver_info = None - if getattr(c, 'versions', []): + if vers: ver_info = c.versions[comment_ver_index-1] if comment_ver_index else None %> <% hidden_at_ver = comment_obj.outdated_at_version_js(c.at_version_num) %> <% is_from_old_ver = comment_obj.older_than_version_js(c.at_version_num) %> <% - if (prev_comment_ver_index > comment_ver_index): + if prev_comment_ver_index > comment_ver_index: comments_ver_divider = comment_ver_index else: comments_ver_divider = None diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -313,7 +313,7 @@ return '%s_%s_%i' % (h.md5_safe(commit+f ${diff_menu(filediff, use_comments=use_comments)} - +
    ## new/deleted/empty content case % if not filediff.hunks: