|
1 | 1 | {% extends "includes/crud/table_list.html" %}
|
2 | 2 |
|
3 |
| -{% load i18n %} |
4 |
| -{% load humanize %} |
5 |
| -{% load gravatar %} |
6 |
| - |
7 |
| -{% load organizations %} |
8 |
| -{% load privacy_tags %} |
| 3 | +{% load trans blocktrans from i18n %} |
| 4 | +{% load has_sso_enabled from organizations %} |
| 5 | +{% load is_admin from privacy_tags %} |
9 | 6 |
|
10 | 7 | {% block top_left_menu_items %}
|
11 | 8 | <div data-bind="using: FilterView()">
|
|
23 | 20 | {% url "organization_create" as create_url %}
|
24 | 21 | {% include "includes/crud/create_button.html" with url=create_url text=create_text %}
|
25 | 22 | {% endif %}
|
26 |
| -{% endblock %} |
| 23 | +{% endblock create_button %} |
27 | 24 |
|
28 |
| -{% block list_placeholder_icon_class %}fad fa-building icon{% endblock %} |
| 25 | +{% block list_placeholder_icon_class %} |
| 26 | + fad fa-building icon |
| 27 | +{% endblock list_placeholder_icon_class %} |
29 | 28 | {% block list_placeholder_header_filtered %}
|
30 | 29 | {% trans "No matching organizations found" %}
|
31 | 30 | {% endblock list_placeholder_header_filtered %}
|
|
66 | 65 | {% endblock list_item_right_buttons %}
|
67 | 66 |
|
68 | 67 | {% block list_item_image %}
|
69 |
| - <img class="ui image" src="{% gravatar_url object.email 48 %}" /> |
| 68 | + <img class="ui image" |
| 69 | + src="{{ object.get_avatar_url }}" |
| 70 | + height="48" |
| 71 | + width="48" |
| 72 | + alt="{% blocktrans trimmed with organization_name=object.name %}{{ organization_name }} organization{% endblocktrans %}" /> |
70 | 73 | {% endblock list_item_image %}
|
71 | 74 |
|
72 | 75 | {% block list_item_header %}
|
|
81 | 84 | {% include "includes/components/config_label.html" with icon="fad fa-user-check" text=text popup=popup %}
|
82 | 85 | {% endif %}
|
83 | 86 | </a>
|
84 |
| - <div class="sub header"> |
85 |
| - </div> |
| 87 | + <div class="sub header"></div> |
86 | 88 | {% endblock list_item_header %}
|
87 | 89 |
|
88 | 90 | {% block list_item_meta %}
|
|
95 | 97 | {% endblocktrans %}
|
96 | 98 | </a>
|
97 | 99 | {% if not object|has_sso_enabled:"allauth" %}
|
98 |
| - <a class="item" href="{% url "organization_team_list" slug=object.slug %}"> |
| 100 | + <a class="item" |
| 101 | + href="{% url "organization_team_list" slug=object.slug %}"> |
99 | 102 | {% blocktrans trimmed with team_count=object.teams.count %}
|
100 | 103 | {{ team_count }} teams
|
101 | 104 | {% endblocktrans %}
|
|
0 commit comments