Skip to content

Commit e6b30f9

Browse files
committed
remove authors from spotlight and posters
1 parent 8b6bc10 commit e6b30f9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/ml4u-list-item.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,11 @@
230230
</div>
231231
<div class="wtf session-title">
232232
{{listItem.session}}
233+
<template is="dom-if" if="{{displayAuthors}}">
233234
<div secondary>
234235
<span id="authorsString" class="session-chair">{{authorsString}}</span>
235236
</div>
237+
</template>
236238
<template is="dom-if" if="{{isBookmarked}}">
237239
<iron-icon icon="icons:bookmark" class="bookmarked"></iron-icon>
238240
</template>
@@ -261,6 +263,10 @@
261263
type: String,
262264
computed: 'computeAuthorsString(listItem)'
263265
},
266+
displayAuthors: {
267+
type: String,
268+
computed: 'computeDisplayAuthors(listItem)'
269+
},
264270
encompassingSessionType: {
265271
type: String,
266272
},
@@ -292,6 +298,18 @@
292298
notify: true
293299
}
294300
},
301+
computeDisplayAuthors: function(listItem) {
302+
if (listItem.type_code == "spotlight") {
303+
return false;
304+
}
305+
if (listItem.type_code == "poster") {
306+
return false;
307+
}
308+
if (listItem.type_code == "demonstration") {
309+
return false;
310+
}
311+
return true;
312+
},
295313
computeIsOral: function() {
296314
return this.encompassingSessionType == "oral";
297315
},

0 commit comments

Comments
 (0)