added avatars, show user teams in list, new team dashboard widgets (#1150)
This commit is contained in:
@@ -44,6 +44,10 @@
|
||||
{{ macro.label(role, 'danger') }}
|
||||
{% elseif role == 'ROLE_ADMIN' %}
|
||||
{{ macro.label(role, 'warning') }}
|
||||
{% elseif role == 'ROLE_TEAMLEAD' %}
|
||||
{{ macro.label(role, 'success') }}
|
||||
{% elseif role == 'ROLE_USER' %}
|
||||
{{ macro.label(role, 'gray') }}
|
||||
{% else %}
|
||||
{{ macro.label(role, 'primary') }}
|
||||
{% endif %}
|
||||
@@ -58,6 +62,21 @@
|
||||
{{ macro.label(user.displayName, 'primary') }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro label_team(team, class) %}
|
||||
{% import _self as macro %}
|
||||
{{ macro.label(team.name, class|default('primary')) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro user_avatar(user, tooltip) %}
|
||||
{% set avatar = avatar(user, admin_lte_context.default_avatar) %}
|
||||
{% set showTooltip = tooltip|default(true) %}
|
||||
{% if tooltip is not defined or tooltip is same as (false)%}
|
||||
<img src="{{ avatar }}" class="{{ class|default('img-circle') }}" alt="{{ user.displayName }}" />
|
||||
{% else %}
|
||||
<img src="{{ avatar }}" class="{{ class|default('img-circle') }}" data-toggle="tooltip" data-placement="top" alt="{{ user.displayName }}" title="{{ user.displayName }}" />
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro label_activity(activity, url) %}
|
||||
{% import _self as macro %}
|
||||
{% set isVisible = activity.visible %}
|
||||
|
||||
Reference in New Issue
Block a user