Skip to content

Commit

Permalink
Merge pull request #401 from ferishili/issue-400
Browse files Browse the repository at this point in the history
show termins without rooms for widget, fixes #400
  • Loading branch information
ferishili authored Apr 14, 2022
2 parents eadf691 + f21c319 commit a9f92fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Helpers/WidgetHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function getTodaysMeetings($courses) {
$now,
$now,
]);
if ($currentSessionDate) {
if ($currentSessionDate && !$currentSessionDate->room_booking->resource_id) {
$widgetItem = self::prepareWidgetItems($course, $currentSessionDate);
if (!empty($widgetItem)) {
$currents[] = $widgetItem;
Expand All @@ -86,7 +86,7 @@ private function getTodaysMeetings($courses) {
$now,
$tonight,
]);
if ($upcomingSessionDate) {
if ($upcomingSessionDate && !$upcomingSessionDate->room_booking->resource_id) {
$upcomings[] = self::prepareWidgetItems($course, $upcomingSessionDate);
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</h1>
<nav>
<a href="<?= $item['meeting_join_url'] ?>" target="_blank">
<?= Icon::create('door-enter', 'clickable')->asImg(['class' => 'text-bottom']) ?>
<?= Icon::create('chat', 'clickable')->asImg(['class' => 'text-bottom']) ?>
</a>
<a href="<?= $item['meeting_course_url'] ?>">
<?= Icon::create('seminar', 'clickable')->asImg(['class' => 'text-bottom']) ?>
Expand Down

0 comments on commit a9f92fd

Please sign in to comment.