-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from himdel/topology-item-image-full-path
Use full paths to images in decorators, remove item_image in favor of listicon_image
- Loading branch information
Showing
11 changed files
with
30 additions
and
56 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
class MiddlewareDatasourceDecorator < Draper::Decorator | ||
delegate_all | ||
include MiddlewareDecoratorMixin | ||
|
||
def fonticon | ||
'fa fa-database'.freeze | ||
end | ||
|
||
# Determine the icon | ||
def item_image | ||
'middleware_datasource' | ||
def listicon_image | ||
'100/middleware_datasource.png' | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
class MiddlewareDomainDecorator < Draper::Decorator | ||
delegate_all | ||
include MiddlewareDecoratorMixin | ||
|
||
def fonticon | ||
'pficon-domain'.freeze | ||
end | ||
|
||
# Determine the icon | ||
def item_image | ||
'middleware_domain' | ||
def listicon_image | ||
'100/middleware_domain.png' | ||
end | ||
end |
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,13 +1,11 @@ | ||
class MiddlewareMessagingDecorator < Draper::Decorator | ||
delegate_all | ||
include MiddlewareDecoratorMixin | ||
|
||
def fonticon | ||
'fa fa-exchange'.freeze | ||
end | ||
|
||
# Determine the icon | ||
def item_image | ||
'middleware_messaging' | ||
def listicon_image | ||
'100/middleware_messaging.png' | ||
end | ||
end |
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,23 +1,18 @@ | ||
class MiddlewareServerDecorator < Draper::Decorator | ||
delegate_all | ||
include MiddlewareDecoratorMixin | ||
|
||
def fonticon | ||
nil | ||
end | ||
|
||
# Determine the icon | ||
# we want to display a different icon depending of the type | ||
# of server we have. | ||
def item_image | ||
def listicon_image | ||
case product | ||
when 'Hawkular' | ||
'vendor-hawkular' | ||
'svg/vendor-hawkular.svg' | ||
when 'JBoss EAP' | ||
'vendor-jboss-eap' | ||
'svg/vendor-jboss-eap.svg' | ||
else | ||
'vendor-wildfly' | ||
'svg/vendor-wildfly.svg' | ||
end | ||
end | ||
|
||
end | ||
end |
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,13 +1,11 @@ | ||
class MiddlewareServerGroupDecorator < Draper::Decorator | ||
delegate_all | ||
include MiddlewareDecoratorMixin | ||
|
||
def fonticon | ||
'pficon-server-group'.freeze | ||
end | ||
|
||
# Determine the icon | ||
def item_image | ||
'middleware_server_group' | ||
def listicon_image | ||
'100/middleware_server_group.png' | ||
end | ||
end |
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