2018-08-26 14:39:02 +00:00
|
|
|
<template>
|
|
|
|
<div class="hub-list-item" :data-route="item.route">
|
|
|
|
<div class="hub-list-left">
|
|
|
|
<img class="hub-list-image" v-img-src="item.image">
|
|
|
|
<div class="hub-list-body ellipsis">
|
|
|
|
<div class="hub-list-title">{{item.item_name}}</div>
|
|
|
|
<div class="hub-list-subtitle ellipsis">
|
2018-08-27 14:21:36 +00:00
|
|
|
<slot name="subtitle"></slot>
|
2018-08-26 14:39:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-27 14:21:36 +00:00
|
|
|
<div class="hub-list-right" v-if="message">
|
2018-08-26 14:39:02 +00:00
|
|
|
<span class="text-muted" v-html="frappe.datetime.comment_when(message.creation, true)" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: ['item', 'message']
|
|
|
|
}
|
|
|
|
</script>
|