Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
4f5a2954
Commit
4f5a2954
authored
Feb 26, 2018
by
Guilhem Saurel
Browse files
gitlab-ci.yml view
parent
8b2d9ce9
Changes
2
Hide whitespace changes
Inline
Side-by-side
rainboard/urls.py
View file @
4f5a2954
...
...
@@ -17,4 +17,5 @@ urlpatterns = [
path
(
'project/<str:slug>/branches'
,
views
.
ProjectBranchesView
.
as_view
(),
name
=
'project-branches'
),
path
(
'project/<str:slug>/images'
,
views
.
ProjectImagesView
.
as_view
(),
name
=
'project-images'
),
path
(
'project/<str:slug>/contributors'
,
views
.
ProjectContributorsView
.
as_view
(),
name
=
'project-contributors'
),
path
(
'project/<str:slug>/gitlab-ci.yml'
,
views
.
ProjectGitlabView
.
as_view
(),
name
=
'project-gitlab'
),
]
rainboard/views.py
View file @
4f5a2954
...
...
@@ -78,6 +78,10 @@ class ProjectContributorsView(ProjectTableView):
def
get_object_list
(
self
):
return
self
.
object
.
contributors
()
class
ProjectGitlabView
(
ProjectView
):
template_name
=
'rainboard/gitlab-ci.yml'
content_type
=
'application/x-yaml'
class
DistinctMixin
(
object
):
def
get_queryset
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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