Ext.define('APM.view.Info', {
	extend: 'Ext.panel.Panel',
	alias: 'widget.info',
	border: false,
	height: 175,
	setStarted: function() {
		this.update('<div class="apm-info-started">This access point is ' +
			'started and free. You can take it right now.</div>');
	},
	setStarting: function() {
		this.update('<div class="apm-info-starting">This access point is ' +
			'starting. You will be able to manage it soon.</div>');
	},
	setManaged: function(owner, deadline) {
		this.update('<div class="apm-info-managed">This access point is ' +
			'taken by <strong>' + owner + '</strong>. It will be ' +
			'available <em>' + deadline + '</em>.</div>');
	},
	setManagedByUser: function(deadline) {
		this.update('<div class="apm-info-managed">You can manage this ' +
			'access point until <em>' + deadline + '</em>.</div>');
	},
	setStopped: function() {
		this.update('<div class="apm-info-stopped">This access point is ' +
			'stopped and free. You can take it right now.</div>');
	}
});
