software powering 0xdb.org and Pad.ma is called pandora now

This commit is contained in:
j 2010-02-16 15:52:34 +05:30
commit 7c0e365a0a
46 changed files with 30 additions and 21 deletions

View file

@ -0,0 +1,2 @@
{'status': {'code': 404, 'text': 'not found'}}

View file

@ -0,0 +1 @@
500 error

View 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 %}

View 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>

View 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>

View 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 %}