Switching from config file to parsing homelink from url
Этот коммит содержится в:
@@ -74,7 +74,7 @@ var FindTeamDomain = React.createClass({
|
|||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<div>
|
<div>
|
||||||
<span>{"Want to create your own " + strings.Team + "?"} <a href={config.HomeLink} className="signup-team-login">Sign up now</a></span>
|
<span>{"Want to create your own " + strings.Team + "?"} <a href={utils.getHomeLink()} className="signup-team-login">Sign up now</a></span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@@ -188,7 +188,7 @@ module.exports = React.createClass({
|
|||||||
<a href="/reset_password">I forgot my password</a>
|
<a href="/reset_password">I forgot my password</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="external-link">
|
<div className="external-link">
|
||||||
<span>{"Want to create your own " + strings.Team + "?"} <a href={config.HomeLink} className="signup-team-login">Sign up now</a></span>
|
<span>{"Want to create your own " + strings.Team + "?"} <a href={utils.getHomeLink()} className="signup-team-login">Sign up now</a></span>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -730,3 +730,15 @@ Image.prototype.load = function(url, progressCallback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Image.prototype.completedPercentage = 0;
|
Image.prototype.completedPercentage = 0;
|
||||||
|
|
||||||
|
module.exports.getHomeLink = function() {
|
||||||
|
if (config.HomeLink != "") {
|
||||||
|
return config.HomeLink;
|
||||||
|
}
|
||||||
|
var parts = window.location.host.split(".");
|
||||||
|
if (parts.length <= 1) {
|
||||||
|
return window.location.host;
|
||||||
|
}
|
||||||
|
parts[0] = "www";
|
||||||
|
return parts.join(".");
|
||||||
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ var config = {
|
|||||||
AboutLink: "/static/help/configure_links.html",
|
AboutLink: "/static/help/configure_links.html",
|
||||||
HelpLink: "/static/help/configure_links.html",
|
HelpLink: "/static/help/configure_links.html",
|
||||||
ReportProblemLink: "/static/help/configure_links.html",
|
ReportProblemLink: "/static/help/configure_links.html",
|
||||||
HomeLink: "http://localhost:8065",
|
HomeLink: "",
|
||||||
|
|
||||||
ThemeColors: ["#2389d7", "#008a17", "#dc4fad", "#ac193d", "#0072c6", "#d24726", "#ff8f32", "#82ba00", "#03b3b2", "#008299", "#4617b4", "#8c0095", "#004b8b", "#004b8b", "#570000", "#380000", "#585858", "#000000"]
|
ThemeColors: ["#2389d7", "#008a17", "#dc4fad", "#ac193d", "#0072c6", "#d24726", "#ff8f32", "#82ba00", "#03b3b2", "#008299", "#4617b4", "#8c0095", "#004b8b", "#004b8b", "#570000", "#380000", "#585858", "#000000"]
|
||||||
};
|
};
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user