Fix and style the "Changes suppressed" link.
This commit is contained in:
parent
7e262ebf15
commit
cad0e848b0
4 changed files with 18 additions and 5 deletions
|
@ -164,9 +164,10 @@ $ ->
|
|||
$('.account-box').hover -> $(@).toggleClass('hover')
|
||||
|
||||
# Commit show suppressed diff
|
||||
$(".diff-content").on "click", ".supp_diff_link", ->
|
||||
$(@).next('table').show()
|
||||
$(@).remove()
|
||||
$(document).on 'click', '.diff-content .js-show-suppressed-diff', ->
|
||||
$container = $(@).parent()
|
||||
$container.next('table').show()
|
||||
$container.remove()
|
||||
|
||||
$('.navbar-toggle').on 'click', ->
|
||||
$('.header-content .title').toggle()
|
||||
|
|
|
@ -184,7 +184,7 @@ li.note {
|
|||
}
|
||||
}
|
||||
|
||||
.supp_diff_link,
|
||||
.show-suppressed-diff,
|
||||
.show-all-commits {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
@ -65,6 +65,17 @@
|
|||
color: #777;
|
||||
}
|
||||
|
||||
.suppressed-container {
|
||||
padding: ($padding-base-vertical + 5px) $padding-base-horizontal;
|
||||
text-align: center;
|
||||
|
||||
// "Changes suppressed. Click to show." link
|
||||
.show-suppressed-diff {
|
||||
font-size: 110%;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
font-family: $monospace_font;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
- too_big = diff_file.diff_lines.count > Commit::DIFF_SAFE_LINES
|
||||
- if too_big
|
||||
%a.supp_diff_link Changes suppressed. Click to show
|
||||
.suppressed-container
|
||||
%a.show-suppressed-diff.js-show-suppressed-diff Changes suppressed. Click to show.
|
||||
|
||||
%table.text-file{class: "#{'hide' if too_big}"}
|
||||
- last_line = 0
|
||||
|
|
Loading…
Reference in a new issue