Commit 8581e152 authored by Clement Ho's avatar Clement Ho

Add last commit time to repo view

parent 0693fee2
...@@ -17,6 +17,7 @@ v 8.12.0 (unreleased) ...@@ -17,6 +17,7 @@ v 8.12.0 (unreleased)
- Fix groups sort dropdown alignment (ClemMakesApps) - Fix groups sort dropdown alignment (ClemMakesApps)
- Add horizontal scrolling to all sub-navs on mobile viewports (ClemMakesApps) - Add horizontal scrolling to all sub-navs on mobile viewports (ClemMakesApps)
- Fix markdown help references (ClemMakesApps) - Fix markdown help references (ClemMakesApps)
- Add last commit time to repo view (ClemMakesApps)
- Added tests for diff notes - Added tests for diff notes
- Add delimiter to project stars and forks count (ClemMakesApps) - Add delimiter to project stars and forks count (ClemMakesApps)
- Fix badge count alignment (ClemMakesApps) - Fix badge count alignment (ClemMakesApps)
......
...@@ -11,6 +11,16 @@ ...@@ -11,6 +11,16 @@
} }
} }
.last-commit {
max-width: 506px;
.last-commit-content {
@include str-truncated;
width: calc(100% - 140px);
margin-left: 3px;
}
}
.tree-table { .tree-table {
margin-bottom: 0; margin-bottom: 0;
......
...@@ -5,16 +5,17 @@ ...@@ -5,16 +5,17 @@
%tr %tr
%th Name %th Name
%th Last Update %th Last Update
%th.hidden-xs %th.hidden-xs.last-commit
.pull-left Last Commit Last Commit
.last-commit.hidden-sm.pull-left .last-commit-content.hidden-sm
 
%i.fa.fa-angle-right %i.fa.fa-angle-right
   
%small.light %small.light
= link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @commit), class: "monospace" = link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @commit), class: "monospace"
– –
= truncate(@commit.title, length: 50) = time_ago_with_tooltip(@commit.committed_date)
–
= @commit.full_title
= link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id), class: 'pull-right' = link_to 'History', namespace_project_commits_path(@project.namespace, @project, @id), class: 'pull-right'
- if @path.present? - if @path.present?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment