Skip to content

Commit

Permalink
ELEMENTS-1731: fix display of long username under activity section
Browse files Browse the repository at this point in the history
  • Loading branch information
alokhyland committed Apr 28, 2024
1 parent 368dd93 commit 0c231aa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions elements/nuxeo-document-info/nuxeo-document-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ Polymer({
<div class="item">
<label>[[i18n('documentInfo.publications')]]</label>
<div>
<a href$="[[_urlForPub(document)]]">
[[document.contextParameters.publications.resultsCount]]
</a>
<a href$="[[_urlForPub(document)]]"> [[document.contextParameters.publications.resultsCount]] </a>
</div>
</div>
</template>
Expand All @@ -92,7 +90,7 @@ Polymer({
</div>
<div class="item">
<label>[[i18n('documentInfo.by')]]</label>
<nuxeo-user-tag user="[[document.properties.dc:creator]]"></nuxeo-user-tag>
<nuxeo-tags type="user" items="[[_creatorList]]"></nuxeo-tags>
</div>
<div class="item">
<label>[[i18n('documentInfo.contributors')]]</label>
Expand All @@ -113,6 +111,10 @@ Polymer({
value: false,
reflectToAttribute: true,
},
_creatorList: {
type: Array,
value: [],
},
},

_showPub(doc) {
Expand All @@ -130,6 +132,9 @@ Polymer({
this.document.contextParameters &&
this.document.contextParameters.runningWorkflows &&
this.document.contextParameters.runningWorkflows.length > 0;
if (this.document && this.document.properties) {
this._creatorList = [this.document.properties['dc:creator']];
}
},

_urlForPub() {
Expand Down

0 comments on commit 0c231aa

Please sign in to comment.