Skip to content

Commit d0024b0

Browse files
committed
1 parent 78c6d6c commit d0024b0

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Unreleased
1010
- Enh: Migration to BS5 and HumHub 1.18
1111
- Enh: Content sub-menu: Move "Report" entry to the top - https://helpdesk.transition-space.org/conversation/1661?folder_id=23
1212
- Chg: Profiles embeddable on third party sites: expand to include full text - https://helpdesk.transition-space.org/conversation/291?folder_id=23
13+
- Fix: Calendar event wall entry for 1.18 - https://helpdesk.transition-space.org/conversation/1689?folder_id=23
1314

1415
2.0 (July 12, 2024)
1516
--------------------

themes/Transition/views/calendar/widgets/wallEntry.php

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
<?php
2-
/**
3-
* This view can be deleted when https://github.com/humhub/calendar/issues/371 is resolved
4-
* When deleted, delete also the events-map/widgets/wallEntry.php view
5-
*/
62

7-
8-
use humhub\modules\calendar\helpers\CalendarUtils;
93
use humhub\modules\calendar\helpers\RecurrenceHelper;
104
use humhub\modules\calendar\models\CalendarEntry;
115
use humhub\modules\calendar\models\CalendarEntryParticipant;
@@ -21,12 +15,12 @@
2115
/* @var $collapse boolean */
2216
/* @var $this View */
2317

24-
$color = $this->theme->variable('text-color-secondary');
18+
$color = 'var(--text-color-secondary)';
2519
?>
2620

27-
<div class="d-flex event calendar-wall-entry" style="margin-top:20px;" data-action-component="calendar.CalendarEntry"
21+
<div class="event calendar-wall-entry mt-3" data-action-component="calendar.CalendarEntry"
2822
data-calendar-entry="<?= $calendarEntry->id ?>">
29-
<div class="event-info-section clearfix" style="margin-bottom:10px">
23+
<div class="event-info-section clearfix mb-2">
3024
<?= Icon::get('file-text')->color($color)->left()->size(Icon::SIZE_LG)->style('margin-top:2px;')->fixedWith() ?>
3125

3226
<div class="event-info-section-content">
@@ -68,6 +62,7 @@
6862
?>
6963

7064

65+
7166
<?= ($calendarEntry->closed) ? '</s>' : '' ?>
7267
<?php if (!$calendarEntry->closed && $calendarEntry->isAllDay()) : ?>
7368
<small>(<?= Yii::t('CalendarModule.base', 'All Day') ?>)</small>
@@ -105,7 +100,7 @@
105100
<?= Icon::get('info-circle')->color($color)->left()->size(Icon::SIZE_LG)->style('margin-top:2px;')->fixedWith() ?>
106101
<div class="event-info-section-content">
107102
<h1>
108-
<?= Yii::t('CalendarModule.views_entry_view', 'Additional information') ?>
103+
<?= Yii::t('CalendarModule.views', 'Additional information') ?>
109104
</h1>
110105
<div data-ui-markdown data-ui-show-more>
111106
<?= RichText::output($calendarEntry->participant_info) ?>
@@ -143,18 +138,18 @@
143138
<?php if ($calendarEntry->participation->canRespond(Yii::$app->user->identity)): ?>
144139
<div class="event-participation-buttons clearfix">
145140
<?php if ($calendarEntry->participation->isInvited() && !$calendarEntry->isPast()) : ?>
146-
<div class="text-warning"><?= Icon::get('warning') . Yii::t('CalendarModule.views_entry_view', 'You are invited, please select your role:') ?></div>
141+
<div class="text-warning"><?= Icon::get('warning') . Yii::t('CalendarModule.views', 'You are invited, please select your role:') ?></div>
147142
<?php endif ?>
148143

149144
<?php if ($calendarEntry->participation->maxParticipantCheck() || $calendarEntry->participation->isParticipant(Yii::$app->user->identity, false)) : ?>
150-
<?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_ACCEPTED, Yii::t('CalendarModule.views_entry_view', "Attend")) ?>
145+
<?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_ACCEPTED, Yii::t('CalendarModule.views', "Attend")) ?>
151146
<?php endif ?>
152147

153148
<?php if ($calendarEntry->participation->maxParticipantCheck() || $calendarEntry->participation->isParticipant(Yii::$app->user->identity, true)) : ?>
154-
<?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_MAYBE, Yii::t('CalendarModule.views_entry_view', "Maybe")) ?>
149+
<?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_MAYBE, Yii::t('CalendarModule.views', "Maybe")) ?>
155150
<?php endif ?>
156151

157-
<?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_DECLINED, Yii::t('CalendarModule.views_entry_view', "Decline")) ?>
152+
<?= EntryParticipants::participateButton($calendarEntry, CalendarEntryParticipant::PARTICIPATION_STATE_DECLINED, Yii::t('CalendarModule.views', "Decline")) ?>
158153
</div>
159154
<?php endif; ?>
160155
</div>

0 commit comments

Comments
 (0)