Skip to content

Commit

Permalink
Merge branch 'joker314/remove-safe-filter'
Browse files Browse the repository at this point in the history
  • Loading branch information
anishathalye committed Aug 29, 2021
2 parents 8393e17 + 5729f15 commit 4b125e3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions gavel/templates/_item.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="info">
<h2>{{ item.name | safe }}</h2>
<p class="preserve-formatting">{{ item.description | safe }}</p>
<p><strong>Location: </strong>{{ item.location | safe }}</p>
<h2>{{ item.name }}</h2>
<p class="preserve-formatting">{{ item.description }}</p>
<p><strong>Location: </strong>{{ item.location }}</p>
</div>
12 changes: 6 additions & 6 deletions gavel/templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ <h2>Projects</h2>
{% for item in items %}
<tr class="{{ 'disabled' if not item.active else 'prioritized' if item.prioritized else '' }}">
<td><a href="{{ url_for('item_detail', item_id=item.id) }}" class="colored">{{ item.id }}</a></td>
<td>{{ item.name | safe }}</td>
<td>{{ item.location | safe }}</td>
<td class="preserve-formatting">{{ item.description | safe }}</td>
<td>{{ item.name }}</td>
<td>{{ item.location }}</td>
<td class="preserve-formatting">{{ item.description }}</td>
<td>{{ item.mu | round(4) }}</td>
<td>{{ item.sigma_sq | round(4) }}</td>
<td>{{ item_counts.get(item.id, 0) }}</td>
Expand Down Expand Up @@ -106,9 +106,9 @@ <h2>Judges</h2>
{% for annotator in annotators %}
<tr class="{{ 'disabled' if not annotator.active else '' }}">
<td><a href="{{ url_for('annotator_detail', annotator_id=annotator.id) }}" class="colored">{{ annotator.id }}</a></td>
<td>{{ annotator.name | safe }}</td>
<td>{{ annotator.email | safe }}</td>
<td>{{ annotator.description | safe }}</td>
<td>{{ annotator.name }}</td>
<td>{{ annotator.email }}</td>
<td>{{ annotator.description }}</td>
<td>{{ counts.get(annotator.id, 0) }}</td>
<td data-sort="{{ annotator.next_id or -1 }}">{{ annotator.next_id }}</td>
<td data-sort="{{ annotator.prev_id or -1 }}">{{ annotator.prev_id }}</td>
Expand Down
14 changes: 7 additions & 7 deletions gavel/templates/admin_annotator.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
</tr>
<tr>
<th>Name</th>
<td>{{ annotator.name | safe }}</td>
<td>{{ annotator.name }}</td>
</tr>
<tr>
<th>Email</th>
<td>{{ annotator.email | safe }}</td>
<td>{{ annotator.email }}</td>
</tr>
<tr>
<th>Description</th>
<td>{{ annotator.description | safe }}</td>
<td>{{ annotator.description }}</td>
</tr>
<tr>
<th>Login URL</th>
Expand All @@ -30,15 +30,15 @@
<tr>
<th>Next</th>
{% if annotator.next %}
<td><a href="{{ url_for('item_detail', item_id=annotator.next.id) }}" class="colored">{{ annotator.next.name | safe }} [{{ annotator.next_id }}]</a></td>
<td><a href="{{ url_for('item_detail', item_id=annotator.next.id) }}" class="colored">{{ annotator.next.name }} [{{ annotator.next_id }}]</a></td>
{% else %}
<td>None</td>
{% endif %}
</tr>
<tr>
<th>Previous</th>
{% if annotator.prev %}
<td><a href="{{ url_for('item_detail', item_id=annotator.prev.id) }}" class="colored">{{ annotator.prev.name | safe }} [{{ annotator.prev_id }}]</a></td>
<td><a href="{{ url_for('item_detail', item_id=annotator.prev.id) }}" class="colored">{{ annotator.prev.name }} [{{ annotator.prev_id }}]</a></td>
{% else %}
<td>None</td>
{% endif %}
Expand All @@ -60,7 +60,7 @@
<td>
<ul>
{% for item in seen %}
<li><a href="{{ url_for('item_detail', item_id=item.id) }}" class="colored">{{ item.name | safe }} [{{ item.id }}]</a></li>
<li><a href="{{ url_for('item_detail', item_id=item.id) }}" class="colored">{{ item.name }} [{{ item.id }}]</a></li>
{% endfor %}
</ul>
</td>
Expand All @@ -70,7 +70,7 @@
<td>
<ul>
{% for item in skipped %}
<li><a href="{{ url_for('item_detail', item_id=item.id) }}" class="colored">{{ item.name | safe }} [{{ item.id }}]</a></li>
<li><a href="{{ url_for('item_detail', item_id=item.id) }}" class="colored">{{ item.name }} [{{ item.id }}]</a></li>
{% endfor %}
</ul>
</td>
Expand Down
12 changes: 6 additions & 6 deletions gavel/templates/admin_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<th>Name</th>
<td>
<form action="{{ url_for('item_patch') }}" method="post">
<input type="text" name="name" value="{{ item.name | safe }}">
<input type="text" name="name" value="{{ item.name }}">
<input type="submit" name="action" value="Update" class="neutral">
<input type="hidden" name="item_id" value="{{ item.id }}">
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
Expand All @@ -26,7 +26,7 @@
<th>Location</th>
<td>
<form action="{{ url_for('item_patch') }}" method="post">
<input type="text" name="location" value="{{ item.location | safe }}">
<input type="text" name="location" value="{{ item.location }}">
<input type="submit" name="action" value="Update" class="neutral">
<input type="hidden" name="item_id" value="{{ item.id }}">
<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
Expand All @@ -36,7 +36,7 @@
<tr>
<th>Description</th>
<td>
<textarea name="description" form="description_form">{{ item.description | safe }}</textarea>
<textarea name="description" form="description_form">{{ item.description }}</textarea>
<form action="{{ url_for('item_patch') }}" method="post" id="description_form">
<input type="submit" name="action" value="Update" class="neutral">
<input type="hidden" name="item_id" value="{{ item.id }}">
Expand All @@ -57,7 +57,7 @@
<td>
<ul>
{% for annotator in item.viewed %}
<li><a href="{{ url_for('annotator_detail', annotator_id=annotator.id) }}" class="colored">{{ annotator.name | safe }} [{{ annotator.id }}]</a></li>
<li><a href="{{ url_for('annotator_detail', annotator_id=annotator.id) }}" class="colored">{{ annotator.name }} [{{ annotator.id }}]</a></li>
{% endfor %}
</ul>
</td>
Expand All @@ -67,7 +67,7 @@
<td>
<ul>
{% for annotator in assigned %}
<li><a href="{{ url_for('annotator_detail', annotator_id=annotator.id) }}" class="colored">{{ annotator.name | safe }} [{{ annotator.id }}]</a></li>
<li><a href="{{ url_for('annotator_detail', annotator_id=annotator.id) }}" class="colored">{{ annotator.name }} [{{ annotator.id }}]</a></li>
{% endfor %}
</ul>
</td>
Expand All @@ -77,7 +77,7 @@
<td>
<ul>
{% for annotator in skipped %}
<li><a href="{{ url_for('annotator_detail', annotator_id=annotator.id) }}" class="colored">{{ annotator.name | safe }} [{{ annotator.id }}]</a></li>
<li><a href="{{ url_for('annotator_detail', annotator_id=annotator.id) }}" class="colored">{{ annotator.name }} [{{ annotator.id }}]</a></li>
{% endfor %}
</ul>
</td>
Expand Down

0 comments on commit 4b125e3

Please sign in to comment.