Show More
@@ -342,7 +342,6 b'' | |||||
342 | </p> |
|
342 | </p> | |
343 | %elif repo_instance.enable_locking: |
|
343 | %elif repo_instance.enable_locking: | |
344 | <p class="locking_unlocked discreet"> |
|
344 | <p class="locking_unlocked discreet"> | |
345 | <i class="icon-repo-unlock"></i> |
|
|||
346 | ${_('Repository not locked. Pull repository to lock it.')} |
|
345 | ${_('Repository not locked. Pull repository to lock it.')} | |
347 | </p> |
|
346 | </p> | |
348 | %endif |
|
347 | %endif | |
@@ -403,14 +402,14 b'' | |||||
403 | <li class="${h.is_active('options', active)}"> |
|
402 | <li class="${h.is_active('options', active)}"> | |
404 | % if has_actions: |
|
403 | % if has_actions: | |
405 | <a class="menulink dropdown"> |
|
404 | <a class="menulink dropdown"> | |
406 |
<div class="menulabel">${_(' |
|
405 | <div class="menulabel">${_('Quick Actions')}<div class="show_more"></div></div> | |
407 | </a> |
|
406 | </a> | |
408 | <ul class="submenu"> |
|
407 | <ul class="submenu"> | |
409 | %if can_lock: |
|
408 | %if can_lock: | |
410 | %if c.rhodecode_db_repo.locked[0]: |
|
409 | %if c.rhodecode_db_repo.locked[0]: | |
411 |
<li><a class="locking_del" href="${h.route_path('repo_ |
|
410 | <li><a class="locking_del" href="${h.route_path('repo_settings_quick_actions',repo_name=c.repo_name, _query={'action': 'toggle-lock', 'set_unlock': 1})}">${_('Unlock Repository')}</a></li> | |
412 | %else: |
|
411 | %else: | |
413 |
<li><a class="locking_add" href="${h.route_path('repo_ |
|
412 | <li><a class="locking_add" href="${h.route_path('repo_settings_quick_actions',repo_name=c.repo_name, _query={'action': 'toggle-lock', 'set_lock': 1})}">${_('Lock Repository')}</a></li> | |
414 | %endif |
|
413 | %endif | |
415 | %endif |
|
414 | %endif | |
416 | </ul> |
|
415 | </ul> |
@@ -41,19 +41,20 b'' | |||||
41 |
|
41 | |||
42 |
|
42 | |||
43 | <% |
|
43 | <% | |
44 |
|
|
44 | vers = getattr(c, 'versions', []) | |
|
45 | ||||
|
46 | comment_ver_index = comment_obj.get_index_version(vers) | |||
45 | prev_comment_ver_index = 0 |
|
47 | prev_comment_ver_index = 0 | |
46 | if loop_obj.previous: |
|
48 | if loop_obj.previous: | |
47 |
prev_comment_ver_index = loop_obj.previous.get_index_version( |
|
49 | prev_comment_ver_index = loop_obj.previous.get_index_version(vers) | |
48 |
|
||||
49 | ver_info = None |
|
50 | ver_info = None | |
50 |
if |
|
51 | if vers: | |
51 | ver_info = c.versions[comment_ver_index-1] if comment_ver_index else None |
|
52 | ver_info = c.versions[comment_ver_index-1] if comment_ver_index else None | |
52 | %> |
|
53 | %> | |
53 | <% hidden_at_ver = comment_obj.outdated_at_version_js(c.at_version_num) %> |
|
54 | <% hidden_at_ver = comment_obj.outdated_at_version_js(c.at_version_num) %> | |
54 | <% is_from_old_ver = comment_obj.older_than_version_js(c.at_version_num) %> |
|
55 | <% is_from_old_ver = comment_obj.older_than_version_js(c.at_version_num) %> | |
55 | <% |
|
56 | <% | |
56 |
if |
|
57 | if prev_comment_ver_index > comment_ver_index: | |
57 | comments_ver_divider = comment_ver_index |
|
58 | comments_ver_divider = comment_ver_index | |
58 | else: |
|
59 | else: | |
59 | comments_ver_divider = None |
|
60 | comments_ver_divider = None |
@@ -313,7 +313,7 b" return '%s_%s_%i' % (h.md5_safe(commit+f" | |||||
313 | </label> |
|
313 | </label> | |
314 |
|
314 | |||
315 | ${diff_menu(filediff, use_comments=use_comments)} |
|
315 | ${diff_menu(filediff, use_comments=use_comments)} | |
316 |
<table id="file-${h.safeid(h.safe_ |
|
316 | <table id="file-${h.safeid(h.safe_str(filediff.patch['filename']))}" data-f-path="${filediff.patch['filename']}" data-anchor-id="${h.FID(filediff.raw_id, filediff.patch['filename'])}" class="code-visible-block cb cb-diff-${c.user_session_attrs["diffmode"]} code-highlight ${(over_lines_changed_limit and 'cb-collapsed' or '')}"> | |
317 |
|
317 | |||
318 | ## new/deleted/empty content case |
|
318 | ## new/deleted/empty content case | |
319 | % if not filediff.hunks: |
|
319 | % if not filediff.hunks: |
General Comments 0
You need to be logged in to leave comments.
Login now