Skip to content
Snippets Groups Projects
Commit 97c83785 authored by David Siegfried's avatar David Siegfried Committed by Elmar Ludwig
Browse files

replace old icon, closes #1369

Closes #1369

Merge request studip/studip!863
parent bb451640
No related branches found
No related tags found
No related merge requests found
...@@ -220,10 +220,10 @@ class CalendarScheduleModel ...@@ -220,10 +220,10 @@ class CalendarScheduleModel
$stmt->execute([$sem->getId(), $user_id, $cycle->getMetaDateId()]); $stmt->execute([$sem->getId(), $user_id, $cycle->getMetaDateId()]);
$details = $stmt->fetch(); $details = $stmt->fetch();
if ($entry['type'] == 'virtual') { if ($entry['type'] === 'virtual') {
$entry['color'] = $details['color'] ? $details['color'] : DEFAULT_COLOR_VIRTUAL; $entry['color'] = $details['color'] ?: DEFAULT_COLOR_VIRTUAL;
$entry['icons'][] = [ $entry['icons'][] = [
'image' => 'virtual.png', 'image' => Icon::create('tag', Icon::ROLE_INFO_ALT)->asImagePath(),
'title' => _("Dies ist eine vorgemerkte Veranstaltung") 'title' => _("Dies ist eine vorgemerkte Veranstaltung")
]; ];
} else { } else {
...@@ -240,7 +240,7 @@ class CalendarScheduleModel ...@@ -240,7 +240,7 @@ class CalendarScheduleModel
$entry['icons'][] = [ $entry['icons'][] = [
'url' => $bind_url, 'url' => $bind_url,
'image' => Icon::create('visibility-invisible', 'info_alt')->asImagePath(16), 'image' => Icon::create('visibility-invisible', Icon::ROLE_INFO_ALT)->asImagePath(),
'onClick' => "function(id) { window.location = '". $bind_url ."'; }", 'onClick' => "function(id) { window.location = '". $bind_url ."'; }",
'title' => _("Diesen Eintrag wieder einblenden"), 'title' => _("Diesen Eintrag wieder einblenden"),
]; ];
...@@ -252,7 +252,7 @@ class CalendarScheduleModel ...@@ -252,7 +252,7 @@ class CalendarScheduleModel
. $seminar_id . '/' . $cycle->getMetaDateId()); . $seminar_id . '/' . $cycle->getMetaDateId());
$entry['icons'][] = [ $entry['icons'][] = [
'url' => $unbind_url, 'url' => $unbind_url,
'image' => Icon::create('visibility-visible', 'info_alt')->asImagePath(16), 'image' => Icon::create('visibility-visible', Icon::ROLE_INFO_ALT)->asImagePath(),
'onClick' => "function(id) { window.location = '". $unbind_url ."'; }", 'onClick' => "function(id) { window.location = '". $unbind_url ."'; }",
'title' => _("Diesen Eintrag ausblenden"), 'title' => _("Diesen Eintrag ausblenden"),
]; ];
......
public/assets/images/virtual.png

547 B

...@@ -139,6 +139,10 @@ div.schedule_edit_entry > form { ...@@ -139,6 +139,10 @@ div.schedule_edit_entry > form {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
img {
.square(16px);
}
} }
div.invisible_entry { div.invisible_entry {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment