diff --git a/editor/hub.ts b/editor/hub.ts index 5641da41..471a2969 100644 --- a/editor/hub.ts +++ b/editor/hub.ts @@ -553,11 +553,11 @@ module TDev.Browser { m.fullWhite(); m.add(div("wall-dialog-header", Runtime.appName)); m.add(div("wall-dialog-body", lf("Running against cloud services v{0}.", relId))); + var legalButtons = Cloud.config.legalButtons.map(b => link(b.name, b.url)); var btns: HTMLElement; m.add(btns = div("wall-dialog-buttons", - Cloud.getUserId() ? HTML.mkButton(lf("sign out"),() => TheEditor.logoutDialog()) : undefined, - link(lf("terms of use"), "/terms-of-use"), - link(lf("privacy and cookies"), "/privacy") + Cloud.getUserId() ? HTML.mkButton(lf("sign out"), () => TheEditor.logoutDialog()) : undefined, + legalButtons )); if (EditorSettings.widgets().githubLinks) { @@ -701,7 +701,7 @@ module TDev.Browser { var copyrights = ""; Browser.setInnerHTML(beta, copyrights); diff --git a/rt/cloud.ts b/rt/cloud.ts index b9d3a6b7..af911b71 100644 --- a/rt/cloud.ts +++ b/rt/cloud.ts @@ -194,6 +194,7 @@ module TDev.Cloud { hashtag: string; topicPath: string; localTopicPath: string; + legalButtons: { name: string; url: string; }[]; tdVersion?: string; releaseid?: string; @@ -222,6 +223,10 @@ module TDev.Cloud { liteVersion: null, topicPath: "/docs/", localTopicPath: "#topic:", + legalButtons: [ + { name: "terms of use", url: "/terms-of-use" }, + { name: "privacy and cookies", url: "/privacy"} + ] } export function isArtUrl(url : string) : boolean { diff --git a/storage/wall.ts b/storage/wall.ts index 24c2d5a7..fd473753 100644 --- a/storage/wall.ts +++ b/storage/wall.ts @@ -243,8 +243,7 @@ module TDev { link("try touchdevelop", ""))); m.add(div("wall-dialog-buttons", - link(lf("terms of use"), "/terms-of-use"), - link(lf("privacy and cookies"), "/privacy") + Cloud.config.legalButtons.map(b => link(b.name, b.url)) )); m.show(); diff --git a/www/default.css b/www/default.css index 443e0d71..60f847bf 100644 --- a/www/default.css +++ b/www/default.css @@ -1589,7 +1589,7 @@ height: 100%; bottom: 0; right: 0em; left:0em; - font-size: 0.8em; + font-size: 0.7em; z-index:1; padding: 0.5em;