Mercurial > lada > lada-client
diff app/view/Viewport.js @ 800:4b9b1d3ad9f1
Added about window, There are still some todos when retrieving the server version, the asynchronous request seems to fail and does not evaluate in time
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 21 May 2015 17:59:48 +0200 |
parents | 56f91254cd23 |
children | fb99332bb48e |
line wrap: on
line diff
--- a/app/view/Viewport.js Thu May 21 15:54:25 2015 +0200 +++ b/app/view/Viewport.js Thu May 21 17:59:48 2015 +0200 @@ -22,6 +22,7 @@ ], layout: 'fit', initComponent: function() { + var i18n = Lada.getApplication().bundle; this.items = [{ title: '<center>Labordatenerfassung</center>', layout: 'border', @@ -43,32 +44,8 @@ text: 'Info', menu: { items: [{ - text: 'About', + text: i18n.getMsg('about.button.title'), action: 'about' - }, { - text: 'Anmeldeinformationen', - handler: function(){ - logintime = new Date(Lada.logintime); - Ext.Msg.alert("Anmeldeinformationen", - "<p>" - + "Sie sind angemeldet mit der Kennung:" - + "<br />" - + Lada.username - + "</p>" - + "<p>" - + "Sie sind Mitglied der folgenden " - + "Gruppen:" - + "<br />" - + Lada.userroles - + "</p>" - + "<p>" - + "<br/>" - + "Die Anmeldung wurde durchgeführt um:" - + "<br />" - + Ext.Date.format(logintime, 'd.m.Y H:i:s P') - + "</p>" - ); - } } ] }