Skip to content

Commit

Permalink
Renames the style property to cssClass
Browse files Browse the repository at this point in the history
- Fixes: SE-9177
  • Loading branch information
tbiScireum committed Jan 8, 2020
1 parent ab5b503 commit 797e588
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/java/sirius/web/controller/MessageLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ public enum MessageLevel {
*/
PROBLEM("alert-danger");

private String style;
private String cssClass;

MessageLevel(String style) {
this.style = style;
MessageLevel(String cssClass) {
this.cssClass = cssClass;
}

/**
* Returns the Bootstrap CSS class used to render the message.
*
* @return the name of the css class used to render the message
*/
public String getStyle() {
return style;
public String getCssClass() {
return cssClass;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="row">
<div class="col-md-12" id="messageBox">
<i:for type="sirius.web.controller.Message" var="msg" items="user.getMessages()">
<div class="alert @msg.getType().getStyle()">
<div class="alert @msg.getType().getCssClass()">
<i:raw>@msg.getMessage()</i:raw>
<i:if test="msg.getAction() != null">
<i:if test="msg.isActionJavascript()">
Expand Down

0 comments on commit 797e588

Please sign in to comment.