From 3cfe9bf0593a88777735a068f6f69586d9b8a47e Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 27 Dec 2013 22:13:36 +0100 Subject: [PATCH] More 'pure' theme designy thingies --- frontend/templates/pure/admin/node/lookup.tpl | 87 +++++++++++++++++++ frontend/templates/pure/static/css/cvm.css | 15 +++- scss/pure/cvm.scss | 30 ++++++- 3 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 frontend/templates/pure/admin/node/lookup.tpl diff --git a/frontend/templates/pure/admin/node/lookup.tpl b/frontend/templates/pure/admin/node/lookup.tpl new file mode 100644 index 0000000..c3611b0 --- /dev/null +++ b/frontend/templates/pure/admin/node/lookup.tpl @@ -0,0 +1,87 @@ +

{%!title-admin-nodeinfo}

+ + + +
+ + + + + + + + + + + + + +
{%!list-column-nodeid}{%?id}
{%!list-column-hostname}{%?hostname}
{%!list-column-location}{%?location}
+
+ +
+

{%!header-admin-node-vpses}

+ + + + + + + + + + + + + {%if isset|vpses == true} + {%foreach vps in vpses} + + + + + + + + + {%/foreach} + {%/if} + +
{%!list-column-hostname}{%!list-column-platform}{%!list-column-disk}{%!list-column-ram}{%!list-column-template}
+ {%if vps[status] == running} + {%!list-status-running} + {%elseif vps[status] == stopped} + {%!list-status-stopped} + {%elseif vps[status] == suspended} + {%!list-status-suspended} + {%else} + {%!list-status-unknown} + {%/if} + + + {%?vps[hostname]} + + + + {%if vps[virtualization-type] == 1} + OpenVZ + {%/if}{%if vps[virtualization-type] == 2} + Xen PV + {%/if}{%if vps[virtualization-type] == 3} + Xen HVM + {%/if}{%if vps[virtualization-type] == 4} + KVM + {%/if} + + + {%?vps[diskspace]} + {%?vps[diskspace-unit]} + + {%?vps[guaranteed-ram]} + {%?vps[guaranteed-ram-unit]} + {%?vps[template]}
+
diff --git a/frontend/templates/pure/static/css/cvm.css b/frontend/templates/pure/static/css/cvm.css index 3b75474..af00669 100644 --- a/frontend/templates/pure/static/css/cvm.css +++ b/frontend/templates/pure/static/css/cvm.css @@ -11,9 +11,19 @@ .wrapper .pure-g > div.padded { padding: 8px 10px; } .wrapper .pure-menu a { - color: #353535; } + color: #515151; } .wrapper .pure-menu a i.fa { margin-right: 9px; } + .wrapper .pure-menu .pure-menu-selected a { + color: black; } + .wrapper .pure-table th.vertical { + background: #e0e0e0; + color: black; + text-align: left; + vertical-align: bottom; + border-bottom: 1px solid #cbcbcb; } + .wrapper section { + margin-bottom: 16px; } .wrapper .error { padding: 8px 10px; background-color: #FFD4D4; @@ -47,6 +57,9 @@ margin: 0px auto; } .wrapper .contents table.stretch { width: 100%; } + .wrapper .contents .clickable a { + color: inherit; + text-decoration: inherit; } .wrapper .contents .submenu { font-size: 14px; margin-bottom: 4px; } diff --git a/scss/pure/cvm.scss b/scss/pure/cvm.scss index 99ea90b..57ef7ad 100644 --- a/scss/pure/cvm.scss +++ b/scss/pure/cvm.scss @@ -24,13 +24,35 @@ { a { - color: #353535; + color: #515151; i.fa { margin-right: 9px; } } + + .pure-menu-selected a + { + color: black; + } + } + + .pure-table + { + th.vertical + { + background: #e0e0e0; + color: black; + text-align: left; + vertical-align: bottom; + border-bottom: 1px solid #cbcbcb; + } + } + + section + { + margin-bottom: 16px; } .error @@ -104,6 +126,12 @@ width: 100%; } + .clickable a + { + color: inherit; + text-decoration: inherit; + } + .submenu { font-size: 14px;