diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-28 13:54:51 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-03 19:03:49 +0300 |
commit | 30777178e3311c8aa7f4ecae82bd970fda63d85c (patch) | |
tree | 27fd276d1c9ccdd6ba5ec3928352f9d092fb487d /app/views/projects/diffs/_stats.html.haml | |
parent | b507682d6e799f737c05f27201dc4a0dbe3aba1d (diff) |
fixed jumping when bar gets stuck
added specs to sticky util file
added `No files found.` text when results are empty
Diffstat (limited to 'app/views/projects/diffs/_stats.html.haml')
-rw-r--r-- | app/views/projects/diffs/_stats.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/projects/diffs/_stats.html.haml b/app/views/projects/diffs/_stats.html.haml index 4f784f87f2b..7c2941e6be3 100644 --- a/app/views/projects/diffs/_stats.html.haml +++ b/app/views/projects/diffs/_stats.html.haml @@ -5,12 +5,12 @@ %button.diff-stats-summary-toggler.js-diff-stats-dropdown{ type: "button", data: { toggle: "dropdown" } }< = pluralize(diff_files.size, "changed file") = icon("caret-down fw") - %span.diff-stats-additions-deletions-expanded + %span.diff-stats-additions-deletions-expanded#diff-stats with %strong.cgreen #{sum_added_lines} additions and %strong.cred #{sum_removed_lines} deletions - .diff-stats-additions-deletions-collapsed.pull-right{ "aria-hidden": "true" } + .diff-stats-additions-deletions-collapsed.pull-right{ "aria-hidden": "true", "aria-describedby": "diff-stats" } %strong.cgreen< +#{sum_added_lines} %strong.cred< @@ -32,3 +32,6 @@ +#{added_lines} %span.cred< \-#{removed_lines} + %li.dropdown-menu-empty-link.hidden + %a{ href: "#" } + No files found. |