Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
d3957519
Commit
d3957519
authored
Nov 14, 2013
by
Olga Brani
Committed by
Christos Stavrakakis
Nov 15, 2013
Browse files
helpdesk: Fix css and html for IP queries
parent
a57e3e04
Changes
4
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/helpdesk/static/css/extra.css
View file @
d3957519
...
...
@@ -192,3 +192,12 @@ h3.info { cursor:default; color:#2956B2; text-align:center; font-size:16px
.vm-action
form
{
margin-bottom
:
0px
;
}
.vm-action.inactive
form
input
{
background-color
:
#2956B2
;
color
:
#ffffff
;}
.vm-action
form
input
{
background-color
:
#F81A23
;
color
:
#ffffff
;}
.table-sorted
th
:hover
{
color
:
#2956B2
;
cursor
:
pointer
;
}
.table-sorted
th
span
{
padding-right
:
20px
;
}
.table-sorted
th
:hover
span
{
background
:
url(../img/arrow-down.png)
no-repeat
right
center
;
}
.table-sorted
th
.headerSortDown
span
,
.table-sorted
th
.headerSortDown
:hover
span
{
background
:
url(../img/arrow-up.png)
no-repeat
right
center
;
}
.table-sorted
th
.headerSortUp
span
,
.table-sorted
th
.headerSortUp
:hover
span
{
background
:
url(../img/arrow-down.png)
no-repeat
right
center
;
}
snf-cyclades-app/synnefo/helpdesk/static/js/common.js
View file @
d3957519
...
...
@@ -2,7 +2,14 @@ $(document).ready(function(){ $("input").focus(); })
$
(
document
).
ready
(
function
(){
// table sorting
$
(
'
.table-sorted
'
).
tablesorter
({
sortList
:
[[
2
,
0
]],
});
// fix sub nav on scroll
var
$win
=
$
(
window
)
,
$nav
=
$
(
'
.subnav
'
)
...
...
snf-cyclades-app/synnefo/helpdesk/templates/helpdesk/base.html
View file @
d3957519
...
...
@@ -19,7 +19,7 @@
</div>
<div
class=
"span5"
>
<form
class=
"form-horizontal account-form"
method=
"get"
action=
"."
>
<input
type=
"text"
class=
"input-medium search-query"
name=
"account"
autocomplete=
"off"
>
<input
type=
"text"
class=
"input-medium search-query"
name=
"account"
>
<button
type=
"submit"
class=
"btn"
>
View account
</button>
</form>
</div>
...
...
@@ -41,7 +41,7 @@
</div>
<script
src=
"{{ MEDIA_URL }}helpdesk/js/jquery.js"
></script>
<script
src=
"{{ MEDIA_URL }}helpdesk/js/bootstrap.js"
></script>
<script
src=
"{{ MEDIA_URL }}helpdesk/js/
common
.js"
></script>
<script
src=
"{{ MEDIA_URL }}helpdesk/js/
jquery.tablesorter
.js"
></script>
<script
src=
"{{ MEDIA_URL }}helpdesk/js/common.js"
></script>
</body>
</html>
snf-cyclades-app/synnefo/helpdesk/templates/helpdesk/ip.html
View file @
d3957519
{% extends "helpdesk/base.html" %}
{% block extraheader %}
<small>
/ {{
account_name
}}
</small>
<small>
/ {{
search_query
}}
</small>
{% endblock %}
{% block content %}
{% if ip_exists %}
<table
border
1
>
<tr>
IP Address {{ search_query }}
</tr>
<h3>
IP Address {{ search_query }}
</h3>
<table
class=
"table table-striped table-sorted table-ip"
>
<thead>
<tr>
<t
d
>
Server
</t
d
>
<t
d
>
Network
</
td
>
<t
d
>
Allocated
</
td
>
<t
d
>
Released
</
td
>
<t
d
>
Account
</
td
>
<t
h><span
>
Server
</span>
</t
h
>
<t
h><span
>
Network
</
span></th
>
<t
h><span
>
Allocated
</
span></th
>
<t
h><span
>
Released
</
span></th
>
<t
h><span
>
Account
</
span></th
>
</tr>
</thead>
<tbody>
{% for ip in ips %}
<tr>
<td>
...
...
@@ -39,9 +39,10 @@
<td><a
href=
"{{ ip.account }}"
>
{{ ip.account }}
</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>
IP Address {{ search_query }} has never been allocated to any server.
</p>
<p>
IP Address
<em>
{{ search_query }}
</em>
has never been allocated to any server.
</p>
{% endif %}
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment