{% 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}}"/>
</form>
<script type="application/javascript">
$(document).ready(function() {
- initFilenames();
+ initEdit();
});
</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