Revision 1affb934
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationMessagesPopup.java | ||
---|---|---|
31 | 31 |
import eu.etaxonomy.cdm.ext.registration.messages.Message; |
32 | 32 |
import eu.etaxonomy.cdm.vaadin.event.error.DelegatingErrorHandler; |
33 | 33 |
import eu.etaxonomy.cdm.vaadin.security.AccessRestrictedView; |
34 |
import eu.etaxonomy.cdm.vaadin.theme.EditValoTheme; |
|
34 | 35 |
import eu.etaxonomy.vaadin.mvp.AbstractPopupView; |
35 | 36 |
|
36 | 37 |
@SpringComponent |
... | ... | |
66 | 67 |
protected void initContent() { |
67 | 68 |
|
68 | 69 |
messagesPanel = new Panel(); |
70 |
messagesPanel.setStyleName(EditValoTheme.PANEL_CONTENT_PADDING_LEFT); |
|
69 | 71 |
|
70 | 72 |
newMessageField = new TextArea(); |
71 | 73 |
newMessageField.setNullRepresentation(""); |
... | ... | |
180 | 182 |
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm"); |
181 | 183 |
|
182 | 184 |
for(Message message : messages){ |
183 |
Label item = new Label("<span class=\"date-time\">(" + dateFormat.format(message.getCreatedOn()) + ")</span> <span class=\"user-name\"><span class=\"user-name\">" + message.getFrom().getUsername() + "</span>: " + message.getText());
|
|
185 |
Label item = new Label("<span class=\"date-time\">(" + dateFormat.format(message.getCreatedOn()) + ")</span> <span class=\"user-name\">" + message.getFrom().getUsername() + "</span>: <span class=\"message-text\">" + message.getText() + "</span>");
|
|
184 | 186 |
item.setStyleName("message-item"); |
185 | 187 |
item.setContentMode(ContentMode.HTML); |
186 | 188 |
messagesList.addComponent(item); |
Also available in: Unified diff
ref #7269 improving layout of RegistrationMessagesPopup and harmonization of styles