Skip to content

Commit

Permalink
Remove Arches and Sigkeys items from menu
Browse files Browse the repository at this point in the history
This task is to remove "Arches" and "Sigkeys" items from
main menu.

At the same time, remove arch_list and sigkey_list files
, and update the view&&urls files.

JIRA: PDC-1091
  • Loading branch information
bliuredhat committed Nov 4, 2015
1 parent e34b91b commit 11f2776
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 78 deletions.
25 changes: 0 additions & 25 deletions pdc/apps/common/templates/arch_list.html

This file was deleted.

29 changes: 0 additions & 29 deletions pdc/apps/common/templates/sigkey_list.html

This file was deleted.

18 changes: 0 additions & 18 deletions pdc/apps/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
from django.views import defaults
from django.http import HttpResponse

from kobo.django.views.generic import ListView

from rest_framework import viewsets, mixins, status

from .models import Arch, SigKey, Label
Expand All @@ -20,22 +18,6 @@
from . import handlers


class ArchListView(ListView):
model = Arch
queryset = Arch.objects.all().order_by('name')
allow_empty = True
template_name = "arch_list.html"
context_object_name = "arch_list"


class SigKeyListView(ListView):
model = SigKey
queryset = SigKey.objects.all().order_by('id')
allow_empty = True
template_name = "sigkey_list.html"
context_object_name = "sigkey_list"


class LabelViewSet(pdc_viewsets.PDCModelViewSet):
"""
##Overview##
Expand Down
2 changes: 0 additions & 2 deletions pdc/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

MenuItem("Releases", "release/index"),
MenuItem("Composes", "compose/index"),
MenuItem("Arches", "arch/index"),
MenuItem("SigKeys", "sigkey/index"),
MenuItem("API", "api-root"),
)

Expand Down
4 changes: 0 additions & 4 deletions pdc/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from pdc.apps.release.views import ProductVersionListView, ProductVersionDetailView
from pdc.apps.compose.views import ComposeListView, ComposeDetailView
from pdc.apps.compose.views import ComposeRPMListView, RPMOverrideFormView, ComposeImageListView
from pdc.apps.common.views import ArchListView, SigKeyListView
from pdc.apps.changeset.views import ChangesetListView, ChangesetDetailView
from pdc.apps.common import views as common_views
from pdc.apps.auth import views as auth_views
Expand Down Expand Up @@ -67,9 +66,6 @@
ProductVersionDetailView.as_view(),
name="product_version/detail"),

url(r"^arch$", ArchListView.as_view(), name="arch/index"),
url(r"^sigkey$", SigKeyListView.as_view(), name="sigkey/index"),

url(r"^%s%s/" % (settings.REST_API_URL, settings.REST_API_VERSION), include(router.urls)),

url(r'^changes/$', ChangesetListView.as_view(), name='changeset/list'),
Expand Down

0 comments on commit 11f2776

Please sign in to comment.