# HG changeset patch # User Mads Kiilerich # Date 1473115878 -7200 # Node ID 59639343672495cb89be54b98f1d6d3a4c44307c # Parent 12ce88eece5f44efeffd40baecc79d7397e8fb08 diff: fix display of links to before / after files - it was not obvious what the hashes / file names did Show a "missing" symbol instead of the hash. diff -r 12ce88eece5f -r 596393436724 kallithea/public/css/style.css --- a/kallithea/public/css/style.css Tue Sep 06 00:51:18 2016 +0200 +++ b/kallithea/public/css/style.css Tue Sep 06 00:51:18 2016 +0200 @@ -2679,9 +2679,18 @@ } .diffblock .diff-actions { - padding: 2px 0px 0px 2px; float: left; } +.diffblock .diff-actions span.no-file, +.diffblock .diff-actions span.arrow { + opacity: 0.5; +} +.diffblock .diff-actions span.arrow { + margin: 0 -3px; +} +.diffblock .diff-actions a i { + margin: 0 2px; +} .diffblock.twoway { overflow: visible; } diff -r 12ce88eece5f -r 596393436724 kallithea/templates/changeset/diff_block.html --- a/kallithea/templates/changeset/diff_block.html Tue Sep 06 00:51:18 2016 +0200 +++ b/kallithea/templates/changeset/diff_block.html Tue Sep 06 00:51:18 2016 +0200 @@ -24,39 +24,49 @@
- ${h.safe_unicode(cs_filename)} | - %if op == 'A': - ${_('Added')} - ${h.short_ref(cs_ref_type, cs_ref_name)} - %elif op == 'M': - ${h.short_ref(a_ref_type, a_ref_name)} - - ${h.short_ref(cs_ref_type, cs_ref_name)} - %elif op == 'D': - ${_('Deleted')} - ${h.short_ref(a_ref_type, a_ref_name)} - %elif op == 'R': - ${_('Renamed')} - ${h.short_ref(a_ref_type, a_ref_name)} - - ${h.short_ref(cs_ref_type, cs_ref_name)} - %else: - ${op}??? - %endif + ${h.safe_unicode(cs_filename)}
+ + %if op == 'A': + + + %else: + + + %endif + + %if op == 'A': + + %elif op == 'M': + + %elif op == 'D': + + %elif op == 'R': + + %elif op is None: + + %else: + + %endif + + %if op == 'D': + + + %else: + + + %endif + + - - + - - + - - + - - + ${c.ignorews_url(request.GET, url_fid)} ${c.context_url(request.GET, url_fid)}