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
8b62d310
Commit
8b62d310
authored
Jun 27, 2018
by
Guilhem Saurel
Browse files
GepettoProjectsView
parent
9f4b395e
Pipeline
#884
passed with stages
in 49 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/templates/base.html
View file @
8b62d310
...
...
@@ -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 %}
...
...
rainboard/urls.py
View file @
8b62d310
...
...
@@ -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'
),
...
...
rainboard/views.py
View file @
8b62d310
...
...
@@ -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
...
...
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