mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-25 18:52:20 -05:00
Add logout button to settings page
This commit is contained in:
parent
963f677053
commit
8994efb96b
@ -221,7 +221,7 @@ exports.pages.groupchat = function anonymous(locals) {
|
|||||||
exports.pages.main = function anonymous(locals) {
|
exports.pages.main = function anonymous(locals) {
|
||||||
var buf = [];
|
var buf = [];
|
||||||
with (locals || {}) {
|
with (locals || {}) {
|
||||||
buf.push('<section class="page main"><div><h4>Current status</h4><div contenteditable="true" class="status"></div></div><div id="avatarChanger"><h4>Change Avatar</h4><div class="uploadRegion"><p>Drag and drop a new avatar here</p><img/><form><input id="uploader" type="file"/></form></div></div><div><h4>Add / Approve Contacts</h4><input type="text" id="addcontact" class="inline"/><button class="addContact">Add</button><ul id="contactrequests"></ul></div><div><h4>Desktop Integration</h4><button class="enableAlerts">Enable alerts</button><button class="primary installFirefox">Install app</button></div></section>');
|
buf.push('<section class="page main"><div><h4>Current status</h4><div contenteditable="true" class="status"></div></div><div id="avatarChanger"><h4>Change Avatar</h4><div class="uploadRegion"><p>Drag and drop a new avatar here</p><img/><form><input id="uploader" type="file"/></form></div></div><div><h4>Add / Approve Contacts</h4><input type="text" id="addcontact" class="inline"/><button class="addContact">Add</button><ul id="contactrequests"></ul></div><div><h4>Desktop Integration</h4><button class="enableAlerts">Enable alerts</button><button class="primary installFirefox">Install app</button></div><div><button class="logout">Logout</button></div></section>');
|
||||||
}
|
}
|
||||||
return buf.join("");
|
return buf.join("");
|
||||||
};
|
};
|
||||||
|
@ -22,3 +22,6 @@ section.page.main
|
|||||||
h4 Desktop Integration
|
h4 Desktop Integration
|
||||||
button.enableAlerts Enable alerts
|
button.enableAlerts Enable alerts
|
||||||
button.primary.installFirefox Install app
|
button.primary.installFirefox Install app
|
||||||
|
|
||||||
|
div
|
||||||
|
button.logout Logout
|
||||||
|
@ -17,6 +17,7 @@ module.exports = HumanView.extend({
|
|||||||
events: {
|
events: {
|
||||||
'click a[href]': 'handleLinkClick',
|
'click a[href]': 'handleLinkClick',
|
||||||
'click .reconnect': 'handleReconnect',
|
'click .reconnect': 'handleReconnect',
|
||||||
|
'click .logout': 'handleLogout',
|
||||||
'blur #me .status': 'handleStatusChange'
|
'blur #me .status': 'handleStatusChange'
|
||||||
},
|
},
|
||||||
classBindings: {
|
classBindings: {
|
||||||
@ -67,5 +68,8 @@ module.exports = HumanView.extend({
|
|||||||
status: text,
|
status: text,
|
||||||
caps: client.disco.caps
|
caps: client.disco.caps
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
handleLogout: function (e) {
|
||||||
|
app.navigate('/logout');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# 0.0.1 1388535003037
|
# 0.0.1 1388539211085
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
/app.js
|
/app.js
|
||||||
|
Loading…
Reference in New Issue
Block a user