From: Ciro Scognamiglio Date: Thu, 27 Feb 2014 18:34:49 +0000 (+0100) Subject: layout and style changes X-Git-Tag: myslice-1.1~268 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=2f89f2e81c44a63d6d90746a1f3c126603280b66 layout and style changes --- 2f89f2e81c44a63d6d90746a1f3c126603280b66 diff --cc myslice/urls.py index 21dd9526,21dd9526..d4e298c0 --- a/myslice/urls.py +++ b/myslice/urls.py @@@ -65,6 -65,6 +65,7 @@@ urls = (r'^rest/(?P[^/]+)/(?P[^/]+)?/?$', 'rest.dispatch'), (r'^table/(?P[^/]+)/(?P[^/]+)?/?$', 'rest.dispatch'), (r'^datatable/(?P[^/]+)/(?P[^/]+)?/?$', 'rest.dispatch'), ++ (r'^update/(?P[^/]+)/(?P[^/]+)?/?$', 'rest.update.dispatch'), # # #(r'^view/?', include('view.urls')), diff --cc portal/homeview.py index 8bd2c27a,8bd2c27a..14487c96 --- a/portal/homeview.py +++ b/portal/homeview.py @@@ -43,7 -43,7 +43,6 @@@ class HomeView (FreeAccessView, ThemeVi manifoldresult = auth_result # let's use ManifoldResult.__repr__ env['state']="%s"%manifoldresult -- env['layout_1_or_2']="layout-unfold2.html" return render_to_response(self.template,env, context_instance=RequestContext(request)) # user was authenticated at the backend @@@ -55,6 -55,6 +54,7 @@@ if request.user.is_authenticated(): env['person'] = self.request.user ++ env['username'] = self.request.user else: env['person'] = None return render_to_response(self.template,env, context_instance=RequestContext(request)) @@@ -66,7 -66,7 +66,6 @@@ # otherwise else: env['state'] = "Your username and/or password were incorrect." -- env['layout_1_or_2']="layout-unfold2.html" return render_to_response(self.template, env, context_instance=RequestContext(request)) @@@ -86,7 -86,7 +85,6 @@@ if state: env['state'] = state elif not env['username']: env['state'] = None # use one or two columns for the layout - not logged in users will see the login prompt -- env['layout_1_or_2']="layout-unfold2.html" if not env['username'] else "layout-unfold1.html" return render_to_response(self.template, env, context_instance=RequestContext(request)) diff --cc portal/static/css/account_view.css index 859b4a93,859b4a93..cfdf4326 --- a/portal/static/css/account_view.css +++ b/portal/static/css/account_view.css @@@ -1,198 -1,198 +1,3 @@@ --/***************************************************************** --Motivated from Geni clearing house --********************/ -- --* { -- margin: 0; -- padding: 0; --} -- --fieldset, img { -- border: 0; --} -- -- -- --/************************ --* GENERAL --************************/ -- --body { -- background-color: #fff; -- /* font-family: "Segoe UI", "Lucida Grande", "Helvetica" , sans-serif; -- font-size: 12pt; */ -- min-width: 1000px; /* ADDED July 2012 */ -- margin: 0px auto; /* ADDED Aug 14, 2012 */ --} -- --ol { -- list-style-position: inside; --} -- --a { -- text-decoration: none; -- color: #0066FF; --} -- --code { -- font-family: "Consolas", "Lucida Console", "Monaco", "Courier New"; --} -- --.odd { -- background-color: #fff; --} -- --.even { -- background-color: #eee; --} -- -- --/************************ --* LAYOUT --************************/ -- --/***** Header *****/ -- --#header { -- width: 900px; /* Edited Aug 14, 2012 prev width:70%*/ -- margin: 30px auto 20px auto; --} -- --#header #logo { -- font-size: 42px; /* Edited Sept 28, 2012 prev value :36pt*/ -- font-weight: bold; --} -- --#header #logo a { -- color: #000; --} -- --#header #caption { -- margin-left: 20px; -- font-size: 13.3333px; --} -- --#header #caption a { -- color: #0066FF; --} -- -- --/***** Navigator *****/ -- --#navigator { -- border-bottom: 3px solid #222; -- width: 100%; -- margin: 0 auto; /* ADDED Aug 14, 2012 */ --} -- --#tabs { -- margin: 0 auto; -- width: 900px; /* Editied Aug 14, 2012 prev width: 70% */ --} -- --#meta { -- float: right; -- font-size: 13pt; -- margin: 5px 0; --} -- --#meta a.logout { -- color: red; --} -- --#tabs table { -- border-collapse: collapse; -- border-spacing: 0; --} -- --#tabs table tr td { -- padding: 5px 15px; -- font-size: 14pt; -- border-top: 1px solid #222; -- border-right: 2px solid #222; -- border-left: 2px solid #222; --} -- --#tabs table tr td a { -- color: #000; --} -- --#tabs table tr td.active { -- background-color: #222; -- color: #fff; --} -- --#tabs table tr td.active a { -- color: #fff; --} -- -- --/***** Main *****/ -- --#main { -- width: 100%; -- height: 400px; -- padding: 40px 0; -- background-image: url(../images/bg.png); -- background-repeat: repeat-x; --} -- --#middle { -- margin: 0 auto; -- width: 900px; /* Edited Aug 14, 2012 prev width:70% */ -- padding-bottom: 60px; --} -- -- --/***** Notifications *****/ -- --.warning2 { -- border: 1px solid red; -- margin: 20px 60px; -- padding: 10px 20px; -- color: red; -- background-color: #f2dbdb; -- text-align: center; --} --.message { -- border: 1px solid green; -- max-width : 682px; /* ADDED July 2012 */ -- margin: 20px 60px; -- padding: 10px 20px; -- color: green; -- font-weight: normal; -- background-color: #CCFFCC; -- text-align: center; --} -- --.tooltip { -- background-color: #efefef; -- color: #333; -- font-size: 10pt; -- padding: 3px; -- border: solid 1px #333; -- z-index:100; --} -- --ul.errorlist li { -- color: red; -- font-weight: normal; -- font-size: 10pt; -- background-color: #f2dbdb; -- padding: 3px; -- list-style-position: inside; --} -- --#learn-about-seattle { -- /* max-width : 70%;*/ -- text-align : center; -- background-color : #ded; -- border : 1px solid #0a0; -- padding : 1em; -- margin-top : 1em; -- margin-bottom : 1em; -- font-size : 1.3em; --} @@@ -208,12 -208,12 +13,6 @@@ tr.border_bottom td {border-bottom:1pt * STYLE FOR PERSONAL DETAILS TABLE *******************************/ --h1 { -- font-size: 1.8em; -- border-bottom: 1px solid #bbb; -- width: 70%; -- min-width: 688px; --} #info { background-color : #839E99; diff --cc portal/static/css/onelab.css index 160cac20,160cac20..8147e1c9 --- a/portal/static/css/onelab.css +++ b/portal/static/css/onelab.css @@@ -1,12 -1,12 +1,3 @@@ --/* @override unfold/static/css/plugin.css */ -- --/*-------------------------------- MARKO'S STYLES -----*/ -- -- -- -- --/*** NEW CSS STYLES FOR ONLEAB ***/ -- body { background-color:white; color:black; @@@ -19,17 -19,17 +10,35 @@@ a, a:active, a:focus h1 { border-bottom:1px solid #DDDDDD; -- padding:0 0 15px 0; ++ padding:0 0 5px 0; margin:0 0 15px 0; ++ font-size:18pt; } h1 img { -- vertical-align:top; ++ vertical-align:middle; ++ margin-bottom:4px; ++} ++h2 { ++ font-size:14pt; ++ color:#333333; ++} ++h3 { ++ font-size:13pt; ++ color:#201E62; } div.wrapper { width:980px; margin:0 auto; position:relative; } ++div.container { ++ width:980px; ++ margin:25px auto; ++} ++div.wide { ++ margin:25px auto; ++ padding:0 25px; ++} span.label { font-size:11pt; @@@ -48,7 -48,7 +57,7 @@@ } /* HEADER */ div#header { -- height:85px; ++ height:100px; background-color:white; } @@@ -121,7 -121,7 +130,7 @@@ div#navigation li:last-child /* HOME DASHBOARD */ div#home-dashboard { color:black; -- margin:25px auto; ++ margin:0 auto 25px auto; } div#home-dashboard table { margin:25px; @@@ -214,6 -214,6 +223,7 @@@ div#home-dashboard div#home-slice-list /* NAV TABS */ .nav.nav-tabs { ++ margin-bottom:25px; } .nav.nav-tabs li.active a { @@@ -259,7 -259,7 +269,6 @@@ table.table td /* INSTITUTION */ div#institution { color:black; -- margin:25px auto; } .form-hint { font-size:11pt; @@@ -267,11 -267,11 +276,7 @@@ color:gray; } --/* SLICE REQUEST */ --div#slice-request { -- color:black; -- margin:25px auto; --} ++ .form-hint { font-size:11pt; font-style:italic; @@@ -283,7 -283,7 +288,6 @@@ /* TICKET REQUEST */ div#ticket-request { color:black; -- margin:25px auto; } .form-hint { font-size:11pt; @@@ -296,25 -296,25 +300,24 @@@ div#ticket-request p /* SLICE VIEW */ div#slice-view { -- width:100%; -- margin:25px auto; ++ margin:0; } --div#slice-view div.list-group-item { ++div.list-group-item { border:0; background-color:white; font-weight:bold; padding-left:0; } --div#slice-view a.list-group-item { ++a.list-group-item { border:0; background-color:white; padding:3px 0 3px 10px; border-left:2pt white solid; } --div#slice-view a.list-group-item.active, div#slice-view a.list-group-item:hover { ++a.list-group-item.active, a.list-group-item:hover { border-left:2pt blue solid; } --div#slice-view a.list-group-item p.list-group-item-text { ++a.list-group-item p.list-group-item-text { font-size:9pt; font-style:italic; } @@@ -344,7 -344,7 +347,6 @@@ font-size:14px; color:black; padding:0; -- margin-top:10px; } .slice-sections li.active a, .slice-pending li.active a { color:#201E62; @@@ -378,18 -378,18 +380,10 @@@ } .slice-pending button { font-size:9pt; -- margin:8px 0 0 0; ++ margin:-2px 0 0 0; padding:3px 5px; } .slice-pending button.apply { } .slice-pending button.clear { } -- --/* */ -- --/* TESTBED LIST */ --div#testbed-list { -- margin:25px auto; --} -- diff --cc portal/static/js/myslice-ui.js index b6b7ca53,b6b7ca53..04199868 --- a/portal/static/js/myslice-ui.js +++ b/portal/static/js/myslice-ui.js @@@ -34,8 -34,8 +34,8 @@@ $(document).ready(function() }); }); -- -- oTable.load("/table/resource/", {'columns' : ['hostname','country','type'], 'filters' : { 'country' : 'France' } }, function(data) { ++ //{'columns' : ['hostname','country','type'], 'filters' : { 'country' : 'France' } } ++ oTable.load("/table/resource/", {'columns' : ['hostname','country','type'] }, function(data) { $(this).dataTable( { "sScrollY": window.innerHeight - 275, "sDom": "frtiS", diff --cc portal/supportview.py index 11d74766,11d74766..bbb5b495 --- a/portal/supportview.py +++ b/portal/supportview.py @@@ -17,19 -17,19 +17,15 @@@ from theme import ThemeVie class SupportView (FreeAccessView, ThemeView): template_name = 'supportview.html' -- # expose this so we can mention the backend URL on the welcome page -- def default_env (self): -- return { -- 'MANIFOLD_URL':ConfigEngine().manifold_url(), -- } ++ def post (self,request): -- env = self.default_env() ++ env = {} env['theme'] = self.theme return render_to_response(self.template, env, context_instance=RequestContext(request)) def get (self, request, state=None): -- env = self.default_env() ++ env = {} if request.user.is_authenticated(): env['person'] = self.request.user @@@ -40,12 -40,12 +36,10 @@@ env['username']=the_user(request) -- env['topmenu_items'] = topmenu_items(None, request) ++ if state: env['state'] = state elif not env['username']: env['state'] = None # use one or two columns for the layout - not logged in users will see the login prompt -- env['layout_1_or_2']="layout-unfold2.html" if not env['username'] else "layout-unfold1.html" -- -- ++ return render_to_response(self.template, env, context_instance=RequestContext(request)) diff --cc portal/templates/about.html index 375946cb,375946cb..bddeb7e5 --- a/portal/templates/about.html +++ b/portal/templates/about.html @@@ -1,10 -1,10 +1,41 @@@ --{% extends "layout-unfold1.html" %} ++{% extends "layout.html" %} --{% block unfold_main %} --
++{% block content %} ++
++

