diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-28 18:18:00 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-07-28 18:18:00 +0100 |
commit | 5fcdd1cc06d9fedb2fe537e90c90cfac5f2a3287 (patch) | |
tree | 1d9db0fc9634845cd00ce65ad12e5b923bd75326 /app/views | |
parent | 5a40c88a7901bd09bba8bd063cf4540067baec44 (diff) | |
download | gitlab-ce-5fcdd1cc06d9fedb2fe537e90c90cfac5f2a3287.tar.gz |
Added commit_well partial and added to _files for not new_repo
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/_files.html.haml | 5 | ||||
-rw-r--r-- | app/views/shared/_commit_well.html.haml | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/app/views/projects/_files.html.haml b/app/views/projects/_files.html.haml index f9e1f83a239..2f73216ac68 100644 --- a/app/views/projects/_files.html.haml +++ b/app/views/projects/_files.html.haml @@ -7,9 +7,6 @@ = render 'projects/tree/tree_header', tree: @tree - if !show_new_repo? && 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 'shared/commit_well', commit: commit, ref: ref, project: project = render 'projects/tree/tree_content', tree: @tree diff --git a/app/views/shared/_commit_well.html.haml b/app/views/shared/_commit_well.html.haml new file mode 100644 index 00000000000..50e3d80a84d --- /dev/null +++ b/app/views/shared/_commit_well.html.haml @@ -0,0 +1,4 @@ +.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 |