improved dark mode, automatic theme switch (#5720)
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
{% block dd_timesheet %}
|
||||
{% import "macros/widgets.html.twig" as widgets %}
|
||||
{% import "calendar/widgets.html.twig" as calendar %}
|
||||
{{ calendar.dd_event(widgets.label_color(entry.title, entry.color), entry.project ? widgets.label_customer(entry.project.customer) : null, entry.project ? widgets.label_project(entry.project) : null, null) }}
|
||||
{% if entry.activity is not null %}
|
||||
{% set title = widgets.label_activity(entry.activity, entry.activity.color) %}
|
||||
{% else %}
|
||||
{% set title = widgets.label_color(entry.title, entry.color) %}
|
||||
{% endif %}
|
||||
{{ calendar.dd_event(title, entry.project ? widgets.label_customer(entry.project.customer) : null, entry.project ? widgets.label_project(entry.project) : null, null) }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -35,13 +35,13 @@
|
||||
{% block box_body %}
|
||||
<div class="list-group list-group-flush external-events" data-method="{{ source.method }}" data-route="{{ path(source.route, source.routeParams) }}" data-route-replacer="{{ source.routeReplacer|json_encode|e('html_attr') }}">
|
||||
{% for entry in source.entries|slice(0, config.dragDropAmount) %}
|
||||
<div class="p-1 ps-2 list-group-item external-event draggable" data-entry="{{ entry.data|json_encode|e('html_attr') }}"{% if entry.project is not null %} data-toggle="tooltip" title="{{ entry.project.customer.name }}"{% endif %}>
|
||||
<div class="p-2 ps-3 lh-lg list-group-item external-event draggable" data-entry="{{ entry.data|json_encode|e('html_attr') }}"{% if entry.project is not null %} data-toggle="tooltip" title="{{ entry.project.customer.name }}"{% endif %}>
|
||||
<div class="row align-items-center">
|
||||
<div class="col text-truncate">
|
||||
{% if source.blockInclude is not null and entry.blockName is not null and block(entry.blockName, source.blockInclude) is defined %}
|
||||
{{ block(entry.blockName, source.blockInclude) }}
|
||||
{% else %}
|
||||
<span class="d-block text-body-secondary text-truncate mt-n1">{{ entry.title }}</span>
|
||||
<span class="d-block text-body-secondary text-truncate">{{ entry.title }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
{% import "macros/widgets.html.twig" as widgets %}
|
||||
{{ title }}
|
||||
{% if project is not null %}
|
||||
<small class="d-block text-body-secondary text-truncate mt-n1">{{ project }}{% if customer is not null %}, {{ customer }}{% endif %}</small>
|
||||
<small class="d-block text-body-secondary text-truncate">{{ project }}{% if customer is not null %}, {{ customer }}{% endif %}</small>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user