ali's requested changes

This commit is contained in:
James Turk 2010-03-31 12:12:43 -04:00
parent 5392d7b429
commit a968a75df7
2 changed files with 25 additions and 7 deletions

View File

@ -9,11 +9,21 @@
{% endblock article_title %} {% endblock article_title %}
{% block article_meta %} {% block article_meta %}
{% if article %}
<a href="{% url view_article article.title %}">view article</a> |
<a href="{% url article_history article.title %}">view history</a>
{% endif %}
{% endblock %} {% endblock %}
{% block article_body %} {% block article_body %}
<form method="POST" action="."> <form method="POST" action=".">
{{ form.as_ul }} <ul>
<input type="submit"> {{ form.as_ul }}
<li>
<button class="submitBtn" type="submit">
<span>Post</span>
</button>
</li>
</ul>
</form> </form>
{% endblock %} {% endblock %}

View File

@ -4,18 +4,23 @@
{{article.title}} [History] {{article.title}} [History]
{% endblock %} {% endblock %}
{% block article_meta %} {% endblock %} {% block article_meta %}
<a href="{% url view_article article.title %}">view article</a>
{% if article.editable %}
<a href="{% url edit_article article.title %}">edit article</a> |
{% endif %}
{% endblock %}
{% block article_body %} {% block article_body %}
<table> <table>
<tr> <thead> <tr>
<th>Version</th> <th>Version</th>
<th>Author</th> <th>Author</th>
<th>Timestamp</th> <th>Timestamp</th>
<th>Compare From</th> <th>Compare From</th>
<th>Compare To</th> <th>Compare To</th>
</tr> </tr></thead>
<tbody>
<form action="{% url article_diff article.title %}" method="GET"> <form action="{% url article_diff article.title %}" method="GET">
{% for version in versions %} {% for version in versions %}
<tr> <tr>
@ -32,8 +37,11 @@
<td><input type="radio" name="to" value="{{version.number}}"></td> <td><input type="radio" name="to" value="{{version.number}}"></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody>
</table> </table>
<input type="submit"> <button class="submitBtn" type="submit">
<span>Compare Selected Versions</span>
</button>
</form> </form>
{% endblock %} {% endblock %}