]> git.proxmox.com Git - pve-manager.git/blob - www/mobile/LXCSummary.js
website: update external links to www.proxmox.com
[pve-manager.git] / www / mobile / LXCSummary.js
1 Ext.define('PVE.LXCSummary', {
2 extend: 'PVE.VMSummaryBase',
3 alias: 'widget.pveLXCSummary',
4
5 statics: {
6 pathMatch: function(loc) {
7 return loc.match(/^nodes\/([^\s/]+)\/lxc\/(\d+)$/);
8 },
9 },
10
11 vmtype: 'lxc',
12
13 config_keys: [
14 'hostname', 'ostype', 'memory', 'swap', 'cpulimit', 'cpuunits',
15 /^net\d+/, 'rootfs', /^mp\d+/, 'nameserver', 'searchdomain', 'description',
16 ],
17
18 initialize: function() {
19 var me = this;
20
21 var match = me.self.pathMatch(me.getAppUrl());
22 if (!match) {
23 throw "pathMatch failed";
24 }
25
26 me.nodename = match[1];
27 me.vmid = match[2];
28
29 me.down('titlebar').setTitle('CT: ' + me.vmid);
30
31 this.callParent();
32 },
33 });