From: Loic Baron Date: Sat, 12 Oct 2013 11:55:21 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.onelab.eu/git/myslice X-Git-Tag: myslice-0.2-5~12 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=63aab6eb9732e6a296d2ed84c3e9b5ab8b4885bb;hp=f775a1ed9099eebfc0002ad2a3566000af599468;p=unfold.git Merge branch 'master' of ssh://git.onelab.eu/git/myslice --- diff --git a/portal/urls.py b/portal/urls.py index fa68d205..ac6c35b6 100644 --- a/portal/urls.py +++ b/portal/urls.py @@ -57,7 +57,7 @@ urlpatterns = patterns('', #url(r'^my_account/?$', MyAccountView.as_view(), name='my_account'), url(r'^account/?$', AccountView.as_view(), name='account'), url(r'^platforms/?$', PlatformsView.as_view(), name='platforms'), - url(r'^platform/(?P[\w\-.]+)/?$', PlatformView.as_view(), name='platform'), + url(r'^platform/(?P[\w\.\-]+)/?$', PlatformView.as_view(), name='platform'), url(r'^slice/?$',SliceView.as_view(),name='slice'), url(r'^slice/(?P[\w\.]+)/?$', SliceView.as_view(),name='slice'), url(r'^account/account_process/?$', account_process), diff --git a/ui/topmenu.py b/ui/topmenu.py index bcf74b1c..72904f9b 100644 --- a/ui/topmenu.py +++ b/ui/topmenu.py @@ -11,14 +11,16 @@ def topmenu_items (current,request=None): has_user=request.user.is_authenticated() result=[] if has_user: - result.append({'label':'Platforms', 'href': '/portal/platforms/'}) result.append({'label':'Dashboard', 'href': '/portal/dashboard/'}) - # This should probably go in dashboard at some point - dropdown = [] - dropdown.append({'label':'Request a slice', 'href': '/portal/slice_request/'}) - dropdown.append({'label':'My Account', 'href': '/portal/account/'}) - dropdown.append({'label':'Contact Support', 'href': '/portal/contact/'}) - result.append({'label': 'More', 'href':"#", 'dropdown':True, 'contents':dropdown}) + result.append({'label':'Request a slice', 'href': '/portal/slice_request/'}) + result.append({'label':'My Account', 'href': '/portal/account/'}) + result.append({'label':'Contact Support', 'href': '/portal/contact/'}) +# Not really useful at this point, is it ? +# This should probably go into dashboard at some point +# result.append({'label':'Platforms', 'href': '/portal/platforms/'}) +# the code for building a dropdown instead - but somehow this is broken +# dropdown = [ {'label':'..', 'href': '..'}, ...] +# result.append({'label': 'More', 'href':"#", 'dropdown':True, 'contents':dropdown}) else: result.append({'label':'Home', 'href': '/login'}) # looks like this is accessible to non-logged users