Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
3.1 kB
2
Indexable
Never
<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>
Leave a Comment