Untitled
unknown
plain_text
a year ago
3.1 kB
10
Indexable
<tr v-for="(properties,key) in JSON.parse(activityLog.properties).old">
<template v-if="Array.isArray(properties) && key == 'question_answers'">
<td colspan="2">
<table class="table table-hover text-nowrap">
<thead>
<th>{{$t("admin.activity_logs.logs.question")}}</th>
<th>{{$t("admin.activity_logs.logs.answer")}}</th>
</thead>
<tbody>
<tr v-for="(item, index) in properties">
<td class="ps-0 pe-0">{{ item.question }}</td>
<td class="ps-0 pe-0">{{ item.answer }}</td>
</tr>
</tbody>
</table>
</td>
</template>
<template v-else>
<td>{{$t("admin.activity_logs.logs." + key)}}</td>
<td v-if="properties == 'on' || properties == 'off'">
{{$t(`admin.activity_logs.logs.${properties}`)}}
</td>
<td v-else>
{{properties}}
</td>
</template>
</tr>Editor is loading...
Leave a Comment