Commit 8b62d310 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

GepettoProjectsView

parent 9f4b395e
Pipeline #884 passed with stages
in 49 seconds
......@@ -9,6 +9,7 @@
<li class="nav-item"><a class="nav-link" href="{% url 'rainboard:forges' %}">Forges</a></li>
<li class="nav-item"><a class="nav-link" href="{% url 'rainboard:namespaces' %}">Namespaces</a></li>
<li class="nav-item"><a class="nav-link" href="{% url 'rainboard:contributors' %}">Contributors</a></li>
<li class="nav-item"><a class="nav-link" href="{% url 'rainboard:gepetto' %}">Gepetto</a></li>
{% endblock %}
{% block scripts %}
......
......@@ -10,6 +10,7 @@ urlpatterns = [
path('namespaces', views.NamespacesView.as_view(), name='namespaces'),
path('contributors', views.ContributorsView.as_view(), name='contributors'),
path('projects', views.ProjectsView.as_view(), name='projects'),
path('projects/gepetto', views.GepettoProjectsView.as_view(), name='gepetto'),
path('project/<str:slug>/robotpkg', views.ProjectView.as_view(), name='project'),
path('project/<str:slug>/repos', views.ProjectReposView.as_view(), name='project-repos'),
path('project/<str:slug>/branches', views.ProjectBranchesView.as_view(), name='project-branches'),
......
......@@ -24,6 +24,10 @@ class ProjectsView(SingleTableMixin, FilterView):
filterset_class = filters.ProjectFilter
class GepettoProjectsView(ProjectsView):
queryset = models.Project.objects.filter(from_gepetto=True)
class ProjectView(DetailView):
model = models.Project
......
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