From: Loic Baron Date: Wed, 2 Apr 2014 10:42:43 +0000 (+0200) Subject: Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab X-Git-Tag: myslice-1.1~159 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9cbecc70e8916a0574e32088a15617c33c03bf9d;hp=f67d901951fa3b3dfae6a2692156dfa7ab67c496;p=unfold.git Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab Conflicts: portal/templates/base.html --- diff --git a/auth/manifoldbackend.py b/auth/manifoldbackend.py index eb87ab87..afb87821 100644 --- a/auth/manifoldbackend.py +++ b/auth/manifoldbackend.py @@ -61,9 +61,13 @@ class ManifoldBackend: except User.DoesNotExist: # Create a user in Django's local database user = User.objects.create_user(username, username, 'passworddoesntmatter') - user.first_name = "DUMMY_FIRST_NAME" #person['first_name'] - user.last_name = "DUMMY LAST NAME" # person['last_name'] user.email = person['email'] + + if 'firstname' in person: + user.first_name = person['firstname'] + if 'lastname' in person: + user.last_name = person['lastname'] + return user # Required for your backend to work properly - unchanged in most scenarios diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js index 6db222d4..8a740b2a 100644 --- a/plugins/googlemap/static/js/googlemap.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -94,6 +94,8 @@ //create empty LatLngBounds object in order to automatically center the map on the displayed objects this.bounds = new google.maps.LatLngBounds(); var center = new google.maps.LatLng(this.options.latitude, this.options.longitude); + + console.log("GoogleMap zoom = "+this.options.zoom); var myOptions = { zoom: this.options.zoom, center: center, diff --git a/plugins/querytable/static/js/querytable.js b/plugins/querytable/static/js/querytable.js index 375aa8f3..c2f0d55e 100644 --- a/plugins/querytable/static/js/querytable.js +++ b/plugins/querytable/static/js/querytable.js @@ -148,9 +148,6 @@ }); $(".dataTables_filter").append("
"); $(".dataTables_filter input").css("width","100%"); - $(".columns_selector").append("columns"); - $(".columns_selector").css("float","right"); - $(".columns_selector").css("width","inherit"); }, // initialize_table /** diff --git a/portal/sliceresourceview.py b/portal/sliceresourceview.py index 254e2fde..68837659 100644 --- a/portal/sliceresourceview.py +++ b/portal/sliceresourceview.py @@ -143,7 +143,7 @@ class SliceResourceView (LoginRequiredView, ThemeView): # center on Paris latitude = 49., longitude = 9, - zoom = 4, + zoom = 8, ) # -------------------------------------------------------------------------- diff --git a/portal/templates/_widget-topmenu.html b/portal/templates/_widget-topmenu.html index 4ed429ad..cf810295 100644 --- a/portal/templates/_widget-topmenu.html +++ b/portal/templates/_widget-topmenu.html @@ -28,13 +28,8 @@ diff --git a/portal/templates/base.html b/portal/templates/base.html index e739316b..6bb7e232 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -1,7 +1,7 @@ {% load portal_filters %} {# This is required by insert_above #}{% insert_handler %} -OneLab Portal - {{ section }} +{{theme}} portal - {{ section }} {# This is where insert_str will end up #}{% media_container prelude %} @@ -31,6 +31,39 @@ {% insert_str prelude "css/topmenu.css" %} {% insert_str prelude "js/logout.js" %} + + {% block container %} diff --git a/portal/templates/fed4fire/fed4fire_home-view.html b/portal/templates/fed4fire/fed4fire_home-view.html deleted file mode 100644 index f7da2da1..00000000 --- a/portal/templates/fed4fire/fed4fire_home-view.html +++ /dev/null @@ -1,121 +0,0 @@ -{% extends "layout.html" %} - -{% block content %} -
- -
- - - - - - - - - - - - - {% if person %} - - - - -
ACCOUNTSLICESSUPPORT
- -
- {% if person.last_name %} - {{person.first_name}} {{person.last_name}}
- {% endif %} - Email: {{person.email}} -
- {% else %} -
- {% include '_widget-login-user.html' %} - {% endif %} - - {% if person %} - -
Loading Slices
- {% else %} - {% endif %} -
- - -
-
-
- - - - - - - - - - - - - {% if person %} - - - - -
INSTITUTIONSLICESREQUESTS
- - {% else %} - - {% include '_widget-login-manager.html' %} - {% endif %} - - {% if person %} - - {% endif %} - - {% if person %} - - {% endif %} -
-
-
- -{% endblock %} diff --git a/portal/templates/fed4fire/fed4fire_widget-topmenu.html b/portal/templates/fed4fire/fed4fire_widget-topmenu.html index 865a2bc5..74edfdc9 100644 --- a/portal/templates/fed4fire/fed4fire_widget-topmenu.html +++ b/portal/templates/fed4fire/fed4fire_widget-topmenu.html @@ -27,7 +27,7 @@