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
e385e311
authored
Jul 04, 2017
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix deprecated template syntax
parent
e8da56dd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
circle/dashboard/templates/dashboard/_manage_access.html
+2
-2
circle/dashboard/templates/dashboard/lease-edit.html
+2
-2
circle/dashboard/templates/django_tables2/table_no_page.html
+2
-3
No files found.
circle/dashboard/templates/dashboard/_manage_access.html
View file @
e385e311
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<td>
<td>
<select
class=
"form-control"
name=
"perm-u-{{i.user.id}}"
{%
if
i
.
level
not
in
acl
.
allowed_levels
%}
disabled
{%
endif
%}
>
<select
class=
"form-control"
name=
"perm-u-{{i.user.id}}"
{%
if
i
.
level
not
in
acl
.
allowed_levels
%}
disabled
{%
endif
%}
>
{% for id, name in acl.levels %}
{% for id, name in acl.levels %}
<option
{%
if
id =
i.level%}
selected=
"selected"
{%
endif
%}
<option
{%
if
id =
=
i
.
level
%}
selected=
"selected"
{%
endif
%}
{%
if
id
not
in
acl
.
allowed_levels
%}
disabled
{%
endif
%}
{%
if
id
not
in
acl
.
allowed_levels
%}
disabled
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
value=
"{{id}}"
>
{{name}}
</option>
{% endfor %}
{% endfor %}
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<td>
<td>
<select
class=
"form-control"
name=
"perm-g-{{i.group.id}}{% if i.level not in acl.allowed_levels %} disabled{% endif %}"
>
<select
class=
"form-control"
name=
"perm-g-{{i.group.id}}{% if i.level not in acl.allowed_levels %} disabled{% endif %}"
>
{% for id, name in acl.levels %}
{% for id, name in acl.levels %}
<option
{%
if
id =
i.level%}
selected=
"selected"
{%
endif
%}
<option
{%
if
id =
=
i
.
level
%}
selected=
"selected"
{%
endif
%}
{%
if
id
not
in
acl
.
allowed_levels
%}
disabled
{%
endif
%}
{%
if
id
not
in
acl
.
allowed_levels
%}
disabled
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
value=
"{{id}}"
>
{{name}}
</option>
{% endfor %}
{% endfor %}
...
...
circle/dashboard/templates/dashboard/lease-edit.html
View file @
e385e311
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<td>
<td>
<select
class=
"form-control"
name=
"perm-u-{{i.user.id}}"
>
<select
class=
"form-control"
name=
"perm-u-{{i.user.id}}"
>
{% for id, name in acl.levels %}
{% for id, name in acl.levels %}
<option
{%
if
id =
i.level%}
selected=
"selected"
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
<option
{%
if
id =
=
i
.
level
%}
selected=
"selected"
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
{% endfor %}
{% endfor %}
</select>
</select>
</td>
</td>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<td>
<td>
<select
class=
"form-control"
name=
"perm-g-{{i.group.id}}"
>
<select
class=
"form-control"
name=
"perm-g-{{i.group.id}}"
>
{% for id, name in acl.levels %}
{% for id, name in acl.levels %}
<option
{%
if
id =
i.level%}
selected=
"selected"
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
<option
{%
if
id =
=
i
.
level
%}
selected=
"selected"
{%
endif
%}
value=
"{{id}}"
>
{{name}}
</option>
{% endfor %}
{% endfor %}
</select>
</select>
</td>
</td>
...
...
circle/dashboard/templates/django_tables2/table_no_page.html
View file @
e385e311
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
{% if table.page %}
{% if table.page %}
<div
class=
"table-container"
>
<div
class=
"table-container"
>
{% endif %}
{% endif %}
{% endspaceless %}
{% block table %}
{% block table %}
<table
{%
if
table
.
attrs
%}
{{
table
.
attrs
.
as_html
}}{%
endif
%}
>
<table
{%
if
table
.
attrs
%}
{{
table
.
attrs
.
as_html
}}{%
endif
%}
>
{% nospaceless %}
{% block table.thead %}
{% block table.thead %}
<thead>
<thead>
<tr>
<tr>
...
@@ -42,10 +42,9 @@
...
@@ -42,10 +42,9 @@
{% block table.tfoot %}
{% block table.tfoot %}
<tfoot></tfoot>
<tfoot></tfoot>
{% endblock table.tfoot %}
{% endblock table.tfoot %}
{% endnospaceless %}
</table>
</table>
{% endblock table %}
{% endblock table %}
{% spaceless %}
{% if table.page %}
{% if table.page %}
</div>
</div>
{% endif %}
{% endif %}
...
...
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