Skip to content

Commit

Permalink
added link to textview instead of listing on front page
Browse files Browse the repository at this point in the history
  • Loading branch information
victorkane committed Jul 17, 2011
1 parent e56c363 commit 83b4d12
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/index.jade
Expand Up @@ -2,4 +2,5 @@ h1 lit

!= messages()

p Welcome!
p Welcome!
a(href='/textview', title='View texts') Come for the texts, stay for the community!
21 changes: 21 additions & 0 deletions views/textview.jade
@@ -0,0 +1,21 @@
h1 lit

!= messages()

- if (count)
p Display all #{count} text(s)
ul#texts
- each text in texts
a.view(href=base + '/text/' + text.id)
li= text.title
p
| Click
a(href=base + '/text/add') here
| to add another text.
- else
p
| It looks like you have no texts!
p
| Click
a(href=base + '/text/add') here
| to create a text.

0 comments on commit 83b4d12

Please sign in to comment.