Skip to content

Commit

Permalink
fix icons on resource page
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Aug 24, 2019
1 parent 86a8835 commit e690f38
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -274,7 +274,7 @@ private InfoBoxPanel createLastAvailabilityStatusInfo(ResourceType resource) {

String messageKey = "PageResource.resource.availabilityUnknown";
String backgroundColor = "bg-gray";
String icon = "fa-question";
String icon = "fa fa-question";

OperationalStateType operationalState = resource.getOperationalState();
if (operationalState != null) {
Expand All @@ -283,15 +283,15 @@ private InfoBoxPanel createLastAvailabilityStatusInfo(ResourceType resource) {
if (lastAvailabilityStatus == AvailabilityStatusType.UP) {
messageKey = "PageResource.resource.up";
backgroundColor = "bg-green";
icon = "fa-power-off";
icon = "fa fa-power-off";
} else if (lastAvailabilityStatus == AvailabilityStatusType.DOWN) {
backgroundColor = "bg-red";
messageKey = "PageResource.resource.down";
icon = "fa-ban";
icon = "fa fa-ban";
} else if (lastAvailabilityStatus == AvailabilityStatusType.BROKEN) {
backgroundColor = "bg-yellow";
messageKey = "PageResource.resource.broken";
icon = "fa-warning";
icon = "fa fa-warning";
}
}
}
Expand Down Expand Up @@ -323,7 +323,7 @@ private InfoBoxPanel createLastAvailabilityStatusInfo(ResourceType resource) {
private InfoBoxPanel createSchemaStatusInfo(ResourceType resource) {

String backgroundColor = "bg-gray";
String icon = "fa-times";
String icon = "fa fa-times";
String numberMessage = null;
String description = null;

Expand All @@ -333,7 +333,7 @@ private InfoBoxPanel createSchemaStatusInfo(ResourceType resource) {
refinedSchema = RefinedResourceSchemaImpl.getRefinedSchema(resource);
if (refinedSchema != null) {
backgroundColor = "bg-purple";
icon = "fa-cubes";
icon = "fa fa-cubes";
int numObjectTypes = 0;
List<? extends RefinedObjectClassDefinition> refinedDefinitions = refinedSchema
.getRefinedDefinitions();
Expand All @@ -356,7 +356,7 @@ private InfoBoxPanel createSchemaStatusInfo(ResourceType resource) {
}
} catch (SchemaException e) {
backgroundColor = "bg-danger";
icon = "fa-warning";
icon = "fa fa-warning";
numberMessage = parentPage.getString("PageResource.resource.schemaError");
}

Expand Down Expand Up @@ -694,7 +694,7 @@ private SourceTarget determineIfSourceOrTarget(ResourceType resource) {

private enum SourceTarget {

NOT_DEFINED("fa-square-o"), SOURCE("fa-sign-in"), TARGET("fa-sign-out"), SOURCE_TARGET("fa-exchange");
NOT_DEFINED("fa fa-square-o"), SOURCE("fa fa-sign-in"), TARGET("fa fa-sign-out"), SOURCE_TARGET("fa fa-exchange");

private String cssClass;

Expand Down

0 comments on commit e690f38

Please sign in to comment.