brotherton-erpnext/erpnext/public/js/hub/components/ItemListCard.vue
Faris Ansari 9fb5e1c61b fix(image): New Image component to consistently handle broken images
- psuedo element hack didn't work cross browser
2018-09-07 23:17:29 +05:30

22 lines
595 B
Vue

<template>
<div class="hub-list-item" :data-route="item.route">
<div class="hub-list-left">
<base-image class="hub-list-image" :src="item.image" />
<div class="hub-list-body ellipsis">
<div class="hub-list-title">{{item.item_name}}</div>
<div class="hub-list-subtitle ellipsis">
<slot name="subtitle"></slot>
</div>
</div>
</div>
<div class="hub-list-right" v-if="message">
<span class="text-muted" v-html="frappe.datetime.comment_when(message.creation, true)" />
</div>
</div>
</template>
<script>
export default {
props: ['item', 'message']
}
</script>