Browse Source

display user/channel comments in a htmleditor

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
dbc098fba1
  1. 21
      pyweb/mumble/media/js/channelviewerplugins.js

21
pyweb/mumble/media/js/channelviewerplugins.js

@ -25,8 +25,16 @@ Ext.ux.MumbleUserEditor = Ext.extend( Ext.Component, {
activeTab: 0, activeTab: 0,
border: false, border: false,
items: [{ items: [{
html: userdata.comment || gettext("No user comment set"),
xtype: "form",
border: false,
title: gettext("User comment"), title: gettext("User comment"),
items: [{
xtype: "htmleditor",
fieldLabel: 'x',
hideLabel: true,
name: "comment",
value: userdata.comment,
}],
}, { }, {
title: gettext("Avatar"), title: gettext("Avatar"),
html: '<img src="http://www.gravatar.com/avatar/6a11052bfa1ae52aa63fc0001417158d.jpg?d=monsterid&s=80" />', html: '<img src="http://www.gravatar.com/avatar/6a11052bfa1ae52aa63fc0001417158d.jpg?d=monsterid&s=80" />',
@ -111,8 +119,17 @@ Ext.ux.MumbleChannelEditor = Ext.extend( Ext.Component, {
xtype: "tabpanel", xtype: "tabpanel",
activeTab: 0, activeTab: 0,
items: [{ items: [{
html: chandata.description || gettext("No channel description set"),
xtype: "form",
border: false,
title: gettext("Channel description"), title: gettext("Channel description"),
defaults: { "anchor": "-20px" },
items: [{
xtype: "htmleditor",
fieldLabel: 'x',
hideLabel: true,
name: "description",
value: chandata.description,
}],
}], }],
}], }],
width: 500, width: 500,

Loading…
Cancel
Save