Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
72d5a566
Commit
72d5a566
authored
May 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show gitlab-ci status on project dashboard
parent
42cf48f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
app/models/gitlab_ci_service.rb
app/models/gitlab_ci_service.rb
+8
-0
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+5
-0
No files found.
app/models/gitlab_ci_service.rb
View file @
72d5a566
...
...
@@ -46,4 +46,12 @@ class GitlabCiService < Service
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 @
72d5a566
...
...
@@ -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