Added a base template

This commit is contained in:
2013-09-14 21:26:54 +10:00
parent b541e1d516
commit 7d83685d2c
2 changed files with 40 additions and 31 deletions

View File

@@ -0,0 +1,39 @@
{% load static %}
{% load dajaxice_templatetags %}
<html>
<head>
<title>{% block title %}3D Sample Viewer{% endblock %}</title>
<link href="{% static "three_d_viewer/css/bootstrap.min.css" %}" rel="stylesheet" media="screen">
<script type="text/javascript" src="{% static "three_d_viewer/jquery-2.0.3.js" %}"></script>
<script type="text/javascript" srv="{% static "three_d_viewer/js/bootstrap.min.js" %}"></script>
</head>
<body onload={% block loadscript %}"load();"{% endblock %}>
<div class="container">
<div class="page-header">
{% block pageheader %}
<h1>Three D Viewer</h1>
<p class="lead">Look at some rocks</p>
{% endblock %}
</div>
<div class="row">
<div class="col-md-4">
{% block sidebar %}
<div class="row">
{% include "three_d_viewer/sampletree.html" %}
</div>
{% endblock %}
</div>
<div class="col-md-8">
{% block content %}
<p>Put some intro text sort of stuff here</p>
{% endblock %}
</div>
</div>
</div
</body>
</html>

View File

@@ -1,31 +1 @@
{% load static %}
{% load dajaxice_templatetags %}
<html>
<head>
<title>3D Sample Viewer</title>
<link href="{% static "three_d_viewer/css/bootstrap.min.css" %}" rel="stylesheet" media="screen">
<script type="text/javascript" src="{% static "three_d_viewer/jquery-2.0.3.js" %}"></script>
<script type="text/javascript" srv="{% static "three_d_viewer/js/bootstrap.min.js" %}"></script>
</head>
<body onload="load();">
<div class="container">
<div class="page-header">
<h1>Three D Viewer</h1>
<p class="lead">Look at some rocks</p>
</div>
<div class="row">
<div class="col-md-4">
<div class="row">
{% include "three_d_viewer/sampletree.html" %}
</div>
</div>
<div class="col-md-8">
<p>Put some intro text sort of stuff here</p?
</div>
</div>
</div
</body>
</html>
{% extends "three_d_viewer/base.html" %}