Skip to content

Commit

Permalink
make other rank visible on card
Browse files Browse the repository at this point in the history
  • Loading branch information
thongnt99 committed Mar 12, 2021
1 parent 77c890e commit 6553bf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions diffir/templates/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ <h6 id="Run2Name" style="text-align: center;"></h6>
}
});
if (otherRank === null) {
var symbol = '';
var symbol = '×';
var tip = 'not ranked in other run';
}
else if (doc.rank === otherRank) {
Expand All @@ -377,12 +377,12 @@ <h6 id="Run2Name" style="text-align: center;"></h6>
var tip = 'ranked higher in other run (' + otherRank + ')'
}
var newEl = $('<div></div>')
.append($('<span class="other-rank"></span>').text(symbol).css('float', docIdFloat).css('text-align', docIdFloat === 'right' ? 'left' : 'right').attr('title', tip))
// .append($('<span class="other-rank"></span>').text(symbol).css('float', docIdFloat).css('text-align', docIdFloat === 'right' ? 'left' : 'right').attr('title', tip))
.append($('<div class="card"></div>')
.attr('data-docid', doc.doc_id)
.append($('<div class="card-header"></div>')
.css('padding-' + docIdFloat, '30px')
.append(doc.rank)
.append($("<span class='border badge' style='min-width: 50px; font-weight: normal;color: grey;'></span>").html('<span style="font-size: 1.2em;font-weight:bold; color: black;">'+doc.rank +'</span> '+symbol + (otherRank === null ? '': otherRank)).attr('title', tip))
.append(' ')
.append($did)
.append(' ')
Expand Down

0 comments on commit 6553bf2

Please sign in to comment.