Commit 4f5a2954 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

gitlab-ci.yml view

parent 8b2d9ce9
......@@ -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'),
]
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment