Show More
@@ -342,7 +342,6 b'' | |||
|
342 | 342 | </p> |
|
343 | 343 | %elif repo_instance.enable_locking: |
|
344 | 344 | <p class="locking_unlocked discreet"> |
|
345 | <i class="icon-repo-unlock"></i> | |
|
346 | 345 | ${_('Repository not locked. Pull repository to lock it.')} |
|
347 | 346 | </p> |
|
348 | 347 | %endif |
@@ -403,14 +402,14 b'' | |||
|
403 | 402 | <li class="${h.is_active('options', active)}"> |
|
404 | 403 | % if has_actions: |
|
405 | 404 | <a class="menulink dropdown"> |
|
406 |
<div class="menulabel">${_(' |
|
|
405 | <div class="menulabel">${_('Quick Actions')}<div class="show_more"></div></div> | |
|
407 | 406 | </a> |
|
408 | 407 | <ul class="submenu"> |
|
409 | 408 | %if can_lock: |
|
410 | 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 | 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 | 413 | %endif |
|
415 | 414 | %endif |
|
416 | 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 | 47 | prev_comment_ver_index = 0 |
|
46 | 48 | if loop_obj.previous: |
|
47 |
prev_comment_ver_index = loop_obj.previous.get_index_version( |
|
|
48 | ||
|
49 | prev_comment_ver_index = loop_obj.previous.get_index_version(vers) | |
|
49 | 50 | ver_info = None |
|
50 |
if |
|
|
51 | if vers: | |
|
51 | 52 | ver_info = c.versions[comment_ver_index-1] if comment_ver_index else None |
|
52 | 53 | %> |
|
53 | 54 | <% hidden_at_ver = comment_obj.outdated_at_version_js(c.at_version_num) %> |
|
54 | 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 | 58 | comments_ver_divider = comment_ver_index |
|
58 | 59 | else: |
|
59 | 60 | comments_ver_divider = None |
@@ -313,7 +313,7 b" return '%s_%s_%i' % (h.md5_safe(commit+f" | |||
|
313 | 313 | </label> |
|
314 | 314 | |
|
315 | 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 | 318 | ## new/deleted/empty content case |
|
319 | 319 | % if not filediff.hunks: |
General Comments 0
You need to be logged in to leave comments.
Login now