File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2020 <CardCover v-if =" showCardCover" :card-id =" card.id" />
2121 <div class =" card-upper" >
2222 <h4 v-if =" editingTitle === 0" key =" title-view" dir =" auto" >
23- <span class =" dragDisabled" contenteditable =" false" >{{ displayTitle }}</span >
23+ <span class =" dragDisabled" contenteditable =" false" >{{ displayTitle }}</span >
2424 </h4 >
25+ <div v-if =" editingTitle === 0 && card.owner && card.createdAt" class =" card-meta" >
26+ Created by {{ card.owner.displayname }} on {{ formattedCreatedAt }}
27+ </div >
2528 <h4 v-if =" editingTitle >= 1"
2629 key =" title-edit"
2730 dir =" auto"
@@ -127,6 +130,11 @@ export default {
127130 }
128131 },
129132 computed: {
133+ formattedCreatedAt () {
134+ if (! this .card .createdAt ) return ' '
135+ const date = new Date (this .card .createdAt * 1000 )
136+ return date .toLocaleDateString () + ' ' + date .toLocaleTimeString ()
137+ },
130138 ... mapState ({
131139 compactMode : state => state .compactMode ,
132140 showArchived : state => state .showArchived ,
You can’t perform that action at this time.
0 commit comments