ba68facf8d
- Add page titles to CI settings. - Fix CI admin navigation. - Remove duplicated scope. - Use monospace font for commit sha. - Add page title and header title to build page. - Proper authorization for cancel/retry builds. - Use gitlab pagination theme for builds and group members. - Don't paginate builds widget on build page. - Add badges to commit page Changes/Builds tabs. - Add "Builds" to commit Builds tab page title. - Add and use Ci::Build#retryable? method. - Add CI::Build#retried? method. - Allow all failed commit builds to be retried. - Proper authorization for cancel/retry all builds. - Remove unused param. - Use time_ago_with_tooltip where appropriate. - Tweak builds index text - Remove duplication between builds/build and commit_statuses/commit_status. - Use POST rather than GET for canceling and retrying builds. - Remove redundant URL helpers. - Add build ID to build page. - Link branch name on build page. - Move commit/:sha/ci to commit/:sha/builds.
17 lines
379 B
Ruby
17 lines
379 B
Ruby
module Ci
|
|
module GitlabHelper
|
|
def no_turbolink
|
|
{ :"data-no-turbolink" => "data-no-turbolink" }
|
|
end
|
|
|
|
def yaml_web_editor_link(project)
|
|
commits = project.commits
|
|
|
|
if commits.any? && commits.last.ci_yaml_file
|
|
"#{project.gitlab_url}/edit/master/.gitlab-ci.yml"
|
|
else
|
|
"#{project.gitlab_url}/new/master"
|
|
end
|
|
end
|
|
end
|
|
end
|