git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug #11: do not index edit, delete and tool pages
[phorkie.git]
/
data
/
templates
/
index.htm
diff --git
a/data/templates/index.htm
b/data/templates/index.htm
index d6bd5e1e16b29568441ce6447fbddae3f2b03d03..5752c1e5a9fe3767a589ca379d58ca0493989fda 100644
(file)
--- a/
data/templates/index.htm
+++ b/
data/templates/index.htm
@@
-2,7
+2,7
@@
{% block title %}New paste{% endblock %}
{% block content %}
{% 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}}"/>
<div class="control-group well pastedata">
<label for="description">Description</label>
<input type="text" name="description" id="description" value="{{description}}"/>
@@
-20,4
+20,21
@@
</div>
</form>
</div>
</form>
+<script type="application/javascript">
+$(document).ready(function() {
+ initEdit();
+});
+</script>
{% endblock %}
{% 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