clean up code
[phorkie.git] / data / templates / index.htm
index 31913bcf3285bacda85395addf5777638aa2c850..df1977a4f037320d39bf5728cb85e2a8f064bc39 100644 (file)
@@ -2,7 +2,7 @@
 {% block title %}New paste{% endblock %}
 
 {% block content %}
-<form method="post" action="/">
+<form method="post" action="/" enctype="multipart/form-data">
  <div class="control-group well pastedata">
    <label for="description">Description</label>
    <input type="text" name="description" id="description" value="{{description}}"/>
@@ -26,3 +26,15 @@ $(document).ready(function() {
 });
 </script>
 {% endblock %}
+
+
+{% block sidebar %}
+ {% if recents.results %}
+ <h3>Recently created</h3>
+ <ul>
+ {% for repo in recents.repos %}
+   {% include 'repo-sidebar-list.htm' %}
+ {% endfor %}
+ </ul>
+ {% endif %}
+{% endblock %}
\ No newline at end of file