>
|
if (ForumPerm::has('sort_area', $seminar_id)) : ?>
= Assets::img('anfasser_48.png', ['class' => 'handle js']) ?>
endif ?>
">
if ($entry['chdate'] >= $visitdate && $entry['user_id'] !== $GLOBALS['user']->id): ?>
= Icon::create('forum', Icon::ROLE_ATTENTION)->asImg([
'title' => _('Dieser Eintrag ist neu!'),
]) ?>
else : ?>
$num_postings = ForumVisit::getCount($entry['topic_id'], $visitdate) ?>
= Icon::create('forum', $num_postings > 0 ? Icon::ROLE_ATTENTION : Icon::ROLE_INFO)->asImg([
'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id'], $constraint['depth']),
]) ?>
endif ?>
|
>
">
= htmlReady($entry['name_raw']) ?>
$description = ForumEntry::killFormat(ForumEntry::killEdit($entry['content_raw'])) ?>
= htmlReady(mila($description, 150)) ?>
if (ForumPerm::has('edit_area', $seminar_id) && Request::get('edit_area') == $entry['topic_id']) : ?>
= $this->render_partial('course/forum/area/_edit_area_form', compact('entry')) ?>
endif ?>
|
= number_format(max($entry['num_postings'] - 1, 0), 0, ',', '.') ?>
|
= $this->render_partial('course/forum/index/_last_post.php', compact('entry')) ?>
|
$issue_id = ForumIssue::getIssueIdForThread($entry['topic_id']);
$action_menu = ActionMenu::get();
if (!empty($entry['last_posting']['topic_id'])) {
$action_menu->addLink(
$controller->url_for("course/forum/index/index/{$entry['last_posting']['topic_id']}#{$entry['last_posting']['topic_id']}"),
_('Zur letzten Antwort'),
Icon::create('forum'),
is_array($entry['last_posting']) ? ['class' => 'hidden-small-up'] : ['disabled' => '']
)->condition(ForumPerm::has('edit_area', $seminar_id) && $issue_id);
}
$action_menu->addLink(
URLHelper::getURL("dispatch.php/course/topics/edit/{$issue_id}"),
_('Zum Ablaufplan'),
Icon::create('info-circle', Icon::ROLE_STATUS_RED),
['title' => _('Dieser Bereich ist einem Thema zugeordnet und kann hier nicht editiert werden. Die Angaben können im Ablaufplan angepasst werden.')]
)->condition(ForumPerm::has('edit_area', $seminar_id) && !$issue_id)
->addLink(
$controller->url_for('course/forum/index', ['edit_area' => $entry['topic_id']]),
_('Name/Beschreibung des Bereichs ändern'),
Icon::create('edit'),
[
'class' => 'edit-area',
'onclick' => "STUDIP.Forum.editArea('{$entry['topic_id']}');return false;",
]
)->condition(ForumPerm::has('remove_area', $seminar_id))
->addLink(
$controller->url_for("course/forum/index/delete_entry/{$entry['topic_id']}"),
_('Bereich mitsamt allen Einträgen löschen!'),
Icon::create('trash'),
[
'class' => 'delete-area',
'onclick' => "STUDIP.Forum.deleteArea(this, '{$entry['topic_id']}'); return false;",
]
) ?>
= $action_menu ?>
|