1. Brendan Howell
  2. The Maggot

Source

The Maggot / src / templates / index.tmpl

Diff from to

File src/templates/index.tmpl

  • Ignore whitespace
 #include "templates/header.tmpl"    
-	<h2>The Maggot</h2>
-    <h3>current writing sessions:</h3>
+    <img src="/static/maggot.png" alt="maggot" />
+    #if len($sessions):
+    <h3>Current Corpora:</h3>
     <ul>
       #for $session in $sessions:
         <li><a href="/session?sid=$session.id">$session.name</a></li>
       #end for
     </ul>
-    #if $role=='proctor':
-    <h3>proctor options:
+    #end if
+    #if len($old_sessions):
+    <h3>Digested Corpora:</h3>
+	<ul>
+      #for $session in $old_sessions:
+        <li><a href="/session?sid=$session.id">$session.name</a></li>
+      #end for
+    </ul>
+    #end if
+    <h3>Actions:</h3>
     <ul>
-        <li><a href="/newsession">Create New Session</a></li>  
+        <li><a href="/newsession">Create New Corpus</a></li>  
     </ul>
-    #end if    
 #include "templates/footer.tmpl"