About MySlice About

--

This portal is powered by MySlice

--More info ++
++

A ready-made and easily customisable user interface for your testbed.

++ ++

++ MySlice is an ambitious project aiming to support researchers throughout the lifecycle of experiments that can run on a variety ++ of testbeds spanning different administrative domains and networking technologies. Its basic principle is to bring together ++ available resources with useful information (characteristics, performance, network measurements). ++

++

++ MySlice inititiave started in Janury 2011 by offering annotation services for the first ederated experimental resources. Today, ++ MySlice has taken a big step toward becoming a tand-alone web framework, which will present all available resources from testbeds ++ across the world, interconnected through the Slice-based Facility Architecture (SFA) and annotated by the TopHat measurement system. ++

++

++ Our framework is built with standard programming tools (php and javascript for the front-end and python for the back-end) ++ and has a modular structure based on the concept of plugins for implementing different core functionalities (query editing, ++ data display, and resource allocation). ++

++

++ The goal is to enable developers with expertise on different testbed technologies and different experimental ++ practices to work in parallel for optimizing the tools presented to the users allowing them for a wide range of choices ++ according to their own requirements. Opening in this way the development of web-based user tools for experimentation and ++ sharing effort and information can increase significantly the chances for the achievement of our challenging objective. ++

++

++ You can access the code at git.myslice.info. If you need write access to the git repository you need first to send ++ your public key to support@myslice.info. ++

