From: myslice Date: Thu, 13 Feb 2014 13:25:05 +0000 (+0000) Subject: univbris am plugin-first try,dirty code X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=0944254ce74e8287d48626af7b0e5314f460c7bc univbris am plugin-first try,dirty code --- diff --git a/plugins/lists/static/js/with-datatables.js b/plugins/lists/static/js/with-datatables.js index 75e4cc2b..98d3cd75 100644 --- a/plugins/lists/static/js/with-datatables.js +++ b/plugins/lists/static/js/with-datatables.js @@ -1,2 +1,3 @@ /* elements with class 'with-datatables' are set to use datatables */ $(document).ready(function() {$('.with-datatables').each(function() { $(this).dataTable() } ) } ) +$('.with-datatables').hide() diff --git a/portal/platformsview.py b/portal/platformsview.py index 7e7d53a4..d5c95b44 100644 --- a/portal/platformsview.py +++ b/portal/platformsview.py @@ -5,6 +5,7 @@ from unfold.loginrequired import FreeAccessView from ui.topmenu import topmenu_items_live, the_user from plugins.querytable import QueryTable +#from plugins.univbrisfoam import UnivbrisFoam # View for platforms class PlatformsView(FreeAccessView): diff --git a/portal/urls.py b/portal/urls.py index 8dc968ff..67183f29 100644 --- a/portal/urls.py +++ b/portal/urls.py @@ -34,6 +34,7 @@ from portal.registrationview import RegistrationView from portal.joinview import JoinView from portal.sliceview import SliceView from portal.validationview import ValidatePendingView +from portal.univbrisview import UnivbrisView # hopefully these should move in dedicated source files too from portal.views import PresViewView, pres_view_static, pres_view_methods, pres_view_animation @@ -93,6 +94,9 @@ urlpatterns = patterns('', {'post_reset_redirect' : '/portal/password/done/'}), (r'^password/done/$', 'portal.django_passresetview.password_reset_complete'), + + url(r'^univbris/?$', UnivbrisView.as_view(), name='univbris'), + #url(r'^univbris/univbrisfv_form2?$', 'django.views.generic.simple.direct_to_template', {'template': 'path/to/about_us.html'}), # ... ) diff --git a/ui/topmenu.py b/ui/topmenu.py index b0ff707f..9a6c58ce 100644 --- a/ui/topmenu.py +++ b/ui/topmenu.py @@ -33,6 +33,7 @@ def topmenu_items_static (current, request): dropdown.append({'label':'Platforms', 'href': '/portal/platforms/'}) dropdown.append({'label':'My Account', 'href': '/portal/account/'}) dropdown.append({'label':'Contact Support', 'href': '/portal/contact/'}) + dropdown.append({'label':'UNIVBRIS info', 'href': '/portal/univbris/'}) result.append({'label': 'More', 'href':"#", 'dropdown':True, 'contents':dropdown}) else: result.append({'label':'Home', 'href': '/login'})