Skip to content
Snippets Groups Projects
Commit d906cd4f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

third batch of changes, re #2193

Merge request studip/studip!1425
parent 5d014803
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -101,7 +101,6 @@
</a>
</td>
</tr>
<? $i++ ?>
<? endforeach; ?>
</tbody>
</table>
......
......@@ -8,10 +8,10 @@
<th class="actions">
<?= ActionMenu::get()
->setContext($th_title)
->condition($mail_status)
->condition($mail_status ?? false)
->addLink(
$controller->url_for('messages/write?filter=inst_status', [
'who' => $key,
'who' => $key ?? '',
'default_subject' => Context::get()->Name,
'inst_id' => Context::getId(),
]),
......@@ -19,10 +19,10 @@
Icon::create('mail', 'clickable'),
['data-dialog' => '']
)
->condition($mail_gruppe)
->condition($mail_gruppe ?? false)
->addLink(
$controller->url_for('messages/write', [
'group_id' => $group->id,
'group_id' => $group->id ?? null,
'default_subject' => Context::get()->Name,
]),
sprintf(_('Nachricht an alle Mitglieder der Gruppe %s verschicken'), $th_title),
......
......@@ -19,8 +19,8 @@
<td class="toggle-indicator">
<a class="mvv-load-in-new-row"
href="<?= $controller->action_link('details_studiengang/' . $studiengang->id) ?>">
<? $ampel_icon = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['icon'] ?>
<? $ampelstatus = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['name'] ?>
<? $ampel_icon = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['icon'] ?? null; ?>
<? $ampelstatus = $GLOBALS['MVV_STUDIENGANG']['STATUS']['values'][$studiengang->stat]['name'] ?? null; ?>
<? if ($ampel_icon) : ?>
<?= $ampel_icon->asImg(['title' => $ampelstatus, 'style' => 'vertical-align: text-top;']) ?>
<? endif; ?>
......
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