Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5df31d05
authored
May 13, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: min-height for all boxes on index
parent
9bc7790d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
25 deletions
+35
-25
circle/dashboard/static/dashboard/dashboard.css
+2
-1
circle/dashboard/templates/dashboard/index-groups.html
+6
-3
circle/dashboard/templates/dashboard/index-nodes.html
+8
-5
circle/dashboard/templates/dashboard/index-templates.html
+19
-16
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
5df31d05
...
@@ -608,7 +608,8 @@ footer a, footer a:hover, footer a:visited {
...
@@ -608,7 +608,8 @@ footer a, footer a:hover, footer a:visited {
margin
:
0
;
margin
:
0
;
}
}
#dashboard-vm-list
{
#dashboard-vm-list
,
#dashboard-node-list
,
#dashboard-group-list
,
#dashboard-template-list
{
min-height
:
204px
;
min-height
:
204px
;
}
}
...
...
circle/dashboard/templates/dashboard/index-groups.html
View file @
5df31d05
...
@@ -7,11 +7,14 @@
...
@@ -7,11 +7,14 @@
<h3
class=
"no-margin"
><i
class=
"icon-group"
></i>
{% trans "Groups" %}
</h3>
<h3
class=
"no-margin"
><i
class=
"icon-group"
></i>
{% trans "Groups" %}
</h3>
</div>
</div>
<div
class=
"list-group"
id=
"vm-list-view"
>
<div
class=
"list-group"
id=
"vm-list-view"
>
{% for i in groups %}
<div
id=
"dashboard-group-list"
>
<a
href=
"{% url "
dashboard
.
views
.
group-detail
"
pk=
i.pk
%}"
class=
"list-group-item real-link"
>
{% for i in groups %}
<a
href=
"{% url "
dashboard
.
views
.
group-detail
"
pk=
i.pk
%}"
class=
"list-group-item real-link
{% if forloop.last and groups|length < 5 %} list-group-item-last{% endif %}"
>
<i
class=
"icon-group"
></i>
{{ i.name }}
<i
class=
"icon-group"
></i>
{{ i.name }}
</a>
</a>
{% endfor %}
{% endfor %}
</div>
<div
href=
"#"
class=
"list-group-item list-group-footer text-right"
>
<div
href=
"#"
class=
"list-group-item list-group-footer text-right"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
...
...
circle/dashboard/templates/dashboard/index-nodes.html
View file @
5df31d05
...
@@ -14,11 +14,14 @@
...
@@ -14,11 +14,14 @@
</h3>
</h3>
</div
>
</div
>
<div
class=
"list-group"
id=
"node-list-view"
>
<div
class=
"list-group"
id=
"node-list-view"
>
{% for i in nodes %}
<div
id=
"dashboard-node-list"
>
<a
href=
"{% url "
dashboard
.
views
.
node-detail
"
pk=
i.pk
%}"
class=
"list-group-item"
>
{% for i in nodes %}
<i
class=
"icon-{% if i.enabled == True %}play-sign{% else %}pause{% endif %}"
></i>
{{ i.name }}
<a
href=
"{% url "
dashboard
.
views
.
node-detail
"
pk=
i.pk
%}"
class=
"list-group-item
</a>
{% if forloop.last and nodes|length < 5 %} list-group-item-last{% endif %}"
>
{% endfor %}
<i
class=
"icon-{% if i.enabled == True %}play-sign{% else %}pause{% endif %}"
></i>
{{ i.name }}
</a>
{% endfor %}
</div>
<div
href=
"#"
class=
"list-group-item list-group-footer"
>
<div
href=
"#"
class=
"list-group-item list-group-footer"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
<div
class=
"col-sm-6 col-xs-6 input-group input-group-sm"
>
...
...
circle/dashboard/templates/dashboard/index-templates.html
View file @
5df31d05
...
@@ -8,22 +8,25 @@
...
@@ -8,22 +8,25 @@
</h3>
</h3>
</div>
</div>
<div
class=
"list-group"
id=
"dashboard-template-list"
>
<div
class=
"list-group"
id=
"dashboard-template-list"
>
{% for t in templates %}
<div
id=
"dashboard-template-list"
>
<a
href=
"{% url "
dashboard
.
views
.
template-detail
"
pk=
t.pk
%}"
class=
"list-group-item"
>
{% for t in templates %}
<span
class=
"index-template-list-name"
>
<a
href=
"{% url "
dashboard
.
views
.
template-detail
"
pk=
t.pk
%}"
class=
"list-group-item
<i
class=
"icon-{{ t.os_type }}"
></i>
{{ t.name }}
{% if forloop.last and nodes|length < 5 %} list-group-item-last{% endif %}"
>
</span>
<span
class=
"index-template-list-name"
>
<small
class=
"text-muted index-template-list-system"
>
{{ t.system }}
</small>
<i
class=
"icon-{{ t.os_type }}"
></i>
{{ t.name }}
<div
class=
"pull-right vm-create"
data-template=
"{{ t.pk }}"
><i
title=
"{% trans "
Start
vm
instance
"
%}"
class=
"icon-play"
></i></div>
</span>
<div
class=
"clearfix"
></div>
<small
class=
"text-muted index-template-list-system"
>
{{ t.system }}
</small>
</a>
<div
class=
"pull-right vm-create"
data-template=
"{{ t.pk }}"
><i
title=
"{% trans "
Start
vm
instance
"
%}"
class=
"icon-play"
></i></div>
{% empty %}
<div
class=
"clearfix"
></div>
<div
class=
"alert alert-warning"
style=
"margin: 10px;"
>
</a>
<p>
{% empty %}
{% trans "You don't have any templates, however you can still start virtual machines and even save them as new templates!" %}
<div
class=
"alert alert-warning"
style=
"margin: 10px;"
>
</p>
<p>
</div>
{% trans "You don't have any templates, however you can still start virtual machines and even save them as new templates!" %}
{% endfor %}
</p>
</div>
{% endfor %}
</div>
<div
href=
"#"
class=
"list-group-item list-group-footer text-right"
>
<div
href=
"#"
class=
"list-group-item list-group-footer text-right"
>
<p>
<p>
<a
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
class=
"btn btn-primary btn-xs"
>
<a
href=
"{% url "
dashboard
.
views
.
template-list
"
%}"
class=
"btn btn-primary btn-xs"
>
...
...
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