-
Notifications
You must be signed in to change notification settings - Fork 2
/
publication-title.html
46 lines (43 loc) · 1.2 KB
/
publication-title.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<link rel="import" href="nextprot-elements-shared-styles.html">
<!--
`publication-title`
Publication title item demo
@demo demo/publication-title-demo.html
-->
<dom-module id="publication-title">
<template>
<style include="nextprot-elements-shared-styles">
:host {
display: block;
}
.title-link {
color: #0F82BA;
}
</style>
<template is="dom-if" if="[[title]]">
<div>
<template is="dom-if" if="[[linkId]]">
<a class="title-link" href="/publication/[[linkId]]" target='_parent'>[[title]]</a>
</template>
<template is="dom-if" if="[[!linkId]]">
<strong>[[title]]</strong>
</template>
</div>
</template>
</template>
<script>
Polymer({
is: 'publication-title',
properties: {
title: {
type: String,
value: ""
},
linkId: {
type: String,
value: ""
}
}
});
</script>
</dom-module>