[guadec-web-regcfp/develop] Give siteIcon and siteName
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp/develop] Give siteIcon and siteName
- Date: Tue, 31 Mar 2015 12:05:06 +0000 (UTC)
commit 00d7a47034c108bf5efa05097be3502c2f564853
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Tue Mar 31 14:04:57 2015 +0200
Give siteIcon and siteName
public/img/guadec-logo-white.png | Bin 0 -> 6999 bytes
public/javascripts/login.js | 9 +++++++++
views/layouts/main.hbs | 6 +++++-
3 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/public/img/guadec-logo-white.png b/public/img/guadec-logo-white.png
new file mode 100644
index 0000000..a2ba645
Binary files /dev/null and b/public/img/guadec-logo-white.png differ
diff --git a/public/javascripts/login.js b/public/javascripts/login.js
index 1d7bc4f..aaff8fa 100644
--- a/public/javascripts/login.js
+++ b/public/javascripts/login.js
@@ -1,3 +1,12 @@
+var login_args = {
+ siteName: "GUADEC Registration",
+ siteLogo: "/img/guadec-logo-white.png"
+};
+
+var login_args_development = {
+ siteName: "GUADEC Registration DEVELOPMENT"
+};
+
navigator.id.watch({
loggedInUser: currentUser,
onlogin: function(assertion) {
diff --git a/views/layouts/main.hbs b/views/layouts/main.hbs
index 4c2b8da..1c3cd68 100644
--- a/views/layouts/main.hbs
+++ b/views/layouts/main.hbs
@@ -36,7 +36,11 @@
{{#if session.currentUser}}
<button id="logoutBtn" onclick="javascript: navigator.id.logout();">Log out</button>
{{else}}
- <button id="loginBtn" onclick="javascript: navigator.id.request();">Log in with
Persona</button>
+ {{#if development}}
+ <button id="loginBtn" onclick="javascript:
navigator.id.request(login_args_development);">Log in with Persona</button>
+ {{else}}
+ <button id="loginBtn" onclick="javascript: navigator.id.request(login_args);">Log in
with Persona</button>
+ {{/if}}
{{/if}}
</div>
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]