thelounge/client/components/Special/ListBans.vue

40 lines
826 B
Vue
Raw Normal View History

2018-07-10 11:16:24 +02:00
<template>
<table class="ban-list">
<thead>
<tr>
<th class="hostmask">Banned</th>
<th class="banned_by">Banned By</th>
<th class="banned_at">Banned At</th>
</tr>
</thead>
<tbody>
2019-07-17 11:33:59 +02:00
<tr v-for="ban in channel.data" :key="ban.hostmask">
<td class="hostmask"><ParsedMessage :network="network" :text="ban.hostmask" /></td>
2018-07-12 10:41:40 +02:00
<td class="banned_by">{{ ban.banned_by }}</td>
2020-01-08 10:11:44 +01:00
<td class="banned_at">{{ localetime(ban.banned_at) }}</td>
2018-07-10 11:16:24 +02:00
</tr>
</tbody>
</table>
</template>
<script>
import ParsedMessage from "../ParsedMessage.vue";
2020-01-08 10:11:44 +01:00
import localetime from "../../js/helpers/localetime";
2018-07-10 11:16:24 +02:00
export default {
name: "ListBans",
components: {
ParsedMessage,
},
2018-07-10 11:16:24 +02:00
props: {
2018-07-19 19:44:24 +02:00
network: Object,
2018-07-10 11:16:24 +02:00
channel: Object,
},
2020-01-08 10:11:44 +01:00
methods: {
localetime(date) {
return localetime(date);
},
},
2018-07-10 11:16:24 +02:00
};
</script>