diff --git a/client/src/components/Common/Published.vue b/client/src/components/Common/Published.vue index 063b53a6f10..e19b8aaa337 100644 --- a/client/src/components/Common/Published.vue +++ b/client/src/components/Common/Published.vue @@ -11,8 +11,9 @@

About this {{ modelTitle }}

-

{{ details.title || details.name }}

- +

{{ item.title || item.name }}

+ user avatar +

Author

{{ owner }}
@@ -25,7 +26,7 @@ Published {{ plural }} by {{ owner }}.
- + @@ -40,21 +41,24 @@ export default { StatelessTags, }, props: { - details: { + item: { type: Object, required: true, }, }, computed: { + gravatarSource() { + return `https://secure.gravatar.com/avatar/${this.item.email_hash}?d=identicon`; + }, modelTitle() { - const modelClass = this.details ? this.details.model_class : "Item"; + const modelClass = this.item ? this.item.model_class : "Item"; if (modelClass == "StoredWorkflow") { return "Workflow"; } return modelClass; }, owner() { - return this.details.owner || this.details.username || "Unavailable"; + return this.item.owner || this.item.username || "Unavailable"; }, plural() { if (this.modelTitle == "History") { @@ -66,7 +70,7 @@ export default { return this.plural.toLowerCase(); }, publishedByUser() { - return `/${this.pluralPath}/list_published?f-username=${this.details.username}`; + return `/${this.pluralPath}/list_published?f-username=${this.item.username}`; }, urlAll() { return `/${this.pluralPath}/list_published`; diff --git a/client/src/components/History/HistoryPublished.vue b/client/src/components/History/HistoryPublished.vue index 3ccbdd55779..fb9904e9ae7 100644 --- a/client/src/components/History/HistoryPublished.vue +++ b/client/src/components/History/HistoryPublished.vue @@ -1,5 +1,5 @@