aboutsummaryrefslogtreecommitdiff
path: root/app/views/oer/market/discussion.php
blob: 432439eca30c4898ecad35a21f8aba3f05ddb884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<a href="<?= $controller->link_for("oer/market/details/".$thread['context_id']) ?>">
    <?= Icon::create('arr_1left')->asSvg(['class' => 'text-bottom']) ?>
    <?= _('Zurück') ?>
</a>

<?
$thread_data = $thread->getJSONData(
    50,
    null,
    Request::get("search")
);
?>

<div class="blubber_panel vueinstance"
     data-active_thread="<?= htmlReady($thread->getId()) ?>"
     data-thread_data="<?= htmlReady(json_encode($thread_data ?: ['thread_posting' => []])) ?>"
     data-threads_more_down="0"
     :class="waiting ? 'waiting' : ''">

    <div id="blubber_stream_container">
        <blubber-thread :thread_data="thread_data"></blubber-thread>
    </div>

    <div class="blubber_sideinfo responsive-hidden" v-if="thread_data.context_info || thread_data.thread_posting.content">
        <div class="posting" v-show="display_context_posting">
            <div class="header">
                <studip-date-time :timestamp="thread_data.thread_posting.mkdate" :relative="true"></studip-date-time>
                <div>{{ thread_data.thread_posting.user_name }}</div>
            </div>
            <div class="content" v-html="thread_data.thread_posting.html"></div>
        </div>
        <div v-if="thread_data.context_info" class="context_info" v-html="thread_data.context_info"></div>
    </div>

</div>