Skip to content

Commit

Permalink
Allowing for consistent icon styles
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Jan 7, 2025
1 parent b9f5698 commit 1d915ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/java/org/computate/frFR/java/ConfigSite.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ protected void _templateChemin() throws Exception {
templateChemin = config.getString(langueConfigGlobale.getString(I18n.var_TEMPLATE_CHEMIN));
}

public String fontawesomeStyle;
protected void _fontawesomeStyle() throws Exception {
if (fontawesomeStyle == null)
fontawesomeStyle = config.getString(langueConfigGlobale.getString(I18n.var_FONTAWESOME_STYLE));
}

/**
* Var.enUS: srcMainJavaPath enUS: The absolute path to the /src/main/java
* directory.
Expand Down Expand Up @@ -956,6 +962,7 @@ public void initConfigSite() throws Exception {
_siteChemin();
_cheminStatique();
_templateChemin();
_fontawesomeStyle();
_cheminSrcMainJava();
_cheminSrcMainResources();
_cheminSrcGenJava();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/computate/frFR/java/IndexerClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -6157,7 +6157,7 @@ else if(StringUtils.contains(classeApiMethode, i18nGlobale.getString(I18n.var_Re
wSmartDataModel.l(" * Order: 1");
wSmartDataModel.l(" * Description: ", modelDescription);
wSmartDataModel.l(" * AName: ", aName);
wSmartDataModel.l(" * Icon: <i class=\"fa-duotone fa-regular fa-conveyor-belt\"></i>");
wSmartDataModel.l(" * Icon: <i class=\"", fontawesomeStyle, " fa-conveyor-belt\"></i>");
wSmartDataModel.l(" * Rows: 100");
wSmartDataModel.l(" * ");
wSmartDataModel.l(" * SearchPageUri: /en-us/search/", idName);
Expand Down

0 comments on commit 1d915ed

Please sign in to comment.