2008-10-17 19:32:13 -06:00
|
|
|
% if (! ~ $blogTitle '')
|
|
|
|
% echo '<h1>'$"blogTitle'</h1>'
|
|
|
|
|
2008-11-25 20:56:39 -07:00
|
|
|
<div style="text-align:right">(<a href="index.rss">RSS Feed</a>|<a href="index.atom">Atom Feed</a>)</div>
|
2008-10-17 19:32:13 -06:00
|
|
|
|
|
|
|
%{
|
|
|
|
for (f in `{ sortedBlogPostList $blogDirs }) {
|
|
|
|
gen_blog_post_title $f
|
|
|
|
cat $f
|
2008-12-11 14:39:07 -07:00
|
|
|
echo ' ' # XXX I have no clue why the ' ' is needed, a echo without args breaks markdown.pl?!?
|
2008-10-17 19:32:13 -06:00
|
|
|
} | $formatter
|
|
|
|
|
|
|
|
# TODO Should check if user has perms and so on
|
|
|
|
get_user
|
|
|
|
if(~ $#logged_user 1) {
|
|
|
|
%}
|
2008-10-22 01:21:53 -06:00
|
|
|
<form method="POST" action="/_apps/brag/post_form">
|
|
|
|
<input type="hidden" name="target_blog_dir" value="%($blogDirs(1)%)" />
|
|
|
|
<input type="submit" name="Submit" value="New blog post" />
|
2008-10-17 19:32:13 -06:00
|
|
|
</form>
|
|
|
|
% }
|
|
|
|
<hr />
|