Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ qx.Class.define("osparc.editor.HtmlEditor", {

this.getChildControl("preview-html");
this.getChildControl("subtitle").set({
value: this.tr("Supports HTML")
value: this.tr("Supports HTML"),
url: "https://en.wikipedia.org/wiki/HTML",
});
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ qx.Class.define("osparc.editor.MarkdownEditor", {

this.getChildControl("preview-markdown");
this.getChildControl("subtitle").set({
value: this.tr("Markdown supported")
value: this.tr("Markdown supported"),
url: "https://en.wikipedia.org/wiki/Markdown",
});
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ qx.Class.define("osparc.editor.TextEditor", {
writePage.add(control, {
flex: 1
});
const subtitle = this.getChildControl("subtitle").set({
value: this.tr("Supports HTML")
});
const subtitle = this.getChildControl("subtitle");
writePage.add(subtitle);
tabs.add(writePage);
break;
}
case "subtitle":
control = new qx.ui.basic.Label().set({
control = new osparc.ui.basic.LinkLabel().set({
font: "text-12"
});
this._add(control);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ qx.Class.define("osparc.info.CommentUI", {

__buildLayout: function() {
const thumbnail = this.getChildControl("thumbnail");
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail("", "", 32));

const userName = this.getChildControl("user-name");
userName.setValue("Unknown");

const date = new Date(this.__comment["modified"]);
const date2 = osparc.utils.Utils.formatDateAndTime(date);
Expand All @@ -131,7 +129,14 @@ qx.Class.define("osparc.info.CommentUI", {
if (user) {
thumbnail.setSource(user.getThumbnail());
userName.setValue(user.getLabel());
} else {
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
userName.setValue("Unknown user");
}
})
.catch(() => {
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
userName.setValue("Unknown user");
});

this.getChildControl("spacer");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ qx.Class.define("osparc.utils.Avatar", {
type: "static",

statics: {
emailToThumbnail: function(email, username) {
return this.__getUrl(email, username, 32);
},

__getUrl: function(email, username, size = 100) {
email = email || "";
emailToThumbnail: function(email = "", username = "??", size = 32) {
// MD5 (Message-Digest Algorithm) by WebToolkit
const MD5 = function(s) {
function L(k, d) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@
"title": "${replace_me_product_name}",
"newStudyLabel": "New Project",
"idToWidget": "startS4LButton"
}, {
"resourceType": "service",
"expectedKey": "simcore/services/dynamic/s4l-ui-framework",
"title": "Sim4Life.framework",
"newStudyLabel": "Sim4Life.framework"
}]
}
},
Expand Down
Loading