ux: make show file after/before links unclickable and black if
they are disabled
This commit is contained in:
parent
12ebe4382a
commit
8fec78d0a9
2 changed files with 6 additions and 7 deletions
|
|
@ -271,13 +271,12 @@ from rhodecode.lib.diffs import NEW_FILENODE, DEL_FILENODE, \
|
|||
${_('Show file before')}
|
||||
</a>
|
||||
%else:
|
||||
<a
|
||||
disabled
|
||||
<span
|
||||
class="tooltip"
|
||||
title="${h.tooltip(_('File no longer present at commit: %(commit_id)s') % {'commit_id': filediff.diffset.source_ref[:12]})}"
|
||||
>
|
||||
${_('Show file before')}
|
||||
</a>
|
||||
</span>
|
||||
%endif
|
||||
%if filediff.patch['operation'] in ['A', 'M']:
|
||||
<a
|
||||
|
|
@ -288,13 +287,12 @@ from rhodecode.lib.diffs import NEW_FILENODE, DEL_FILENODE, \
|
|||
${_('Show file after')}
|
||||
</a>
|
||||
%else:
|
||||
<a
|
||||
disabled
|
||||
<span
|
||||
class="tooltip"
|
||||
title="${h.tooltip(_('File no longer present at commit: %(commit_id)s') % {'commit_id': filediff.diffset.target_ref[:12]})}"
|
||||
>
|
||||
${_('Show file after')}
|
||||
</a>
|
||||
</span>
|
||||
%endif
|
||||
<a
|
||||
class="tooltip"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue