diff options
author | Michael Elkins <melkins@tislabs.com> | 2012-01-19 18:51:34 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2012-01-19 18:51:34 +0000 |
commit | 3d761e08124167f7a016b7b546c82529205119b0 (patch) | |
tree | c61e890841c8ff7cb65de7dc950d978a5a96939e | |
parent | 6ec4327a6741c14e90c23b5f757b7f3d1a950363 (diff) |
fix parent detail view to work with new models
svn path=/branches/tk161/; revision=4233
-rw-r--r-- | rpkid/rpki/gui/app/templates/app/parent_view.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/rpkid/rpki/gui/app/templates/app/parent_view.html b/rpkid/rpki/gui/app/templates/app/parent_view.html index 0743348f..87645d71 100644 --- a/rpkid/rpki/gui/app/templates/app/parent_view.html +++ b/rpkid/rpki/gui/app/templates/app/parent_view.html @@ -11,9 +11,12 @@ <div class='span8'> <h2>Delegated Addresses</h2> <ul> - {% for c in parent.resources.all %} - {% for a in c.address_range.all %} - <li><a href="{{ a.get_absolute_url }}">{{ a }}</a></li> + {% for c in parent.certs.all %} + {% for a in c.address_ranges.all %} + <li>{{ a }}</li> + {% endfor %} + {% for a in c.address_ranges_v6.all %} + <li>{{ a }}</li> {% endfor %} {% endfor %} </ul> @@ -22,9 +25,9 @@ <div class='span8'> <h2>Delegated ASNs</h2> <ul> - {% for c in parent.resources.all %} - {% for a in c.asn.all %} - <li><a href="{{ a.get_absolute_url }}">{{ a }}</a></li> + {% for c in parent.certs.all %} + {% for a in c.asn_ranges.all %} + <li>{{ a }}</li> {% endfor %} {% endfor %} </ul> |