Skip to content

Commit

Permalink
Merge pull request #624 from epwinchell/new_decorators
Browse files Browse the repository at this point in the history
Add and update decorators
  • Loading branch information
himdel authored Mar 9, 2017
2 parents 59ac1ad + c2596a0 commit e021f92
Show file tree
Hide file tree
Showing 40 changed files with 385 additions and 5 deletions.
8 changes: 8 additions & 0 deletions app/decorators/availability_zone_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
class AvailabilityZoneDecorator < MiqDecorator
def self.fonticon
'pficon pficon-zone'
end

def fonticon
'pficon pficon-zone'
end

def listicon_image
'100/availability_zone.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_network_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudNetworkDecorator < MiqDecorator
def self.fonticon
'product product-cloud_network'
end

def fonticon
'product product-cloud_network'
end

def listicon_image
'100/cloud_network.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_object_store_container_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudObjectStoreContainerDecorator < MiqDecorator
def self.fonticon
'product product-cloud_object_store'
end

def fonticon
'product product-cloud_object_store'
end

def listicon_image
'100/cloud_object_store_container.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_object_store_object_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudObjectStoreObjectDecorator < MiqDecorator
def self.fonticon
'product product-cloud_object_store'
end

def fonticon
'product product-cloud_object_store'
end

def listicon_image
'100/cloud_object_store_container.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_subnet_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudSubnetDecorator < MiqDecorator
def self.fonticon
'pficon pficon-network'
end

def fonticon
'pficon pficon-network'
end

def listicon_image
'100/cloud_subnet.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_tenant_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudTenantDecorator < MiqDecorator
def self.fonticon
'pficon pficon-cloud-tenant'
end

def fonticon
'pficon pficon-cloud-tenant'
end

def listicon_image
'100/cloud_tenant.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_volume_backup_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudVolumeBackupDecorator < MiqDecorator
def self.fonticon
'pficon pficon-volume'
end

def fonticon
'pficon pficon-volume'
end

def listicon_image
'100/cloud_volume.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_volume_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudVolumeDecorator < MiqDecorator
def self.fonticon
'pficon pficon-volume'
end

def fonticon
'pficon pficon-volume'
end

def listicon_image
'100/cloud_volume.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/cloud_volume_snapshot_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CloudVolumeSnapshotDecorator < MiqDecorator
def self.fonticon
'fa fa-camera'
end

def fonticon
'fa fa-camera'
end

def listicon_image
'100/cloud_volume_snapshot.png'
end
end
9 changes: 9 additions & 0 deletions app/decorators/container_build_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class ContainerBuildDecorator < MiqDecorator
def fonticon
'pficon pficon-build'
end

def listicon_image
'100/container_build.png'
end
end
8 changes: 8 additions & 0 deletions app/decorators/container_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
class ContainerDecorator < MiqDecorator
def self.fonticon
'fa fa-cube'
end

def fonticon
'fa fa-cube'
end

def listicon_image
'100/container.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_group_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerGroupDecorator < MiqDecorator
def self.fonticon
'fa fa-cubes'
end

def fonticon
'fa fa-cubes'
end

def listicon_image
'100/container_group.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_image_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerImageDecorator < MiqDecorator
def self.fonticon
'pficon pficon-image'
end

def fonticon
'pficon pficon-image'
end

def listicon_image
'100/container_image.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_image_registry_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerImageRegistryDecorator < MiqDecorator
def self.fonticon
'pficon pficon-registry'
end

def fonticon
'pficon pficon-registry'
end

def listicon_image
'100/container_image_registry.png'
end
end
14 changes: 13 additions & 1 deletion app/decorators/container_node_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
class ContainerNodeDecorator < MiqDecorator
def self.fonticon
'pficon pficon-container-node'
end

def fonticon
'pficon pficon-container-node'
end

def self.listicon_image
"100/container_node.png"
'100/container_node.png'
end

def listicon_image
'100/container_node.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_project_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerProjectDecorator < MiqDecorator
def self.fonticon
'pficon pficon-project'
end

def fonticon
'pficon pficon-project'
end

def listicon_image
'100/container_project.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_replicator_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerReplicatorDecorator < MiqDecorator
def self.fonticon
'pficon pficon-replicator'
end

def fonticon
'pficon pficon-replicator'
end

def listicon_image
'100/container_replicator.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_route_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerRouteDecorator < MiqDecorator
def self.fonticon
'pficon pficon-route'
end

def fonticon
'pficon pficon-route'
end

def listicon_image
'100/container_route.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_service_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerServiceDecorator < MiqDecorator
def self.fonticon
'pficon pficon-service'
end

def fonticon
'pficon pficon-service'
end

def listicon_image
'100/container_service.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/container_template_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class ContainerTemplateDecorator < MiqDecorator
def self.fonticon
'product product-template'
end

def fonticon
'product product-template'
end

def listicon_image
'100/container_template.png'
end
end
4 changes: 4 additions & 0 deletions app/decorators/ems_cluster_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ class EmsClusterDecorator < MiqDecorator
def fonticon
'pficon pficon-cluster'
end

def listicon_image
'100/ems_cluster.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/flavor_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class FlavorDecorator < MiqDecorator
def self.fonticon
'pficon pficon-flavor'
end

def fonticon
'pficon pficon-flavor'
end

def listicon_image
'100/flavor.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/floating_ip_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class FloatingIpDecorator < MiqDecorator
def self.fonticon
'fa fa-map-marker'
end

def fonticon
'fa fa-map-marker'
end

def listicon_image
'100/floating_ip.png'
end
end
6 changes: 5 additions & 1 deletion app/decorators/lan_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
class LanDecorator < MiqDecorator
def fonticon
'product product-switch'
'product product-network_switch'
end

def listicon_image
'100/network_switch.png'
end
end
13 changes: 13 additions & 0 deletions app/decorators/load_balancer_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class LoadBalancerDecorator < MiqDecorator
def self.fonticon
'product product-load_balancer'
end

def fonticon
'product product-load_balancer'
end

def listicon_image
'100/load_balancer.png'
end
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module ManageIQ::Providers::AnsibleTower
class AutomationManager::JobDecorator < MiqDecorator
def self.fonticon
'product product-orchestration_stack'
end

def fonticon
'product product-orchestration_stack'
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module ManageIQ::Providers
class CloudManager::OrchestrationStackDecorator < MiqDecorator
def self.fonticon
'product product-orchestration_stack'
end

def fonticon
'product product-orchestration_stack'
end
Expand Down
4 changes: 4 additions & 0 deletions app/decorators/middleware_datasource_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class MiddlewareDatasourceDecorator < MiqDecorator
def self.fonticon
'fa fa-database'
end

def fonticon
'fa fa-database'
end
Expand Down
4 changes: 4 additions & 0 deletions app/decorators/middleware_deployment_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class MiddlewareDeploymentDecorator < MiqDecorator
def self.fonticon
'fa fa-file-text-o'
end

def fonticon
if name.end_with? '.ear'
'product product-file-ear-o'
Expand Down
4 changes: 4 additions & 0 deletions app/decorators/middleware_domain_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class MiddlewareDomainDecorator < MiqDecorator
def self.fonticon
'pficon-domain'
end

def fonticon
'pficon-domain'
end
Expand Down
4 changes: 4 additions & 0 deletions app/decorators/middleware_messaging_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class MiddlewareMessagingDecorator < MiqDecorator
def self.fonticon
'fa fa-exchange'
end

def fonticon
'fa fa-exchange'
end
Expand Down
Loading

0 comments on commit e021f92

Please sign in to comment.