Commit 190a788e by Bence Dányi

firewall_gui: display dns records for domain names

parent 2cd9597e
......@@ -22,6 +22,7 @@
<table class="table table-striped">
<tr>
<th>Név</th>
<th>Rekordok</th>
<th>TTL</th>
<th>Leírás</th>
<th colspan="2">Tulajdonos</th>
......@@ -30,6 +31,13 @@
<td>
<a href="#/domains/{{domain.id}}">{{domain.name}}</a>
</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.description}}</td>
<td>{{domain.owner.name}}</td>
......
......@@ -145,7 +145,7 @@ def list_entities(request, name):
'modified_at',
'ttl',
'description',
('record_set', lambda entity: [{'id':entity.id, 'name':entity.name} for entity in entity.record_set.all()]),
('records', lambda entity: [{'id':entity.id, 'name':entity.name} for entity in entity.record_set.all()]),
'owner']),
'records': make_entity_lister(Record, [
'id',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment