SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b5c27ce1 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

show fellow workload indicator only to privileged users

parent ccdad60d
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
<span class="text-primary">Regular</span> <span class="text-primary">Regular</span>
{% endif %} {% endif %}
`
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -194,11 +193,16 @@ ...@@ -194,11 +193,16 @@
<div class="highlight d-flex justify-content-between p-2"> <div class="highlight d-flex justify-content-between p-2">
<h3 class="m-0 ">Assignments</h3> <h3 class="m-0 ">Assignments</h3>
<h5 class="m-0 ms-3 pe-2">
Workload indicator {% if "edadmin" in user_roles or "active_senior_fellow" in user_roles %}
{% include "icons/reception.html" with value=fellowship.contributor.editorial_assignments.ongoing.count max=4 %} <h5 class="m-0 ms-3 pe-2">
</h5> Workload indicator
{% include "icons/reception.html" with value=fellowship.contributor.editorial_assignments.ongoing.count max=4 %}
</h5>
{% endif %}
</div> </div>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<h4>Ongoing:</h4> <h4>Ongoing:</h4>
...@@ -217,6 +221,7 @@ ...@@ -217,6 +221,7 @@
<li class="list-group-item">No ongoing assignments</li> <li class="list-group-item">No ongoing assignments</li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
...@@ -238,6 +243,7 @@ ...@@ -238,6 +243,7 @@
<li class="list-group-item">No completed assignments</li> <li class="list-group-item">No completed assignments</li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
</div> </div>
...@@ -271,6 +277,7 @@ ...@@ -271,6 +277,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
<tr> <tr>
<td colspan="3" class="py-3 text-center"> <td colspan="3" class="py-3 text-center">
<a href="{% url 'colleges:fellowship_add_submission' fellowship.id %}">Add Submission to this Fellowship's pool</a> <a href="{% url 'colleges:fellowship_add_submission' fellowship.id %}">Add Submission to this Fellowship's pool</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment