summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-07-28 12:06:15 -0500
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-07-28 12:46:19 -0500
commitafca25ed8abddf4f9f3767fbc26a990a6e61dc8b (patch)
tree0459e1ac040a76e860d8521bf0f7afed9a14f8b6
parent3f1422a629a6866bc4cf164c00479eedb891ef8a (diff)
downloadgitlab-ce-20101-ci-configuration.tar.gz
Link configuration button to .gitlab-ci.yml20101-ci-configuration
-rw-r--r--app/helpers/projects_helper.rb4
-rw-r--r--app/views/projects/show.html.haml2
2 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index a733dff1579..505545fbabb 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -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)
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index cd0cd923ddb..a666d07e9eb 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -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