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
10562300
authored
Jun 13, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: display records on domain records page
parent
fb85d493
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
firewall_gui/static/partials/domain-edit.html
+8
-0
firewall_gui/views.py
+4
-1
No files found.
firewall_gui/static/partials/domain-edit.html
View file @
10562300
...
@@ -96,3 +96,11 @@
...
@@ -96,3 +96,11 @@
</div>
</div>
</div>
</div>
</form>
</form>
<div
class=
"span12"
>
<h3>
Records belonging to this domain
</h3>
<div
class=
"well well-small"
>
<span
class=
"label label-info"
ng-repeat=
"record in entity.records"
>
<a
href=
"#/records/{{record.id}}"
>
{{record.name}}
</a>
</span>
</div>
</div>
firewall_gui/views.py
View file @
10562300
...
@@ -547,7 +547,10 @@ def show_domain(request, id=None):
...
@@ -547,7 +547,10 @@ def show_domain(request, id=None):
'modified_at'
:
domain
.
modified_at
.
isoformat
(),
'modified_at'
:
domain
.
modified_at
.
isoformat
(),
'ttl'
:
domain
.
ttl
,
'ttl'
:
domain
.
ttl
,
'description'
:
domain
.
description
,
'description'
:
domain
.
description
,
'records'
:
[{
'id'
:
record
.
id
,
'name'
:
record
.
get_name
()
}
for
record
in
domain
.
record_set
.
all
()]
}
}
except
:
except
:
domain
=
{
domain
=
{
...
...
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