diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-07-11 11:49:22 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-07-11 11:49:22 -0500 |
commit | 6eeb6384349b19ec21b667a080893e4facd9b591 (patch) | |
tree | 3378fe837e41abca68485aa33b93f7b2991aae09 /app/serializers | |
parent | 09193a4fe18044a61021afef1282ec60b81810b1 (diff) | |
download | gitlab-ce-6eeb6384349b19ec21b667a080893e4facd9b591.tar.gz |
Make commits behind text a link to the target branch commits page
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/merge_request_entity.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/merge_request_entity.rb b/app/serializers/merge_request_entity.rb index fb6709699a7..7f17f2bf604 100644 --- a/app/serializers/merge_request_entity.rb +++ b/app/serializers/merge_request_entity.rb @@ -93,6 +93,10 @@ class MergeRequestEntity < IssuableEntity # Paths # + expose :target_branch_commits_path do |merge_request| + presenter(merge_request).target_branch_commits_path + end + expose :target_branch_tree_path do |merge_request| presenter(merge_request).target_branch_tree_path end |