diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-14 15:03:02 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-14 15:03:02 +0300 |
commit | 1ce85dc4e2a1b162a0c30349f3594c1aab710708 (patch) | |
tree | 50f9befb4ed130ccf55d8aeb9713ccaf3920723f /app/helpers/ci | |
parent | d0b9a6fca2e73277c8a8e64c9a5f1e7cc02f0570 (diff) |
Fix navigation and header tile
Remove redundant navigation on commits and builds page
Diffstat (limited to 'app/helpers/ci')
-rw-r--r-- | app/helpers/ci/commits_helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/ci/commits_helper.rb b/app/helpers/ci/commits_helper.rb index 86f254223cb..994157ed84b 100644 --- a/app/helpers/ci/commits_helper.rb +++ b/app/helpers/ci/commits_helper.rb @@ -26,5 +26,14 @@ module Ci def truncate_first_line(message, length = 50) truncate(message.each_line.first.chomp, length: length) if message end + + def ci_commit_title(commit) + content_tag :span do + link_to( + simple_sanitize(commit.project.name), ci_project_path(commit.project) + ) + ' @ ' + + gitlab_commit_link(@project, @commit.sha) + end + end end end |