++

++ Go to the MySlice web site or the OneLab public web site ++

++
{% endblock %} diff --cc portal/templates/account-view.html index d3f724e7,d3f724e7..228ee558 --- a/portal/templates/account-view.html +++ b/portal/templates/account-view.html @@@ -1,5 -1,5 +1,5 @@@ --{% extends "layout-unfold1.html" %} --{% block unfold_main %} ++{% extends "layout.html" %} ++{% block content %} {% if messages %} @@@ -10,29 -10,29 +10,32 @@@ {% endif %} --
++
++

User Account

++
++ ++
--
--

--
--
--
++ ++ --
--
-- ++ {%endif%} --
diff --cc portal/templates/contact.html index 9f2e30ee,9f2e30ee..56609126 --- a/portal/templates/contact.html +++ b/portal/templates/contact.html @@@ -1,21 -1,21 +1,21 @@@ --{% extends "layout-unfold1.html" %} ++{% extends "layout.html" %} {% block head %} {{ wizard.form.media }} {% endblock %} --{% block unfold_main %} -- -- --
--

Open a Ticket OneLab Support

-- --

++{% block content %} ++

++

Open a Ticket OneLab Support

++
++
++

If you have any diffculties using the portal, please contact us by filling this form below.
-- You can also e-mail us directly or consult to our documentation --

