Further in on restricted JS to simplify things. Rather than breaking out all Javascript stuff into their own granular files, this just includes all admin actions together in the same file. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
25 lines
991 B
HTML
25 lines
991 B
HTML
{% load static %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>{% block title %}{% if title %}{{title}}{% else %}Index{% endif %}{% endblock %}</title>
|
|
<link rel="stylesheet" href="{% static 'board/style.css' %}">
|
|
<link rel="stylesheet" href="{% static 'board/font-awesome/css/font-awesome.min.css' %}">
|
|
{% block extrastyle %}{% endblock %}
|
|
<script src="{% static 'board/jquery.js' %}"></script>
|
|
<script src="{% static 'board/jsframe.min.js' %}"></script>
|
|
<script src="{% static 'board/post.js' %}"></script>
|
|
{% if user.is_staff %}
|
|
<script src="{% static 'board/restricted.js' %}"></script>
|
|
{% endif %}
|
|
{% block extrajs %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<main>
|
|
{% block content %}{% endblock content %}
|
|
</main>
|
|
</body>
|
|
</html> |