Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
d5218a11be9e
Commit
72d5a566
authored
May 14, 2013
by
Dmitriy Zaporozhets
Browse files
Show gitlab-ci status on project dashboard
parent
506fda3b719e
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/models/gitlab_ci_service.rb
View file @
d5218a11
...
...
@@ -46,4 +46,12 @@ def commit_status sha
def
build_page
sha
project_url
+
"/builds/
#{
sha
}
"
end
def
builds_path
project_url
+
"?ref="
+
project
.
default_branch
end
def
status_img_path
project_url
+
"/status.png?ref="
+
project
.
default_branch
end
end
app/views/projects/show.html.haml
View file @
d5218a11
...
...
@@ -44,3 +44,8 @@
%p
Forked from:
=
link_to
@project
.
forked_from_project
.
name_with_namespace
,
project_path
(
@project
.
forked_from_project
)
-
if
@project
.
gitlab_ci?
%hr
=
link_to
@project
.
gitlab_ci_service
.
builds_path
do
=
image_tag
@project
.
gitlab_ci_service
.
status_img_path
,
alt:
"build status"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment