comparison app/view/window/About.js @ 805:c6e9bcda69b8

About Window
author Dustin Demuth <dustin@intevation.de>
date Fri, 22 May 2015 14:35:18 +0200
parents 646779690e20
children def27cdd0dfa
comparison
equal deleted inserted replaced
804:0840c4cf2273 805:c6e9bcda69b8
35 handler: this.close 35 handler: this.close
36 }]; 36 }];
37 this.items = [{ 37 this.items = [{
38 border: 0, 38 border: 0,
39 autoscroll: 'true', 39 autoscroll: 'true',
40 layout: 'vbox',
41 items: [{ 40 items: [{
42 xtype: 'text', 41 xtype: 'panel',
43 style: { 42 border: 0,
44 width: '95%', 43 layout: 'fit',
45 marginBottom: '5px' 44 bodyPadding: 20,
46 }, 45 html: '<p>'
47 text: i18n.getMsg('about.window.text.login') 46 + i18n.getMsg('about.window.text.login')
48 }, { 47 + '<br />'
49 xtype: 'text', 48 + Lada.username
50 style: { 49 + '</p>'
51 width: '95%', 50 + '<p>'
52 marginBottom: '5px' 51 + i18n.getMsg('about.window.text.roles')
53 }, 52 + this.rolesToHtml()
54 text: Lada.username 53 + '</p>'
55 }, { 54 + '<p>'
56 xtype: 'text', 55 + i18n.getMsg('about.window.text.logintime')
57 style: { 56 + '<br />'
58 width: '95%', 57 + Ext.Date.format(new Date(Lada.logintime), 'd.m.y h:i:s P')
59 marginBottom: '5px' 58 + '</p>'
60 }, 59 + '<p>'
61 text: i18n.getMsg('about.window.text.roles') 60 + i18n.getMsg('about.window.text.serverversion')+ ' '
62 }, { 61 + Lada.serverVersion
63 xtype: 'text', 62 + '</p>'
64 style: { 63 + '<p>'
65 width: '95%', 64 + i18n.getMsg('about.window.text.clientversion')+' '
66 marginBottom: '5px' 65 + Lada.clientVersion
67 }, 66 + '</p>'
68 text: Lada.userroles
69 }, {
70 xtype: 'text',
71 style: {
72 width: '95%',
73 marginBottom: '5px'
74 },
75 text: i18n.getMsg('about.window.text.logintime')
76 }, {
77 xtype: 'text',
78 style: {
79 width: '95%',
80 marginBottom: '5px'
81 },
82 text: Ext.Date.format(new Date(Lada.logintime), 'd.m.Y H:i:s P')
83 }, {
84 xtype: 'text',
85 style: {
86 width: '95%',
87 marginBottom: '5px'
88 },
89 text: i18n.getMsg('about.window.text.serverversion')
90 }, {
91 xtype: 'text',
92 style: {
93 width: '95%',
94 marginBottom: '5px'
95 },
96 text: Lada.serverversion
97 }, {
98 xtype: 'text',
99 style: {
100 width: '95%',
101 marginBottom: '5px'
102 },
103 text: i18n.getMsg('about.window.text.clientversion')
104 }, {
105 xtype: 'text',
106 style: {
107 width: '95%',
108 marginBottom: '5px'
109 },
110 text: Lada.clientversion
111 }] 67 }]
112 }]; 68 }];
113 69
114 this.callParent(arguments); 70 this.callParent(arguments);
71 },
72
73 rolesToHtml: function() {
74 var roles = '';
75 var r = Lada.userroles.split(',');
76 var i;
77 for (i in r){
78 roles += '<br />' + r[i];
79 }
80 return roles;
115 } 81 }
116 }); 82 });

http://lada.wald.intevation.org