Permalink
Browse files

feat(slacknotes): show link time

  • Loading branch information...
eteubert committed Jan 13, 2019
1 parent c4c824e commit 53077b10c3509cf2238e80ec3371f697b28b446a
Showing with 17 additions and 1 deletion.
  1. +17 −1 js/src/components/Slacknotes.vue
@@ -73,7 +73,11 @@
<a :href="link.link" target="_blank">{{ link.link }}</a>
</span>
</div>
<div class="slack-link-date">{{ linkDate(link) }}</div>
<div class="slack-link-date">
{{ linkDate(link) }}
<br>
{{ linkTime(link) }}
</div>
</div>
</div>
</div>
@@ -337,6 +341,17 @@ export default {
const d = date.getUTCDate();
return d + "." + m + "." + y;
},
linkTime: function (link) {
const date = link.datetime
const h = date.getHours()
let m = date.getMinutes()
if (m < 10) {
m = "0" + m
}
return h + ":" + m
}
},
@@ -437,6 +452,7 @@ export default {
.slack-link-date {
padding-left: 6px;
text-align: right;
}
.fade-enter-active,

0 comments on commit 53077b1

Please sign in to comment.