++ You can also e-mail us directly or consult to our documentation ++

++
--
++
{% csrf_token %}
{% for field in form %} diff --cc portal/templates/contact_sent.html index 62a2ab98,62a2ab98..c1d0d7d1 --- a/portal/templates/contact_sent.html +++ b/portal/templates/contact_sent.html @@@ -1,9 -1,9 +1,14 @@@ --{% extends "layout-unfold1.html" %} -- --{% block unfold_main %} -- --

Query Received !

-- --We will study your problem and get back to you as soon as possible. ++{% extends "layout.html" %} ++ ++{% block content %} ++
++

Open a Ticket OneLab Support

++
++
++

Query Received !

++

++ We will study your problem and get back to you as soon as possible. ++

++
{% endblock %} diff --cc portal/templates/documentationview.html index 2ecfdb78,2ecfdb78..5c838d0a --- a/portal/templates/documentationview.html +++ b/portal/templates/documentationview.html @@@ -1,13 -1,13 +1,10 @@@ --{% extends "layout-unfold1.html" %} -- --{% block head %} --{{ wizard.form.media }} --{% endblock %} -- --{% block unfold_main %} -- --

OneLab Portal Documentation

++{% extends "layout.html" %} ++{% block content %} ++
++

Open a Ticket OneLab Portal Documentation

++
++

Portal Components

Myslice (Web Frontend)

@@@ -32,6 -32,6 +29,6 @@@ Manifold is the backend that is runnin

FAQ

Users

Managers

-- ++
{% endblock %} diff --cc portal/templates/experimentview.html index 0aebd03e,0aebd03e..1c7ba2a2 --- a/portal/templates/experimentview.html +++ b/portal/templates/experimentview.html @@@ -1,13 -1,13 +1,11 @@@ --{% extends "layout-unfold1.html" %} ++{% extends "layout.html" %} --{% block head %} --{{ wizard.form.media }} --{% endblock %} -- --{% block unfold_main %} ++{% block content %} -- --

Experiment Tools

++
++

Experiment Tools Experiment Tools

++
++

Secure Shell (SSH)

@@@ -31,5 -31,5 +29,5 @@@ OMF was originally developed for the OR

More Info: http://mytestbed.net/projects/omf

-- ++
{% endblock %} diff --cc portal/templates/home-view.html index 4a44ce1f,4a44ce1f..c88902d2 --- a/portal/templates/home-view.html +++ b/portal/templates/home-view.html @@@ -1,6 -1,6 +1,6 @@@ --{% extends "layout-unfold1.html" %} ++{% extends "layout.html" %} --{% block unfold_main %} ++{% block content %}
--{% endblock unfold_main %} ++{% endblock %} diff --cc portal/templates/institution.html index abde7441,75b4758f..575a1f0f --- a/portal/templates/institution.html +++ b/portal/templates/institution.html @@@ -1,16 -1,15 +1,16 @@@ -{% extends "layout-unfold1.html" %} +{% extends "layout.html" %} -{% block unfold_main %} -
+{% block content %} +
+

Affiliation to an Institution

+
+
-

Affiliation to an Institution

-
Loading Authority