summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitrieh <dimitriehoekstra@gmail.com>2017-01-25 21:48:04 +0100
committerdimitrieh <dimitriehoekstra@gmail.com>2017-01-25 21:48:04 +0100
commit0ded38cc6a694f250bc4075ef112f063934fbcd2 (patch)
tree50a60120cedab342c37df7b39579ceacf6eba607
parent55d28e56846b5c68fa4a2df23c3d6cbf0f320620 (diff)
downloadgitlab-ce-0ded38cc6a694f250bc4075ef112f063934fbcd2.tar.gz
fixed points from comments to improve code quality
-rw-r--r--app/assets/stylesheets/pages/tree.scss4
-rw-r--r--app/views/projects/tree/_tree_content.html.haml5
2 files changed, 5 insertions, 4 deletions
diff --git a/app/assets/stylesheets/pages/tree.scss b/app/assets/stylesheets/pages/tree.scss
index 4cce1c363eb..948921efc0b 100644
--- a/app/assets/stylesheets/pages/tree.scss
+++ b/app/assets/stylesheets/pages/tree.scss
@@ -32,6 +32,10 @@
.last-commit {
@include str-truncated(506px);
+ .fa-angle-right {
+ margin-left: 5px;
+ }
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
@include str-truncated(450px);
}
diff --git a/app/views/projects/tree/_tree_content.html.haml b/app/views/projects/tree/_tree_content.html.haml
index e06538cf078..6855c463c6d 100644
--- a/app/views/projects/tree/_tree_content.html.haml
+++ b/app/views/projects/tree/_tree_content.html.haml
@@ -7,15 +7,12 @@
%th.hidden-xs
.pull-left Last commit
.last-commit.hidden-sm.pull-left
- &nbsp;
%i.fa.fa-angle-right
- &nbsp;
%small.light
= link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @commit), class: "monospace"
= clipboard_button(clipboard_text: @commit.id, title: "Copy commit SHA to clipboard")
= time_ago_with_tooltip(@commit.committed_date)
- :plain
- -
+ \-
= @commit.full_title
%small.commit-history-link-spacer &#124;
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id), class: 'commit-history-link'