Commit 9cc13db69f6760b851580dcdebe8217383c37bfb

Authored by Zambom
1 parent cd7a88fa

Adjusting coordinator presentation in subjects screen

categories/templates/categories/list.html
@@ -88,7 +88,6 @@ @@ -88,7 +88,6 @@
88 {% else %} 88 {% else %}
89 <h4> {% trans "It doesn't possess coordinators" %} </h4> 89 <h4> {% trans "It doesn't possess coordinators" %} </h4>
90 {% endif %} 90 {% endif %}
91 -  
92 91
93 {{category.description|safe}} 92 {{category.description|safe}}
94 </div> 93 </div>
subjects/templates/subjects/list.html
@@ -80,19 +80,14 @@ @@ -80,19 +80,14 @@
80 <input type="hidden" class="log_url" value="{% url 'categories:view_log' category.id %}" /> 80 <input type="hidden" class="log_url" value="{% url 'categories:view_log' category.id %}" />
81 <input type="hidden" class="log_id" value="" /> 81 <input type="hidden" class="log_id" value="" />
82 {% if category.coordinators.all|length > 0 %} 82 {% if category.coordinators.all|length > 0 %}
83 - <h4> {% trans "Coordinator(s): " %}  
84 - {% for coordinator in category.coordinators.all %}  
85 - {{coordinator.social_name}}  
86 - {% endfor %}  
87 - </h4> 83 + <h4><b>{% trans "Coordinator(s) " %}: </b>
  84 + {{ category.coordinators.all|join:', ' }}
  85 + </h4>
88 {% else %} 86 {% else %}
89 <h4> {% trans "It doesn't possess coordinators" %} </h4> 87 <h4> {% trans "It doesn't possess coordinators" %} </h4>
90 {% endif %} 88 {% endif %}
91 -  
92 89
93 {{category.description|safe}} 90 {{category.description|safe}}
94 -  
95 -  
96 91
97 {% if user in category.coordinators.all %} 92 {% if user in category.coordinators.all %}
98 <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "create new subject" %} </button></a> 93 <a href="{% url 'subjects:create' category.slug %}"><button class="create-subject-btn"> {% trans "create new subject" %} </button></a>