A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
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.

layout.html 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>{% block title %}{% endblock %}</title>
  5. <link rel="stylesheet" type="text/css" href="/css/codehilite.css">
  6. <link rel="stylesheet" type="text/css" href="/smoke/style.css">
  7. </head>
  8. <body>
  9. <header>
  10. <a href="/">
  11. <img src="/smoke/firemarble.png" width="161" height="169" alt="Logo">
  12. </a>
  13. <span>Rophako</span>
  14. </header>
  15. <nav>
  16. <ul>
  17. <li class="header">:: Navigation</li>
  18. <li><a href="/">Home</a></li>
  19. <li><a href="/photos/albums">Photo Albums</a></li>
  20. <li><a href="https://github.com/kirsle/rophako" target="_blank">View on Github</a></li>
  21. <li><a href="https://github.com/kirsle/rophako/archive/master.zip">Download</a></li>
  22. <li class="header">:: Site Admin</li>
  23. {% if session["login"] %}
  24. {% if session["role"] == "admin" %}
  25. <li><a href="{{ url_for('admin.index') }}">Admin Center</a></li>
  26. {% endif %}
  27. <li><a href="{{ url_for('blog.update') }}">Update Blog</a></li>
  28. {% if "impersonator" in session %}
  29. <li><a href="{{ url_for('admin.unimpersonate') }}">Unimpersonate</a>
  30. {% endif %}
  31. <li><a href="{{ url_for('account.logout') }}">Log out {{ session["username"] }}</a></li>
  32. {% else %}
  33. <li><a href="{{ url_for('account.login') }}">Log in</a></li>
  34. {% endif %}
  35. </ul>
  36. </nav>
  37. <div id="content">
  38. {% with messages = get_flashed_messages() %}
  39. {% if messages %}
  40. <h1>Notice!</h1>
  41. <ul>
  42. {% for message in messages %}
  43. <li>{{ message }}</li>
  44. {% endfor %}
  45. </ul>
  46. {% endif %}
  47. {% endwith %}
  48. {% block content %}{% endblock %}
  49. <footer>
  50. <div>
  51. &copy; 2014 Noah Petherbridge. Web design released along with the Rophako CMS
  52. under the GNU General Public License v2.0.<br>
  53. <a href="https://github.com/kirsle/rophako" target="_blank">
  54. {{ app["name"] }} v{{ app["version"] }} on Python {{ app["python_version"] }}
  55. </a>
  56. </div>
  57. </footer>
  58. </div>
  59. <script type="text/javascript" src="/js/jquery-2.1.0.min.js"></script>
  60. {% block scripts %}{% endblock %}
  61. </body>
  62. </html>