Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
68b8e517
authored
Feb 14, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: template refactoring
parent
6aa6b977
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
one/templates/box/entry-vm.html
+0
-2
one/templates/box/entry.html
+1
-3
one/templates/box/summary-vm.html
+7
-1
one/templates/box/summary.html
+9
-9
No files found.
one/templates/box/entry-vm.html
View file @
68b8e517
...
...
@@ -2,8 +2,6 @@
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block summaryclass %}{% if id == vm.id %}selected-summary{% endif %} {% if vm.template.state == "NEW" %}unfinished{% endif %}{% endblock summaryclass %}
{% block summary %}
{% include "box/summary-vm.html" %}
{% endblock summary %}
...
...
one/templates/box/entry.html
View file @
68b8e517
<li
class=
"entry {% block entryclass %}{% endblock entryclass %}"
>
<div
class=
"summary {% block summaryclass %}{% endblock summaryclass %}"
>
{% block summary %}{% endblock summary %}
</div>
{% block summary %}{% endblock summary %}
<div
class=
"details"
>
<div
class=
"details-container"
>
{% block details %}{% endblock details %}
...
...
one/templates/box/summary-vm.html
View file @
68b8e517
...
...
@@ -2,10 +2,16 @@
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block nameclass %}{% if vm.state == 'ACTIVE' %}vm-on{% else %}vm-off{% endif %}{% endblock nameclass %}
{% block content %}
<div
class=
"summary {% if id == vm.id %}selected-summary{% endif %} {% if vm.template.state == "
NEW
"
%}
unfinished
{%
endif
%}"
>
{{ block.super }}
</div>
{% endblock content %}
{% block name %}
<div
class=
"name {% if i.state == 'ACTIVE' %}vm-on{% else %}vm-off{% endif %}"
>
{{vm.name|truncatechars:20}}
</div>
{% endblock %}
{% block status %}
...
...
one/templates/box/summary.html
View file @
68b8e517
<div
class=
"name {% block nameclass %}{% endblock %}"
>
{% block content %}
{% block name %}{% endblock %}
</div
>
<div
class=
"status"
>
{% block status %}{% endblock status %}
</div
>
<div
class=
"actions"
>
{% block actions %}{% endblock actions %}
</div>
<div
class=
"clear"
></div>
<div
class=
"status"
>
{% block status %}{% endblock status %}
</div>
<div
class=
"actions"
>
{% block actions %}{% endblock actions %}
</div>
<div
class=
"clear"
>
</div>
{% endblock content %}
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