Commits

Luke Plant committed 49a0a85

Factored out 'displayerrors.st' template

Comments (0)

Files changed (2)

src/templates/displayerrors.st

+      <div class="validationerror">
+      <ul>
+        $errors:{ <li>$it.1$</li> }$
+      </ul>
+      </div>

src/templates/post.st

     $endif$
 
     $if(commentInvalid)$
-      <div class="validationerror">
-      <ul>
-        $commentErrors:{ <li>$it.1$</li> }$
-      </ul>
-      </div>
+      $displayerrors(errors=commentErrors)$
     $endif$
 
     <form method="post" action="#addcomment">