Skip to content

Commit

Permalink
Merge pull request #2714 from carpentries/feature/2713-remove-rq-jobs…
Browse files Browse the repository at this point in the history
…-listings

[Emails] Remove RQ Jobs listings from event and task detail pages
  • Loading branch information
pbanaszkiewicz authored Nov 5, 2024
2 parents 88b7d2a + 621ff25 commit 2ddaa4a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions amy/templates/includes/event_details_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,6 @@
<td colspan="2">{% if event|one2one_exists:"workshopinquiryrequest" %}<a href="{{ event.workshopinquiryrequest.get_absolute_url }}">{{ event.workshopinquiryrequest }}</a>{% else %}&mdash;{% endif %}</td></tr>
<tr><th>Related self-organised submission:</th>
<td colspan="2">{% if event|one2one_exists:"selforganisedsubmission" %}<a href="{{ event.selforganisedsubmission.get_absolute_url }}">{{ event.selforganisedsubmission }}</a>{% else %}&mdash;{% endif %}</td></tr>
<tr><th>RQ Jobs:</th>
<td colspan="2">
{% with jobs=event.rq_jobs.all %}
{% if jobs %}
<ul>
{% for job in jobs %}
<li><a href="{{ job.get_absolute_url }}">{{ job }}</a></li>
{% endfor %}
</ul>
{% else %}
&mdash;
{% endif %}
{% endwith %}
</td></tr>
<tr>
<th>Related scheduled emails:</th>
<td colspan="2">
Expand Down
14 changes: 0 additions & 14 deletions amy/templates/workshops/task.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@
<tr><th>Member site seat <i class="fas fa-question-circle" data-toggle="tooltip" title="Applies only to TTT events"></i>:</th><td>{% if task.seat_membership %}<a href="{{ task.seat_membership.get_absolute_url }}">{{ task.seat_membership }}</a>{% else %}&mdash;{% endif %}</td></tr>
<tr><th>Public or in-house seat <i class="fas fa-question-circle" data-toggle="tooltip" title="Applies only to TTT events"></i>:</th><td>{{ task.get_seat_public_display }}</td></tr>
<tr><th>Open applicant <i class="fas fa-question-circle" data-toggle="tooltip" title="Applies only to TTT events with open applications"></i>:</th><td>{{ task.seat_open_training|yesno }}</td></tr>
<tr><th>RQ Jobs:</th>
<td>
{% with jobs=task.rq_jobs.all %}
{% if jobs %}
<ul>
{% for job in jobs %}
<li><a href="{{ job.get_absolute_url }}">{{ job }}</a></li>
{% endfor %}
</ul>
{% else %}
&mdash;
{% endif %}
{% endwith %}
</td></tr>
</table>

<div class="clearfix">
Expand Down

0 comments on commit 2ddaa4a

Please sign in to comment.