UI improvements for datatables (#593)
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
{% if visible %}
|
||||
{{ macro.label('badge.visible', 'success') }}
|
||||
{% else %}
|
||||
{{ macro.label('badge.invisible', 'warning') }}
|
||||
{{ macro.label('badge.invisible', 'default') }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
{% if not activity.project is null %}
|
||||
{% set label = activity.project.customer.name ~ ': ' ~ activity.project.name %}
|
||||
{% endif %}
|
||||
{{ macro.label(activity.name, (isVisible ? 'primary' : 'warning'), label) }}
|
||||
{{ macro.label(activity.name, (isVisible ? 'primary' : 'default'), label) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro label_project(project) %}
|
||||
@@ -107,7 +107,7 @@
|
||||
{% if project.visible and project.customer.visible %}
|
||||
{{ macro.label(project.name, 'primary', project.customer.name) }}
|
||||
{% else %}
|
||||
{{ macro.label(project.name, 'warning', project.customer.name) }}
|
||||
{{ macro.label(project.name, 'default', project.customer.name) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
{% if customer.visible %}
|
||||
{{ macro.label(customer.name, 'primary') }}
|
||||
{% else %}
|
||||
{{ macro.label(customer.name, 'warning') }}
|
||||
{{ macro.label(customer.name, 'default') }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user