summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce <bryce@gitlab.com>2016-08-31 18:08:52 +0200
committerBryce <bryce@gitlab.com>2016-08-31 18:08:52 +0200
commitddc5b9f7236f8932c32ec9ec1d91338aab22a9e0 (patch)
tree57b1ae2d5640a7e8f1b60c074f57e9a0bd586fef
parenta4d3c4880106535bd3a028b5c1a5786c5d6885e0 (diff)
downloadgitlab-ce-ddc5b9f7236f8932c32ec9ec1d91338aab22a9e0.tar.gz
Revert "Add last commit time to repo view"
This reverts commit 8581e152ef8fa27b6670760d39b7f06dab5f796b. This creates really difficult conflicts with another MR that was worked on simulataneously. That MR mostly encompassed the aims of this commit. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5308/commits
-rw-r--r--app/assets/stylesheets/pages/tree.scss10
-rw-r--r--app/views/projects/tree/_tree_content.html.haml11
2 files changed, 5 insertions, 16 deletions
diff --git a/app/assets/stylesheets/pages/tree.scss b/app/assets/stylesheets/pages/tree.scss
index 538f211c65b..9da40fe2b09 100644
--- a/app/assets/stylesheets/pages/tree.scss
+++ b/app/assets/stylesheets/pages/tree.scss
@@ -11,16 +11,6 @@
}
}
- .last-commit {
- max-width: 506px;
-
- .last-commit-content {
- @include str-truncated;
- width: calc(100% - 140px);
- margin-left: 3px;
- }
- }
-
.tree-table {
margin-bottom: 0;
diff --git a/app/views/projects/tree/_tree_content.html.haml b/app/views/projects/tree/_tree_content.html.haml
index ca5d2d7722a..558e6146ae9 100644
--- a/app/views/projects/tree/_tree_content.html.haml
+++ b/app/views/projects/tree/_tree_content.html.haml
@@ -5,17 +5,16 @@
%tr
%th Name
%th Last Update
- %th.hidden-xs.last-commit
- Last Commit
- .last-commit-content.hidden-sm
+ %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"
&ndash;
- = time_ago_with_tooltip(@commit.committed_date)
- &ndash;
- = @commit.full_title
+ = truncate(@commit.title, length: 50)
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id), class: 'pull-right'
- if @path.present?