Skip to content

Commit

Permalink
Display project overview.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan committed Jul 16, 2012
1 parent ac80a95 commit 5978124
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/notary/notary.py
Expand Up @@ -55,7 +55,7 @@ def get_projects():

def get_project(slug):
return dbkit.query_row("""
SELECT project_id, slug, project
SELECT project_id, slug, project, overview
FROM projects
WHERE slug = ?
""", (slug,))
Expand Down
3 changes: 2 additions & 1 deletion examples/notary/notary.sql
@@ -1,7 +1,8 @@
CREATE TABLE projects (
project_id INTEGER NOT NULL PRIMARY KEY,
slug TEXT NOT NULL,
project TEXT NOT NULL
project TEXT NOT NULL,
overview TEXT NOT NULL
);

CREATE UNIQUE INDEX ux_project_slug ON projects (slug);
Expand Down
3 changes: 3 additions & 0 deletions examples/notary/templates/project.html
Expand Up @@ -4,6 +4,9 @@

<p><a href="..">Back to projects</a></p>

$if project.overview:
<div class="overview">$:creole2html(project.overview)</div>

$for note in notes:
<div class="note">
<a href="#p$note.note_id" name="p$note.note_id" class="pnum">&para;</a>
Expand Down

0 comments on commit 5978124

Please sign in to comment.