diff --git a/computes/templatetags/__init__.py b/computes/templatetags/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/computes/templatetags/tags_activebtn.py b/computes/templatetags/tags_activebtn.py deleted file mode 100644 index 70360c8..0000000 --- a/computes/templatetags/tags_activebtn.py +++ /dev/null @@ -1,11 +0,0 @@ -from django import template -import re - -register = template.Library() - - -@register.simple_tag -def class_activebtn(request, pattern): - if re.search(pattern, request.path): - return 'btn-primary' - return '' \ No newline at end of file diff --git a/static/css/webvirtcloud.css b/static/css/webvirtcloud.css new file mode 100644 index 0000000..2c90ad5 --- /dev/null +++ b/static/css/webvirtcloud.css @@ -0,0 +1,65 @@ +/*! + * WebVirtCloud (http://github.com/retspen/webvirtcloud) + * Code licensed under the Apache License v2.0. + * For details, see http://www.apache.org/licenses/LICENSE-2.0. + */ + +/* Global Styles */ + +body { + background-color: #FFF; +} + +.side-nav { + background-color: #FFF; + font-size: 1.2em; +} + +.side-nav li a:hover, +.side-nav li a:focus { + color: #FFF; + background-color: #5CD062 !important; +} + +.navbar-inverse { + background-color: #6F5499; + border-color: #6F5499; +} + +.navbar-inverse .navbar-brand { + color: #FFF; + font-size: 2em; +} + +.navbar-inverse .navbar-nav>li>a { + color: #767676; +} + +.navbar-inverse .navbar-nav>li>a:focus, +.navbar-inverse .navbar-nav>li>a:hover { + color: #FFF; + background-color: #5CD062; +} + +.navbar-inverse .navbar-nav>.active>a, +.navbar-inverse .navbar-nav>.active>a:focus, +.navbar-inverse .navbar-nav>.active>a:hover { + color: #FFF; + background-color: #5CD062; +} + +.top-nav>li>a { + color: #FFF6F6; +} + +.top-nav>li>a:hover, +.top-nav>li>a:focus, +.top-nav>.open>a, +.top-nav>.open>a:hover, +.top-nav>.open>a:focus { + background-color: #5CD062; +} + +.page-header { + margin: 0 0 20px; +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 2af1dcf..16633c8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,9 +15,12 @@ - + + + + diff --git a/templates/compute_block_link.html b/templates/compute_block_link.html deleted file mode 100644 index ffbaca2..0000000 --- a/templates/compute_block_link.html +++ /dev/null @@ -1,9 +0,0 @@ -{% load i18n %} -{% load tags_activebtn %} -{% trans "Overview" %} -{% trans "Storages" %} -{% trans "Networks" %} -{% trans "Interfaces" %} -{% trans "Secrets" %} - -
{% trans "Type" %}: {{ iface.type }}
- -{% trans "MAC" %}: {{ iface.mac }}
+{% trans "Type:" %}
+{% trans "MAC:" %}
+{{ iface.type }}
+{{ iface.mac }}
+