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
190a788e
authored
Jun 13, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: display dns records for domain names
parent
2cd9597e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
firewall_gui/static/partials/domain-list.html
+8
-0
firewall_gui/views.py
+1
-1
No files found.
firewall_gui/static/partials/domain-list.html
View file @
190a788e
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<tr>
<tr>
<th>
Név
</th>
<th>
Név
</th>
<th>
Rekordok
</th>
<th>
TTL
</th>
<th>
TTL
</th>
<th>
Leírás
</th>
<th>
Leírás
</th>
<th
colspan=
"2"
>
Tulajdonos
</th>
<th
colspan=
"2"
>
Tulajdonos
</th>
...
@@ -30,6 +31,13 @@
...
@@ -30,6 +31,13 @@
<td>
<td>
<a
href=
"#/domains/{{domain.id}}"
>
{{domain.name}}
</a>
<a
href=
"#/domains/{{domain.id}}"
>
{{domain.name}}
</a>
</td>
</td>
<td>
<div
class=
"well well-small"
>
<span
class=
"label label-info"
ng-repeat=
"record in domain.records"
>
<a
href=
"#/records/{{record.id}}"
>
{{record.name}}(#{{record.id}})
</a>
</span>
</div>
</td>
<td>
{{domain.ttl}}
</td>
<td>
{{domain.ttl}}
</td>
<td>
{{domain.description}}
</td>
<td>
{{domain.description}}
</td>
<td>
{{domain.owner.name}}
</td>
<td>
{{domain.owner.name}}
</td>
...
...
firewall_gui/views.py
View file @
190a788e
...
@@ -145,7 +145,7 @@ def list_entities(request, name):
...
@@ -145,7 +145,7 @@ def list_entities(request, name):
'modified_at'
,
'modified_at'
,
'ttl'
,
'ttl'
,
'description'
,
'description'
,
(
'record
_set
'
,
lambda
entity
:
[{
'id'
:
entity
.
id
,
'name'
:
entity
.
name
}
for
entity
in
entity
.
record_set
.
all
()]),
(
'record
s
'
,
lambda
entity
:
[{
'id'
:
entity
.
id
,
'name'
:
entity
.
name
}
for
entity
in
entity
.
record_set
.
all
()]),
'owner'
]),
'owner'
]),
'records'
:
make_entity_lister
(
Record
,
[
'records'
:
make_entity_lister
(
Record
,
[
'id'
,
'id'
,
...
...
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