16 lines
450 B
Text
16 lines
450 B
Text
|
|
<h1> Articles
|
|
$if null articles
|
|
-- Show a standard message if there is no article
|
|
<p> There are no articles in the blog
|
|
$else
|
|
-- Show the list of articles
|
|
<ul>
|
|
$forall Entity articleId article <- articles
|
|
<li>
|
|
<a href=@{ArticleR articleId} > #{articleTitle article}
|
|
<hr/>
|
|
<form method=post enctype=#{enctype}>
|
|
^{articleWidget}
|
|
<div>
|
|
<input type=submit value="Post New Article">
|