From ef0b1844f7fd6cb81770dd21f8c509ff519fa1c6 Mon Sep 17 00:00:00 2001
From: Loic Baron <loic.baron@lip6.fr>
Date: Sat, 26 Oct 2013 04:21:57 +0200
Subject: [PATCH] Fixed CSS for OneLab style

---
 portal/platformsview.py            |  2 +-
 portal/platformview.py             |  2 +-
 portal/templates/dashboard.html    |  1 -
 trash/dashboard.py                 |  2 +-
 ui/templates/widget-topmenu.html   |  2 +-
 unfold/static/css/onelab_marko.css | 33 ++++++++++++++++--------------
 6 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/portal/platformsview.py b/portal/platformsview.py
index d3c3ca00..0a1e9ad3 100644
--- a/portal/platformsview.py
+++ b/portal/platformsview.py
@@ -13,7 +13,7 @@ class PlatformsView(TemplateView):
 
     def get_context_data(self, **kwargs):
         page = Page(self.request)
-
+        page.add_js_files  ( [ "js/common.functions.js" ] )
         platform_query  = Query().get('local:platform').filter_by('disabled', '==', '0').select('platform','platform_longname','gateway_type')
         #platform_query  = Query().get('local:platform').select('platform','platform_longname','gateway_type')
         page.enqueue_query(platform_query)
diff --git a/portal/platformview.py b/portal/platformview.py
index 76699cf0..4d133e1d 100644
--- a/portal/platformview.py
+++ b/portal/platformview.py
@@ -13,7 +13,7 @@ class PlatformView(TemplateView):
 
     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":
diff --git a/portal/templates/dashboard.html b/portal/templates/dashboard.html
index 075d1d6a..56d4ab8d 100644
--- a/portal/templates/dashboard.html
+++ b/portal/templates/dashboard.html
@@ -1,7 +1,6 @@
 {% extends "layout-unfold1.html" %}
 
 {% block head %}
-<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}/css/dashboard.css" />
 {% endblock %}
 
 {% block unfold1_main %}
diff --git a/trash/dashboard.py b/trash/dashboard.py
index 08a630db..a9742267 100644
--- a/trash/dashboard.py
+++ b/trash/dashboard.py
@@ -90,7 +90,7 @@ def dashboard_view (request):
     template_env [ 'unfold2_margin' ] = related_plugin.render (request)
     
     # add our own css in the mix
-    page.add_css_files ( 'css/dashboard.css')
+    #page.add_css_files ( 'css/dashboard.css')
     
     # don't forget to run the requests
     page.expose_queries ()
diff --git a/ui/templates/widget-topmenu.html b/ui/templates/widget-topmenu.html
index b31b1330..c465a849 100644
--- a/ui/templates/widget-topmenu.html
+++ b/ui/templates/widget-topmenu.html
@@ -18,7 +18,7 @@
     <ul class="nav navbar-nav">
 	{% for d in topmenu_items %} 
 	{% if d.dropdown %}
-	<li class="dropdown">
+	<li class="other">
 	  <a class="dropdown-toggle" data-toggle="dropdown" href="{{ d.href }}">{{ d.label }}<b class="caret"></b></a>
 	  <ul class="dropdown-menu">
 	    {% for dd in d.contents %}
diff --git a/unfold/static/css/onelab_marko.css b/unfold/static/css/onelab_marko.css
index b31174ce..3ca8da7b 100644
--- a/unfold/static/css/onelab_marko.css
+++ b/unfold/static/css/onelab_marko.css
@@ -6,7 +6,6 @@
 
 /*-------------------------------- MARKO'S STYLES -----*/
 
-
 /* GENERAL */
 
 .container {
@@ -61,14 +60,14 @@ h2.well.well-lg {
 	border-radius:0;
 	border: 0;
 	font-family: Ubuntu, arial, sans-serif;
-	text-transform: ;
+	/* text-transform: ; */
 	font-weight: normal;
 	font-size: 40px;
 	/* color: #30196d; */
     color: white;
 	margin-bottom: 0px;
 	margin-top: 0;
-	padding: 30px;
+	padding: 40px;
 	opacity: 1;
 	text-align: center;
 	background-color: #30196d;
@@ -88,11 +87,11 @@ h2.well.well-lg {
 /*    background-color: #ff7394 !important; */
     background-color: #add7ff !important;
 }
-
+/*
 #complete-measurements {
     background-color: !important;
 }
-
+*/
 #complete-pending {
 /*    background-color: #add7ff !important; */
     background-color: #B8B2FF !important;
@@ -172,7 +171,7 @@ div.topmenu {
 	padding-top: 0px;
 	font-family: Ubuntu, Arial, sans-serif;
 	font-weight: bold;
-	text-transform: ;
+	/* text-transform: ; */
 	background: #fff;
 	-webkit-box-shadow: 0px 10px 10px rgba(50, 50, 50, 0.44);
 	-moz-box-shadow:    0px 10px 10px rgba(50, 50, 50, 0.44);
@@ -189,7 +188,6 @@ div.topmenu {
 	color: #572bc9 !important;
 }
 
-.navbar-nav li.active a {
 .navbar-nav li.active a {
 	background: #eee !important;
 }
@@ -210,8 +208,9 @@ button.logged-in {
 }
 
 button.logged-in:hover { 
-    background: #4af25d;
-    border: 2px solid #4af25d;
+    /* background: #4af25d; */
+    background: #ff7394;
+    border: 2px solid #ff7394;
     color: #333;
 }
 li.username {
@@ -227,7 +226,7 @@ li.username {
 
 
 ul.pagination li a {
-	background: ;
+	/* background: ; */
 	color: #572bc9;
 	font-family: Ubuntu, Arial, sans-serif;
 }
@@ -246,7 +245,8 @@ ul.pagination li.active a {
 }
 
 .btn.btn-default:hover {
-	background: #4af25d;
+	/* background: #4af25d; */
+	background: #ff7394;
 	color: #333;
 	font-family: Ubuntu, Arial, sans-serif;
 	font-weight: bold;
@@ -282,7 +282,7 @@ div.Hazelnut table.dataTable th {
     text-align: left;
     padding: 8px 12px 4px 20px;
     vertical-align:middle;
-    background: # url(../img/tablesort-header.jpg) no-repeat !important; 
+    background: url('../img/tablesort-header.jpg') no-repeat !important; 
 }
 
 div.Hazelnut table.dataTable td, div.Hazelnut table.dataTable textarea, div.Hazelnut table.dataTable input [type="text"] {
@@ -298,7 +298,7 @@ div.Hazelnut table.dataTable thead {
 
 div.Hazelnut table.dataTable tfoot { 
     background: url('../img/tablesort-header.png') repeat-x !important;
-    background-color: # !important;
+    /* background-color: # !important; */
 }
 
 
@@ -351,7 +351,6 @@ table.query-editor td {
 
 #ms-dashboard-profile {
 	background: url("../img/icon_users_color.png") top center no-repeat;
-	
 }
 
 #ms-dashboard-testbeds {
@@ -373,9 +372,13 @@ table.query-editor td {
 }
 
 .ms-dashboard-content a {
-	color: /*#572bc9*/ #ff7394 !important;
+	color: #ff7394 !important;
+	/* color: #ff0099 !important; */
 }
 
+.ms-dashboard-content a:hover {
+    color: white !important;
+}
 .ms-dashboard-caption h2 {
 	font-family: Ubuntu, Arial, sans-serif;
 	border-bottom: 0 !important;
-- 
2.47.0