diff options
author | Natalia Tepluhina <tarya.se@gmail.com> | 2019-05-21 18:52:22 +0300 |
---|---|---|
committer | Natalia Tepluhina <tarya.se@gmail.com> | 2019-05-21 18:52:22 +0300 |
commit | 60072b50e7ce8d9529936c785b0a66e69ba920ad (patch) | |
tree | 46fc886959c153dacd364b482165291d019fcd88 | |
parent | a4777d6ea91433a134358de8ca446d96a2e5fd6f (diff) | |
download | gitlab-ce-60072b50e7ce8d9529936c785b0a66e69ba920ad.tar.gz |
Move EE differences under render_if_exists
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index e2d078855d9..e991e7aa035 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -9,6 +9,9 @@ - commit_status = commit.present(current_user: current_user).status_for(ref) - link = commit_path(project, commit, merge_request: merge_request) + += render_if_exists 'projects/commits/show_project_name' + %li.commit.flex-row.js-toggle-container{ id: "commit-#{commit.short_id}" } .avatar-cell.d-none.d-sm-block @@ -32,6 +35,7 @@ - commit_timeago = time_ago_with_tooltip(commit.authored_date, placement: 'bottom') - commit_text = _('%{commit_author_link} authored %{commit_timeago}') % { commit_author_link: commit_author_link, commit_timeago: commit_timeago } #{ commit_text.html_safe } + = render_if_exists 'projects/commits/project_namespace' - if commit.description? %pre.commit-row-description.js-toggle-content.append-bottom-8 |