Link configuration button to .gitlab-ci.yml
This commit is contained in:
parent
3f1422a629
commit
afca25ed8a
2 changed files with 5 additions and 1 deletions
|
@ -263,6 +263,10 @@ module ProjectsHelper
|
|||
filename_path(project, :version)
|
||||
end
|
||||
|
||||
def ci_configuration_path(project)
|
||||
filename_path(project, :gitlab_ci_yml)
|
||||
end
|
||||
|
||||
def project_wiki_path_with_version(proj, page, version, is_newest)
|
||||
url_params = is_newest ? {} : { version_id: version }
|
||||
namespace_project_wiki_path(proj.namespace, proj, page, url_params)
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
- if @repository.gitlab_ci_yml
|
||||
%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)
|
||||
- unless @repository.changelog
|
||||
|
|
Loading…
Reference in a new issue