Просмотр исходного кода

Added debug toolbar and some placeholder templates.

Rafał Pitoń 11 лет назад
Родитель
Сommit
f6c05b7f66

+ 1 - 0
misago/conf/defaults.py

@@ -40,6 +40,7 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    'debug_toolbar',
     'floppyforms',
     'misago.core',
     'misago.conf',

+ 1 - 0
misago/project_template/requirements.txt

@@ -1,2 +1,3 @@
 django==1.6.1
+django-debug-toolbar==1.0.1
 django-floppyforms==1.1.1

+ 22 - 0
misago/templates/misago/base.html

@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html lang="{{ LANGUAGE_CODE }}">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title>Misago</title>
+    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+    <!--[if lt IE 9]>
+      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
+    <![endif]-->
+  </head>
+  <body>
+    {% include "misago/navbar.html" %}
+    {% include "misago/jumbotron.html" %}
+
+    {% block content %}{% endblock %}
+
+    {% include "misago/footer.html" %}
+  </body>
+</html>

+ 2 - 0
misago/templates/misago/footer.html

@@ -0,0 +1,2 @@
+<hr>
+I'm footer template!

+ 5 - 0
misago/templates/misago/index.html

@@ -1 +1,6 @@
+{% extends "misago/base.html" %}
+
+
+{% block content %}
 Hello world, I'm placeholder index template!
+{% endblock content %}

+ 0 - 0
misago/templates/misago/jumbotron.html


+ 2 - 0
misago/templates/misago/navbar.html

@@ -0,0 +1,2 @@
+I'm navbar template!
+<hr>