]>
git.proxmox.com Git - proxmox-widget-toolkit.git/blob - src/panel/EOLNotice.js
43119d165bcaf75328579f1b1c15cbb4d48ad440
1 // not realy a panel descendant, but its the best (existing) place for this
2 Ext
.define('Proxmox.EOLNotice', {
3 extend
: 'Ext.Component',
4 alias
: 'widget.proxmoxEOLNotice',
18 'data-qtip': gettext("You won't get any security fixes after the End-Of-Life date. Please consider upgrading."),
21 initComponent: function() {
24 let href
= me
.href
.startsWith('http') ? me
.href
: `https://${me.href}`;
25 let message
= Ext
.String
.format(
26 gettext('Support for {0} {1} ends on {2}'), me
.product
, me
.version
, me
.eolDate
);
28 me
.html
= `<i class="fa fa-exclamation-triangle"></i>
29 <a href="${href}" target="_blank">${message} <i class="fa fa-external-link"></i></a>