diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-17 02:44:54 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-17 18:57:40 +0300 |
commit | c5a13781fad254e1984cf03f5487350e60f665e5 (patch) | |
tree | 802a0b15f6f0e5f6573200a3666366658e14159f /app/views/projects/_files.html.haml | |
parent | 67312fceaa69abb2bc88aa62601625e9f6a62270 (diff) |
Use same last commit widget on project homepage and tree view
Diffstat (limited to 'app/views/projects/_files.html.haml')
-rw-r--r-- | app/views/projects/_files.html.haml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/views/projects/_files.html.haml b/app/views/projects/_files.html.haml index 96c2fa87f45..426085b3e1c 100644 --- a/app/views/projects/_files.html.haml +++ b/app/views/projects/_files.html.haml @@ -1,6 +1,14 @@ +- commit = local_assigns.fetch(:commit) { @repository.commit } +- ref = local_assigns.fetch(:ref) { current_ref } +- project = local_assigns.fetch(:project) { @project } #tree-holder.tree-holder.clearfix .nav-block = render 'projects/tree/tree_header', tree: @tree - = render 'projects/tree/tree_content', tree: @tree + - if commit + .info-well.hidden-xs.project-last-commit.append-bottom-default + .well-segment + %ul.blob-commit-info + = render 'projects/commits/commit', commit: commit, ref: ref, project: project + = render 'projects/tree/tree_content', tree: @tree |