base.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {% load admin_urls %}
  2. {% load static %}
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <title>Archived Sites</title>
  7. <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" href="{% static 'admin/css/base.css' %}">
  9. <link rel="stylesheet" type="text/css" href="{% static 'admin.css' %}">
  10. <link rel="stylesheet" href="{% static 'bootstrap.min.css' %}">
  11. <link rel="stylesheet" href="{% static 'jquery.dataTables.min.css' %}" />
  12. {% block extra_head %}
  13. {% endblock %}
  14. <script src="{% static 'jquery.min.js' %}"></script>
  15. <script src="{% static 'jquery.dataTables.min.js' %}"></script>
  16. <script>
  17. document.addEventListener('error', function (e) {
  18. e.target.style.opacity = 0;
  19. }, true)
  20. jQuery(document).ready(function () {
  21. jQuery('#table-bookmarks').DataTable({
  22. searching: false,
  23. paging: false,
  24. stateSave: true, // save state (filtered input, number of entries shown, etc) in localStorage
  25. dom: '<lf<t>ip>', // how to show the table and its helpers (filter, etc) in the DOM
  26. order: [[0, 'desc']],
  27. iDisplayLength: 100,
  28. });
  29. });
  30. </script>
  31. <base href="{% url 'Home' %}">
  32. </head>
  33. <body>
  34. <div id="container">
  35. <div id="header">
  36. <div id="branding">
  37. <h1 id="site-name">
  38. <a href="{% url 'public-index' %}" class="header-archivebox" title="Last updated: {{updated}}">
  39. <img src="{% static 'archive.png' %}" alt="Logo" style="height: 30px"/>
  40. ArchiveBox
  41. </a>
  42. </h1>
  43. </div>
  44. <div id="user-tools">
  45. <a href="/add/">➕&nbsp; Add</a> &nbsp;/&nbsp;
  46. <a href="/">Snapshots</a> &nbsp;/&nbsp;
  47. <a href="/admin/">Admin</a> &nbsp;/&nbsp;
  48. <a href="https://github.com/ArchiveBox/ArchiveBox/wiki">Docs</a>
  49. {% if user.is_authenticated %}
  50. &nbsp; &nbsp;
  51. User
  52. <strong>{% firstof user.get_short_name user.get_username %}</strong> &nbsp; &nbsp;
  53. {% if user.has_usable_password %}
  54. <a href="{% url 'admin:password_change' %}">Change password</a> /
  55. {% endif %}
  56. <a href="{% url 'admin:logout' %}">Log out</a>
  57. {% endif %}
  58. </div>
  59. </div>
  60. <div id="content" class="flex">
  61. {% block body %}
  62. {% endblock %}
  63. </div>
  64. {% block footer %}
  65. <footer>
  66. <br />
  67. <center>
  68. <small>
  69. Archive created using <a href="https://github.com/ArchiveBox/ArchiveBox" title="Github">ArchiveBox</a> version
  70. <a href="https://github.com/ArchiveBox/ArchiveBox/releases" title="Releases">v{{VERSION}}</a>.
  71. <br/><br/>
  72. {{FOOTER_INFO}}
  73. </small>
  74. </center>
  75. <br />
  76. </footer>
  77. {% endblock %}
  78. </div>
  79. </body>
  80. </html>