* Improved history view (still not there).
[redakcja.git] / apps / wiki / templates / wiki / document_list.html
index 183d612..1b0662b 100644 (file)
@@ -29,19 +29,28 @@ $(function() {
 {% block maincontent %}
 <h1><img src="{{STATIC_URL}}/img/logo.png">Platforma Redakcyjna</h1>
 
-<div class="document-list">
-    <form action="#" method="GET">
-    <p>Filtr: <input autocomplete="off" name="filter" id="file-list-filter" type="text" size="60" />
-        <input type="submit" value="Znajdź" id="file-list-find-button"/>
-        <input type="reset" value="Wyczyść" id="file-list-reset-button"/>
-    </p>
-    </form>
-        
+<div id="document-list">        
     <div id="file-list">
-    {% for file in document_list %}
-        <p><a href="{% url wiki.views.document_detail file|urlencode %}">{{ file }}</a></p>
-    {% endfor %}
+       <form action="#" method="GET">
+       <p>Filtr: <input autocomplete="off" name="filter" id="file-list-filter" type="text" size="60" />
+               <input type="submit" value="Znajdź" id="file-list-find-button"/>
+               <input type="reset" value="Wyczyść" id="file-list-reset-button"/>
+       </p>
+       </form>
+       {% for file in document_list %}
+               <p><a target="_blank" href="{% url wiki.views.document_detail file|urlencode %}">{{ file }}</a></p>
+       {% endfor %}
     </div>
+       
+       <div id="last-edited-list">
+               <h2>Twoje ostatnio otwierane dokumenty:</h2>
+               <ol>
+                       {% for   name, date in last_docs %}
+                       <li><a href="{% url wiki.views.document_detail name|urlencode %}"
+                               target="_blank">{{ name }}</a><br/><span class="date">({{ date|date:"H:i:s, d/m/Y" }})</span></li>
+                       {% endfor %}                    
+               </ol>
+       </div>
 </div>
 
 </div>