No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

overview.html 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {% extends "base.html" %}
  2. {% load handletags %}
  3. {% block content %}
  4. <div class="row">
  5. <div class="col-sm-12">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">DNS Overview</div>
  8. <div class="panel-body">
  9. {% if not mnts %}
  10. <div class="alert alert-danger" role="alert">
  11. <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
  12. <strong>Warning</strong>: You have no maintainer object. Create one <a class="alert-link" href="{% url "whoisdb:dashboard" %}">here</a> before creating domains.
  13. </div>
  14. {% endif %}
  15. <h4>Your Domains (<a href="{% url "domains:domain-create" %}">New domain</a>)</h4>
  16. <table class="table">
  17. <tr>
  18. <th>Domain</th>
  19. <th>Nameserver</th>
  20. <th>MNTs</th>
  21. <th></th>
  22. </tr>
  23. {% for domain in domains %}
  24. <tr>
  25. <td><a href="{% url "domains:domain-show" domain.name %}">{{ domain.name }}</a></td>
  26. <td>
  27. <ul>
  28. {% for nameserver in domain.nameservers.all %}
  29. <li>{{ nameserver|linkObject }}</li>
  30. {% endfor %}
  31. </ul>
  32. </td>
  33. <td>{{ domain.mnt_by.all|linkObjects }}</td>
  34. <td>
  35. <a href="{% url "domains:domain-check" domain.name %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
  36. <a href="{% url "domains:domain-edit" domain.name %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
  37. <a href="{% url "domains:domain-delete" domain.name %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a>
  38. </td>
  39. </tr>
  40. {% endfor %}
  41. </table>
  42. <h4>Your Nameservers (<a href="{% url "domains:nameserver-create" %}">New nameserver</a>)</h4>
  43. <table class="table">
  44. <tr>
  45. <th>Nameserver</th>
  46. <th>Glue IPv4</th>
  47. <th>Glue IPv6</th>
  48. <th>MNTs</th>
  49. <th></th>
  50. </tr>
  51. {% for nameserver in nameservers %}
  52. <tr>
  53. <td><a href="{% url "domains:nameserver-show" nameserver.getPK %}">{{ nameserver.name }}</a></td>
  54. <td>{{ nameserver.glueIPv4|default:"-" }}</td>
  55. <td>{{ nameserver.glueIPv6|default:"-" }}</td>
  56. <td>{{ nameserver.mnt_by.all|linkObjects }}</td>
  57. <td><a href="{% url "domains:nameserver-edit" nameserver.getPK %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a> <a href="{% url "domains:nameserver-delete" nameserver.getPK %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
  58. </tr>
  59. {% endfor %}
  60. </table>
  61. <h4>Your Reverse Zones (<a href="{% url "domains:reversezone-create" %}">New reverse zone</a>)</h4>
  62. <table class="table">
  63. <tr>
  64. <th>Zone</th>
  65. <th>Network</th>
  66. <th>Nameserver</th>
  67. <th></th>
  68. </tr>
  69. {% for reversezone in reversezones %}
  70. <tr>
  71. <td><a href="{% url "domains:reversezone-show" reversezone.pk %}">{{ reversezone.prefix }}</a></td>
  72. <td>{{ reversezone.parentNet|linkObject }}</td>
  73. <td>
  74. <ul>
  75. {% for nameserver in reversezone.nameservers.all %}
  76. <li>{{ nameserver|linkObject }}</li>
  77. {% endfor %}
  78. </ul>
  79. </td>
  80. <td>
  81. <a href="{% url "domains:reversezone-check" reversezone.pk %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
  82. <a href="{% url "domains:reversezone-edit" reversezone.pk %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
  83. <a href="{% url "domains:reversezone-delete" reversezone.pk %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
  84. </tr>
  85. {% endfor %}
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. {% endblock %}