Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new property for managing the themed top bar's title (#1524)
- Loading branch information
Showing
8 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
bootstraps-themed/bootstrap-mta/src/main/resources/windup-config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
bootstraps-themed/bootstrap-mtr/src/main/resources/windup-config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
bootstraps-themed/bootstrap-tackle/src/main/resources/windup-config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
bootstraps-themed/bootstrap-windup/src/main/resources/windup-config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...g/api/src/main/java/org/jboss/windup/reporting/freemarker/GetWindupTopBarTitleMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.jboss.windup.reporting.freemarker; | ||
|
||
import java.util.List; | ||
|
||
import org.jboss.windup.util.ThemeProvider; | ||
|
||
import freemarker.template.TemplateModelException; | ||
|
||
public class GetWindupTopBarTitleMethod implements WindupFreeMarkerMethod { | ||
@Override | ||
public String getDescription() { | ||
return "Returns the tool top bar title for the current theme."; | ||
} | ||
|
||
@Override | ||
public Object exec(List arguments) throws TemplateModelException { | ||
return ThemeProvider.getInstance().getTheme().getTopBarTitle(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
reporting/impl/src/main/resources/reports/templates/include/navbar_left_brand.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<strong class="wu-navbar-header">${getWindupBrandName()}</strong> | ||
<strong class="wu-navbar-header">${getWindupTopBarTitle()}</strong> | ||
<img align="right" class="wu-navbar-header" src="${logoPrefix}resources/img/${getWindupBrandNameAcronym()}/brand-horizontal.png" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters