-from django.views.generic.base import TemplateView
-
from manifold.core.query import Query
from unfold.page import Page
-from myslice.viewutils import topmenu_items, the_user
+from unfold.loginrequired import FreeAccessView
+from ui.topmenu import topmenu_items, the_user
from plugins.hazelnut import Hazelnut
# View for 1 platform and its details
-class PlatformView(TemplateView):
+class PlatformView(FreeAccessView):
template_name = "platform.html"
def get_context_data(self, **kwargs):
page = Page(self.request)
-
+ page.add_js_files ( [ "js/common.functions.js" ] )
for key, value in kwargs.iteritems():
print "%s = %s" % (key, value)
if key == "platformname":
query_all = network_query,
checkboxes = False,
datatables_options = {
- # for now we turn off sorting on the checkboxes columns this way
- # this of course should be automatic in hazelnut
- 'aoColumns' : [None, None, None, None, {'bSortable': False}],
'iDisplayLength' : 25,
'bLengthChange' : True,
},