Commit afca25ed authored by Annabel Dunstone's avatar Annabel Dunstone

Link configuration button to .gitlab-ci.yml

parent 3f1422a6
...@@ -263,6 +263,10 @@ module ProjectsHelper ...@@ -263,6 +263,10 @@ module ProjectsHelper
filename_path(project, :version) filename_path(project, :version)
end end
def ci_configuration_path(project)
filename_path(project, :gitlab_ci_yml)
end
def project_wiki_path_with_version(proj, page, version, is_newest) def project_wiki_path_with_version(proj, page, version, is_newest)
url_params = is_newest ? {} : { version_id: version } url_params = is_newest ? {} : { version_id: version }
namespace_project_wiki_path(proj.namespace, proj, page, url_params) namespace_project_wiki_path(proj.namespace, proj, page, url_params)
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
- if @repository.gitlab_ci_yml - if @repository.gitlab_ci_yml
%li %li
= link_to 'CI configuration', project_environments_path(@project) = link_to 'CI configuration', ci_configuration_path(@project)
- if current_user && can_push_branch?(@project, @project.default_branch) - if current_user && can_push_branch?(@project, @project.default_branch)
- unless @repository.changelog - unless @repository.changelog
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment