-from django.views.generic.base import TemplateView
-
from manifold.core.query import Query
from unfold.page import Page
+from unfold.loginrequired import FreeAccessView
from ui.topmenu import topmenu_items, the_user
from plugins.googlemap import GoogleMap
from plugins.hazelnut import Hazelnut
from plugins.lists.simplelist import SimpleList
-from plugins.slicestat import Slicestat
+from plugins.slicestat import SliceStat
# View for 1 platform and its details
-class ResourceView(TemplateView):
+class ResourceView(FreeAccessView):
template_name = "resource.html"
def get_context_data(self, **kwargs):
# query = resource_query,
# )
- resource_stats = Slicestat(
+ resource_stats = SliceStat(
title = None,
page = page,
stats = 'node',