equal
deleted
inserted
replaced
|
1 {%extends "base.html"%} |
|
2 {% block body %} |
|
3 <h2>All Problems</h2> |
|
4 <table class="problems" cellspacing="0" width="900"> |
|
5 <tr style="color:#00ce1d;font-weight:bold;text-align:center"> |
|
6 <td>Description</td> |
|
7 <!-- commented because this may be used again for doing all the score stuff --> |
|
8 {# {% if user %}<td>Solved</td><td>Edit</td>{% endif %} #} |
|
9 </tr> |
|
10 |
|
11 {% for entry in entries %} |
|
12 <tr> |
|
13 <td> |
|
14 {{ entry.problem|escape }} |
|
15 <a id="#solve_{{ entry.problem_id }}" class="comment" href="#solve" onclick="return loadcode({{ entry.problem_id }})">solve</a> |
|
16 </td> |
|
17 |
|
18 </tr> |
|
19 {% endfor %} |
|
20 |
|
21 </table> |
|
22 |
|
23 <p> |
|
24 {% if user %}<a href="{% url testapp.views.new_edit %}">Create new problem</a>{% endif %} |
|
25 </p> |
|
26 |
|
27 {%endblock%} |