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
7514d52f
authored
May 07, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: display hosts belonging to hostgroup
parent
e655ed8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
firewall_gui/static/partials/hostgroup-edit.html
+8
-0
firewall_gui/views.py
+4
-0
No files found.
firewall_gui/static/partials/hostgroup-edit.html
View file @
7514d52f
...
...
@@ -73,3 +73,11 @@
</tbody>
</table>
</div>
<div
class=
"span12"
>
<h3>
Hosts belonging to this hostgroup
</h3>
<div
class=
"well well-small"
>
<span
class=
"label label-info"
ng-repeat=
"host in entity.hosts"
>
<a
href=
"#/hosts/{{host.id}}"
>
{{host.name}}
</a>
</span>
</div>
</div>
firewall_gui/views.py
View file @
7514d52f
...
...
@@ -365,6 +365,10 @@ def show_hostgroup(request, id):
},
'created_at'
:
group
.
created_at
.
isoformat
(),
'modified_at'
:
group
.
modified_at
.
isoformat
(),
'hosts'
:
[{
'id'
:
host
.
id
,
'name'
:
host
.
hostname
}
for
host
in
group
.
host_set
.
all
()],
'rules'
:
[{
'id'
:
rule
.
id
,
'direction'
:
rule
.
get_direction_display
(),
...
...
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