LINES_AROUND_ISSUE = 4
LINES_AROUND_COVERED_LINE = 1
EXPAND_LINES = 20
+ HIGHLIGHTED_ROW_CLASS = 'row-highlighted'
events:
'click .sym': 'highlightUsages'
+ 'click .lid': 'highlightLine'
+
'click .coverage-tests': 'showCoveragePopup'
'click .duplication-exists': 'showDuplicationPopup'
@$el.html '<div style="padding: 10px;"><i class="spinner"></i></div>'
+ highlightLine: (e) ->
+ @$(".#{HIGHLIGHTED_ROW_CLASS}").removeClass HIGHLIGHTED_ROW_CLASS
+ $(e.currentTarget).closest('.row').addClass HIGHLIGHTED_ROW_CLASS
+
+
highlightUsages: (e) ->
key = e.currentTarget.className.split(/\s+/)[0]
@$('.sym.highlighted').removeClass 'highlighted'
}
}
+ .code .row:hover {
+ td.stat { background-color: @barBorderColor; }
+ td.line { background-color: @barBackgroundColor; }
+ }
+
+ .code .row-highlighted {
+ td.stat { background-color: #e9e94d !important; }
+ td.line { background-color: #f1f1a3 !important; }
+ }
+
.code td.line {
width: 100%;
padding: 1px 5px;
min-width: 18px;
padding-left: 10px;
padding-right: 10px;
+ cursor: pointer;
}
.code .coverage-tests {