Link configuration button to .gitlab-ci.yml
This commit is contained in:
parent
3f1422a629
commit
afca25ed8a
|
@ -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 @@
|
||||||
|
|
||||||
- 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
|
||||||
|
|
Loading…
Reference in New Issue