Stop using the cloudron name in the oauth views

This commit is contained in:
Johannes Zellner
2015-10-20 12:31:02 +02:00
parent fed03b5b2c
commit 2daf746115
2 changed files with 1 additions and 9 deletions
-1
View File
@@ -32,7 +32,6 @@
<div class="container-fluid">
<div class="navbar-header">
<span class="navbar-brand navbar-brand-icon"><img src="/api/v1/cloudron/avatar" width="40" height="40"/></span>
<span class="navbar-brand"><%= cloudronName %></span>
</div>
</div>
</nav>
+1 -8
View File
@@ -137,14 +137,7 @@ function renderTemplate(res, template, data) {
assert.strictEqual(typeof template, 'string');
assert.strictEqual(typeof data, 'object');
settings.getCloudronName(function (error, cloudronName) {
if (error) console.error(error);
// amend details which the header expects
data.cloudronName = cloudronName || 'Cloudron';
res.render(template, data);
});
res.render(template, data);
}
function sendErrorPageOrRedirect(req, res, message) {