diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-23 18:09:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-23 18:09:28 +0300 |
commit | 14fb5a922285d71fea67de59164ee4bb81ee3486 (patch) | |
tree | d3f585c54feb676aec2f14cc85fe32d615fd7fc0 /app/presenters/commit_presenter.rb | |
parent | d9b0b3243e3cd71a08ff5d4035b7882cc7a5a35f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters/commit_presenter.rb')
-rw-r--r-- | app/presenters/commit_presenter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/commit_presenter.rb b/app/presenters/commit_presenter.rb index 9ded00fcb7a..998e5160f8b 100644 --- a/app/presenters/commit_presenter.rb +++ b/app/presenters/commit_presenter.rb @@ -21,6 +21,10 @@ class CommitPresenter < Gitlab::View::Presenter::Delegated url_builder.build(commit) end + def web_path + url_builder.build(commit, only_path: true) + end + def signature_html return unless commit.has_signature? |