software powering 0xdb.org and Pad.ma is called pandora now
This commit is contained in:
parent
e724c67f05
commit
7c0e365a0a
46 changed files with 30 additions and 21 deletions
2
pandora/templates/404.html
Normal file
2
pandora/templates/404.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{'status': {'code': 404, 'text': 'not found'}}
|
||||
|
||||
1
pandora/templates/500.html
Normal file
1
pandora/templates/500.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
500 error
|
||||
10
pandora/templates/admin/base_site.html
Normal file
10
pandora/templates/admin/base_site.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{% extends "admin/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{{ title }} | 0xdb.org{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
<h1 id="site-name">0xdb.org</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav-global %}{% endblock %}
|
||||
22
pandora/templates/api.html
Normal file
22
pandora/templates/api.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{sitename}} API</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<script type="text/javascript" src="/static/js/jquery/jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{sitename}} Public API</h1>
|
||||
<a href="http://code.0xdb.org/pandora/annotate/head%3A/pandora/backend/views.py">look inside</a>
|
||||
<div>
|
||||
{% for f in api %}
|
||||
<div>
|
||||
<h2><a name="{{f.name}}">action: {{f.name}}</a></h2>
|
||||
<pre style="padding-left: 24px">
|
||||
{{f.doc|safe}}
|
||||
</pre>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
16
pandora/templates/index.html
Normal file
16
pandora/templates/index.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{settings.SITENAME}}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="/static/oxjs/build/css/ox.ui.css"/>
|
||||
|
||||
<script type="text/javascript" src="/static/oxjs/build/js/jquery-1.4.js"></script>
|
||||
<script type="text/javascript" src="/static/oxjs/build/js/ox.js"></script>
|
||||
<script type="text/javascript" src="/static/oxjs/build/js/ox.ui.js"></script>
|
||||
<script type="text/javascript" src="/site.js"></script>
|
||||
<script type="text/javascript" src="/static/js/oxdb.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
8
pandora/templates/site.js
Normal file
8
pandora/templates/site.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
var site = {};
|
||||
site.url = "{{settings.URL}}";
|
||||
site.name = "{{settings.SITENAME}}";
|
||||
|
||||
site.pages = {};
|
||||
{% for page in pages %}
|
||||
site.pages['{{page.name}}'] = '{{page.body|escapejs}}';
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue