Calendar: Replace ambiguous today icon with text + minor UI changes

pull/14981/head
Marcus Funch 2025-06-21 16:05:04 +02:00
rodzic 05b04439be
commit 27562b3be8
3 zmienionych plików z 22 dodań i 18 usunięć

Wyświetl plik

@ -113,13 +113,13 @@ class Show extends BaseModule
'$view' => $this->t('View'),
'$new_event' => ['calendar/event/new', $this->t('Create New Event'), '', ''],
'$today' => $this->t('today'),
'$month' => $this->t('month'),
'$week' => $this->t('week'),
'$day' => $this->t('day'),
'$list' => $this->t('list'),
'$prev' => $this->t('prev'),
'$next' => $this->t('next'),
'$today' => mb_ucfirst($this->t('today')),
'$month' => mb_ucfirst($this->t('month')),
'$week' => mb_ucfirst($this->t('week')),
'$day' => mb_ucfirst($this->t('day')),
'$list' => mb_ucfirst($this->t('list')),
'$prev' => mb_ucfirst($this->t('prev')),
'$next' => mb_ucfirst($this->t('next')),
]);
return $o;

Wyświetl plik

@ -3717,6 +3717,7 @@ section .profile-match-wrapper {
* The different views of js fullcalendar
*/
#fc-header {
display: flex;
margin-top: 20px;
margin-bottom: 10px;
}
@ -3736,6 +3737,8 @@ section .profile-match-wrapper {
color: inherit;
}
#event-calendar-title {
flex: 1;
text-align: center;
vertical-align: middle;
}
#event-calendar-views {

Wyświetl plik

@ -19,7 +19,18 @@
{{* We create our own fullcalendar header (with title & calendar view *}}
<div id="fc-header" class="clear">
<div id="fc-header-right" class="pull-right">
{{* The buttons to change the month/weeks/days *}}
<div id="fc-fc-header-left" class="btn-group">
<button class="btn btn-eventnav" onclick="changeView('prev', false);" title="{{$prev}}"><i class="fa fa-angle-up" aria-hidden="true"></i></button>
<button class="btn btn-eventnav btn-separator" onclick="changeView('next', false);" title="{{$next}}"><i class="fa fa-angle-down" aria-hidden="true"></i></button>
<button class="btn btn-eventnav btn-separator" onclick="changeView('today', false);">{{$today}}</button>
</div>
{{* The title (e.g. name of the mont/week/day) *}}
<div id="event-calendar-title"><h4 id="fc-title"></h4></div>
<div id="fc-header-right">
{{* The dropdown to change the calendar view *}}
<ul class="nav nav-pills">
<li class="dropdown pull-right">
@ -44,16 +55,6 @@
</ul>
</div>
{{* The buttons to change the month/weeks/days *}}
<div id="fc-fc-header-left" class="btn-group">
<button class="btn btn-eventnav" onclick="changeView('prev', false);" title="{{$prev}}"><i class="fa fa-angle-up" aria-hidden="true"></i></button>
<button class="btn btn-eventnav btn-separator" onclick="changeView('next', false);" title="{{$next}}"><i class="fa fa-angle-down" aria-hidden="true"></i></button>
<button class="btn btn-eventnav btn-separator" onclick="changeView('today', false);" title="{{$today}}"><i class="fa fa-bullseye" aria-hidden="true"></i></button>
</div>
{{* The title (e.g. name of the mont/week/day) *}}
<div id="event-calendar-title"><h4 id="fc-title"></h4></div>
</div>
{{* This is the container where the fullCalendar is inserted through js *}}