foreman_datacenter 0.1.45 → 0.1.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/foreman_datacenter/device_roles.css +31 -0
- data/app/controllers/foreman_datacenter/comments_controller.rb +2 -2
- data/app/helpers/foreman_datacenter/application_helper.rb +26 -0
- data/app/models/foreman_datacenter/rack.rb +4 -0
- data/app/views/foreman_datacenter/comments/_comments.html.erb +1 -1
- data/app/views/foreman_datacenter/comments/create.html.erb +2 -0
- data/app/views/foreman_datacenter/comments/index.html.erb +9 -0
- data/app/views/foreman_datacenter/console_ports/index.html.erb +1 -1
- data/app/views/foreman_datacenter/device_interface_connections/index.html.erb +1 -1
- data/app/views/foreman_datacenter/device_roles/index.html.erb +2 -3
- data/app/views/foreman_datacenter/device_roles/show.html.erb +2 -2
- data/app/views/foreman_datacenter/device_roles/welcome.html.erb +13 -0
- data/app/views/foreman_datacenter/device_types/index.html.erb +2 -3
- data/app/views/foreman_datacenter/device_types/show.html.erb +9 -9
- data/app/views/foreman_datacenter/device_types/welcome.html.erb +13 -0
- data/app/views/foreman_datacenter/devices/index.html.erb +1 -1
- data/app/views/foreman_datacenter/devices/inventory.html.erb +2 -2
- data/app/views/foreman_datacenter/devices/show.html.erb +7 -7
- data/app/views/foreman_datacenter/devices/welcome.html.erb +13 -0
- data/app/views/foreman_datacenter/manufacturers/index.html.erb +2 -3
- data/app/views/foreman_datacenter/manufacturers/show.html.erb +2 -2
- data/app/views/foreman_datacenter/manufacturers/welcome.html.erb +13 -0
- data/app/views/foreman_datacenter/platforms/index.html.erb +2 -3
- data/app/views/foreman_datacenter/platforms/show.html.erb +2 -2
- data/app/views/foreman_datacenter/platforms/welcome.html.erb +13 -0
- data/app/views/foreman_datacenter/power_ports/index.html.erb +1 -1
- data/app/views/foreman_datacenter/rack_groups/index.html.erb +2 -3
- data/app/views/foreman_datacenter/rack_groups/show.html.erb +2 -2
- data/app/views/foreman_datacenter/rack_groups/welcome.html.erb +13 -0
- data/app/views/foreman_datacenter/racks/_device_position.html.erb +24 -27
- data/app/views/foreman_datacenter/racks/_unpositioned_devices.html.erb +20 -0
- data/app/views/foreman_datacenter/racks/index.html.erb +2 -3
- data/app/views/foreman_datacenter/racks/show.html.erb +12 -3
- data/app/views/foreman_datacenter/racks/welcome.html.erb +13 -0
- data/app/views/foreman_datacenter/sites/index.html.erb +2 -3
- data/app/views/foreman_datacenter/sites/show.html.erb +3 -3
- data/app/views/foreman_datacenter/sites/welcome.html.erb +13 -0
- data/app/views/hosts/import_to_device.html.erb +1 -1
- data/db/migrate/20160727161914_create_sites.rb +1 -1
- data/db/migrate/20160728123353_create_rack_groups.rb +1 -1
- data/db/migrate/20160728143149_create_racks.rb +1 -1
- data/db/migrate/20160728161636_create_platforms.rb +1 -1
- data/db/migrate/20160728162635_create_device_roles.rb +1 -1
- data/db/migrate/20160728163815_create_manufacturers.rb +1 -1
- data/db/migrate/20160728164858_create_device_types.rb +1 -1
- data/db/migrate/20160728171422_create_devices.rb +1 -1
- data/db/migrate/20160728194401_create_device_interfaces.rb +1 -1
- data/db/migrate/20160728195242_create_device_interface_connections.rb +1 -1
- data/db/migrate/20160804104103_create_interface_templates.rb +1 -1
- data/db/migrate/20160804142618_create_console_port_templates.rb +1 -1
- data/db/migrate/20160804164301_create_power_port_templates.rb +1 -1
- data/db/migrate/20160805080626_create_console_server_port_templates.rb +1 -1
- data/db/migrate/20160805084726_create_power_outlet_templates.rb +1 -1
- data/db/migrate/20160805100411_create_device_bay_templates.rb +1 -1
- data/db/migrate/20160809091611_create_device_bays.rb +1 -1
- data/db/migrate/20160809103211_create_power_outlets.rb +1 -1
- data/db/migrate/20160809104325_create_power_ports.rb +1 -1
- data/db/migrate/20160809112815_create_console_server_ports.rb +1 -1
- data/db/migrate/20160809113846_create_console_ports.rb +1 -1
- data/db/migrate/20160816224805_create_device_modules.rb +1 -1
- data/db/migrate/20160824212010_add_host_ref_to_devices.rb +1 -1
- data/db/migrate/20160828200938_add_ip_address_to_device_interfaces.rb +1 -1
- data/db/migrate/20160905211522_create_management_devices.rb +1 -1
- data/db/migrate/20160906205605_rename_field_in_management_devices.rb +1 -1
- data/db/migrate/20160909205537_add_name_index_to_racks.rb +1 -1
- data/db/migrate/20160920221011_remove_index_from_devices.rb +1 -1
- data/db/migrate/20170824122025_add_side_to_device.rb +1 -1
- data/db/migrate/20170918202630_add_racksize_to_device.rb +1 -1
- data/db/migrate/20170922110137_create_comments.rb +2 -2
- data/db/migrate/20170922174725_renaming_comments.rb +1 -1
- data/db/migrate/20170924194247_rename_device_comments_column.rb +1 -1
- data/db/migrate/20170929101032_add_parent_id_to_comments.rb +1 -1
- data/db/migrate/20171001130802_fix_parent_id_column_in_comments.rb +1 -1
- data/db/migrate/20171004221349_add_user_id_to_comments.rb +1 -1
- data/lib/foreman_datacenter/engine.rb +1 -1
- data/lib/foreman_datacenter/version.rb +1 -1
- data/lib/tasks/test_tasks.rake +13 -0
- data/test/controllers/foreman_datacenter/rack_groups_contoller_test.rb +91 -0
- data/test/controllers/foreman_datacenter/racks_contoller_test.rb +91 -0
- data/test/controllers/foreman_datacenter/sites_contoller_test.rb +91 -0
- data/test/fixtures/foreman_datacenter/rack_groups.yml +11 -0
- data/test/fixtures/foreman_datacenter/racks.yml +19 -0
- data/test/fixtures/foreman_datacenter/sites.yml +19 -0
- data/test/integration/foreman_datacenter/rack_group_test.rb +25 -0
- data/test/integration/foreman_datacenter/rack_test.rb +25 -0
- data/test/integration/foreman_datacenter/site_test.rb +29 -0
- metadata +34 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ced0ea1e681f01135f5bb562ed71e13028c81fe
|
4
|
+
data.tar.gz: f8b9908a408b69a3f4589c3e4cebc851c85d875d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ef9349d13f0042eeaf26b744c2df02c08b4a8d8526b38365df68af2c556be8d637f6140a02d85fd3d38a5e8f9f7006d34c3d8cb177dd65ad898dad1c4c16e7b
|
7
|
+
data.tar.gz: 224c42313b6f122fa71e81d367cf4d87b65bd5846092eac4471ebe6976c5d4c1867713e061be54c610014ca7eda75cb4f13a6c8aafa173f7e62d9838a2e04a63
|
@@ -0,0 +1,31 @@
|
|
1
|
+
span.teal {
|
2
|
+
background-color: #06a79f;
|
3
|
+
}
|
4
|
+
span.green {
|
5
|
+
background-color: #89A54E;
|
6
|
+
}
|
7
|
+
span.blue {
|
8
|
+
background-color: #3D96AE;
|
9
|
+
}
|
10
|
+
span.purple {
|
11
|
+
background-color: #D882d8;
|
12
|
+
}
|
13
|
+
span.yellow {
|
14
|
+
background-color: #ecec61;
|
15
|
+
}
|
16
|
+
span.orange {
|
17
|
+
background-color: #f37676;
|
18
|
+
}
|
19
|
+
span.red {
|
20
|
+
background-color: #AA4643;
|
21
|
+
}
|
22
|
+
span.lightgray {
|
23
|
+
background-color: gray;
|
24
|
+
}
|
25
|
+
span.mediumgray {
|
26
|
+
background-color: #403e3e;
|
27
|
+
}
|
28
|
+
span.darkgray {
|
29
|
+
background-color: #171515;
|
30
|
+
}
|
31
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ForemanDatacenter
|
2
2
|
class CommentsController < ApplicationController
|
3
|
-
|
4
|
-
|
3
|
+
before_action :load_resource, :load_commentable, :load_current_user
|
4
|
+
before_action :check_owner, only: [:edit]
|
5
5
|
|
6
6
|
def new
|
7
7
|
@comment = Comment.new
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module ForemanDatacenter
|
2
|
+
module ApplicationHelper
|
3
|
+
|
4
|
+
def help_button
|
5
|
+
if request.env['PATH_INFO'].include?("datacenter")
|
6
|
+
link_to(_("Help"), { :action => "welcome" }, { :class => 'btn btn-default' }) if File.exist?("#{ForemanDatacenter::Engine.root}/app/views/foreman_datacenter/#{controller_name}/welcome.html.erb")
|
7
|
+
else
|
8
|
+
super
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def documentation_url(section = "", options = {})
|
13
|
+
if request.env['PATH_INFO'].include?("datacenter")
|
14
|
+
root_url = options[:root_url] || "https://github.com/theforeman/foreman_datacenter/wiki"
|
15
|
+
if section.empty?
|
16
|
+
"https://github.com/theforeman/foreman_datacenter/wiki"
|
17
|
+
else
|
18
|
+
root_url + section
|
19
|
+
end
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<% title _('Device Roles') %>
|
2
|
-
|
3
|
-
<% title_actions display_link_if_authorized(_('New device role'), hash_for_new_device_role_path, class: 'btn btn-success') %>
|
2
|
+
<% title_actions display_link_if_authorized(_('Create Device Role'), hash_for_new_device_role_path, class: 'btn btn-primary'), help_button %>
|
4
3
|
|
5
|
-
<table class="
|
4
|
+
<table class="<%= table_css_classes 'table-two-pane' %>">
|
6
5
|
<thead>
|
7
6
|
<tr>
|
8
7
|
<th>Name</th>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<div class="panel-heading">
|
21
21
|
<strong>Device role</strong>
|
22
22
|
</div>
|
23
|
-
<table class="
|
23
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
24
24
|
<tbody>
|
25
25
|
<tr>
|
26
26
|
<td>Name</td>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<!-- Stats -->
|
48
48
|
<div class="panel panel-default">
|
49
49
|
<div class="panel-heading"><strong>Stats</strong></div>
|
50
|
-
<table class="
|
50
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
51
51
|
<tr>
|
52
52
|
<td>Devices</td>
|
53
53
|
<td><%= @device_role.devices.length %></td>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% content_for(:title, _("Device Roles")) %>
|
2
|
+
<div class="blank-slate-pf">
|
3
|
+
<div class="blank-slate-pf-icon">
|
4
|
+
<%= icon_text("tasks", "", :kind => "fa") %>
|
5
|
+
</div>
|
6
|
+
<h1><%= _('Device Roles') %></h1>
|
7
|
+
<p><%= _("Each device object has a device role (e.g. server, switch, etc.).") %></p>
|
8
|
+
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("")%></p>
|
9
|
+
<div class="blank-slate-pf-main-action">
|
10
|
+
<%= new_link(_('Create Device Role'), {}, { :class => "btn-lg" }) %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<% title _('Device Types') %>
|
2
|
-
|
3
|
-
<% title_actions display_link_if_authorized(_('New device type'), hash_for_new_device_type_path, class: 'btn btn-success') %>
|
2
|
+
<% title_actions display_link_if_authorized(_('Create Device Type'), hash_for_new_device_type_path, class: 'btn btn-primary'), help_button %>
|
4
3
|
|
5
|
-
<table class="
|
4
|
+
<table class="<%= table_css_classes 'table-two-pane' %>">
|
6
5
|
<thead>
|
7
6
|
<tr>
|
8
7
|
<th>Device Type</th>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<div class="panel-heading">
|
21
21
|
<strong>Chassis</strong>
|
22
22
|
</div>
|
23
|
-
<table class="
|
23
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
24
24
|
<tbody>
|
25
25
|
<tr>
|
26
26
|
<td>Manufacturer</td>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<div class="panel-heading">
|
48
48
|
<strong>Function</strong>
|
49
49
|
</div>
|
50
|
-
<table class="
|
50
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
51
51
|
<tbody>
|
52
52
|
<tr>
|
53
53
|
<td class="col-sm-3 text-right">
|
@@ -139,7 +139,7 @@
|
|
139
139
|
<% if @device_type.console_port_templates.empty? %>
|
140
140
|
<div class="panel-body">None</div>
|
141
141
|
<% else %>
|
142
|
-
<table class="
|
142
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
143
143
|
<tbody>
|
144
144
|
<% @device_type.console_port_templates.each do |console_port| %>
|
145
145
|
<tr>
|
@@ -170,7 +170,7 @@
|
|
170
170
|
<% if @device_type.power_port_templates.empty? %>
|
171
171
|
<div class="panel-body">None</div>
|
172
172
|
<% else %>
|
173
|
-
<table class="
|
173
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
174
174
|
<tbody>
|
175
175
|
<% @device_type.power_port_templates.each do |power_port| %>
|
176
176
|
<tr>
|
@@ -201,7 +201,7 @@
|
|
201
201
|
<% if @device_type.management_interfaces.empty? %>
|
202
202
|
<div class="panel-body">None</div>
|
203
203
|
<% else %>
|
204
|
-
<table class="
|
204
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
205
205
|
<tbody>
|
206
206
|
<% @device_type.management_interfaces.each do |management_interface| %>
|
207
207
|
<tr>
|
@@ -235,7 +235,7 @@
|
|
235
235
|
<% if @device_type.device_bay_templates.empty? %>
|
236
236
|
<div class="panel-body">None</div>
|
237
237
|
<% else %>
|
238
|
-
<table class="
|
238
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
239
239
|
<tbody>
|
240
240
|
<% @device_type.device_bay_templates.each do |device_bay| %>
|
241
241
|
<tr>
|
@@ -268,7 +268,7 @@
|
|
268
268
|
<% if @device_type.network_interfaces.empty? %>
|
269
269
|
<div class="panel-body">None</div>
|
270
270
|
<% else %>
|
271
|
-
<table class="
|
271
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
272
272
|
<tbody>
|
273
273
|
<% @device_type.network_interfaces.each do |interface| %>
|
274
274
|
<tr>
|
@@ -301,7 +301,7 @@
|
|
301
301
|
<% if @device_type.console_server_port_templates.empty? %>
|
302
302
|
<div class="panel-body">None</div>
|
303
303
|
<% else %>
|
304
|
-
<table class="
|
304
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
305
305
|
<tbody>
|
306
306
|
<% @device_type.console_server_port_templates.each do |console_server_port| %>
|
307
307
|
<tr>
|
@@ -334,7 +334,7 @@
|
|
334
334
|
<% if @device_type.power_outlet_templates.empty? %>
|
335
335
|
<div class="panel-body">None</div>
|
336
336
|
<% else %>
|
337
|
-
<table class="
|
337
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
338
338
|
<tbody>
|
339
339
|
<% @device_type.power_outlet_templates.each do |power_outlet| %>
|
340
340
|
<tr>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% content_for(:title, _("Device Types")) %>
|
2
|
+
<div class="blank-slate-pf">
|
3
|
+
<div class="blank-slate-pf-icon">
|
4
|
+
<%= icon_text("tasks", "", :kind => "fa") %>
|
5
|
+
</div>
|
6
|
+
<h1><%= _('Device Types') %></h1>
|
7
|
+
<p><%= _("Each device object has a device type (e.g. HP ProLiant DL180 G6).") %></p>
|
8
|
+
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("")%></p>
|
9
|
+
<div class="blank-slate-pf-main-action">
|
10
|
+
<%= new_link(_('Create Device Type'), {}, { :class => "btn-lg" }) %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% title_actions display_link_if_authorized(_('New device'), hash_for_new_device_path, class: 'btn btn-success'),
|
6
6
|
display_link_if_authorized(_('Import from host'), hash_for_import_to_device_path, class: 'btn btn-success') %>
|
7
7
|
|
8
|
-
<table class="
|
8
|
+
<table class="<%= table_css_classes 'table-two-pane' %>">
|
9
9
|
<thead>
|
10
10
|
<tr>
|
11
11
|
<th>Name</th>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<div class="col-md-4">
|
24
24
|
<div class="panel panel-default">
|
25
25
|
<div class="panel-heading"><strong>Chassis</strong></div>
|
26
|
-
<table class="
|
26
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
27
27
|
<tbody>
|
28
28
|
<tr>
|
29
29
|
<td>Model</td>
|
@@ -40,7 +40,7 @@
|
|
40
40
|
<div class="col-md-8">
|
41
41
|
<div class="panel panel-default">
|
42
42
|
<div class="panel-heading"><strong>Hardware</strong></div>
|
43
|
-
<table class="
|
43
|
+
<table class="<%= table_css_classes 'table-hover table-condensed panel-body' %>">
|
44
44
|
<thead>
|
45
45
|
<tr>
|
46
46
|
<th>Module</th>
|
@@ -42,7 +42,7 @@
|
|
42
42
|
<div class="panel-heading">
|
43
43
|
<strong>Device</strong>
|
44
44
|
</div>
|
45
|
-
<table class="
|
45
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
46
46
|
<tbody>
|
47
47
|
<tr>
|
48
48
|
<td>Site</td>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
<div class="panel-heading">
|
82
82
|
<strong>Critical Connections</strong>
|
83
83
|
</div>
|
84
|
-
<table class="
|
84
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
85
85
|
<tbody>
|
86
86
|
<% if @device.management_interfaces.empty? %>
|
87
87
|
<tr class="alert-warning">
|
@@ -169,7 +169,7 @@
|
|
169
169
|
<div class="panel-heading">
|
170
170
|
<strong>Management</strong>
|
171
171
|
</div>
|
172
|
-
<table class="
|
172
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
173
173
|
<tbody>
|
174
174
|
<tr>
|
175
175
|
<td>Role</td>
|
@@ -299,7 +299,7 @@
|
|
299
299
|
<% if @device.device_bays.empty? %>
|
300
300
|
<div class="panel-body">None</div>
|
301
301
|
<% else %>
|
302
|
-
<table class="
|
302
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
303
303
|
<tbody>
|
304
304
|
<%= render partial: 'device_bay', collection: @device.device_bays %>
|
305
305
|
</tbody>
|
@@ -322,7 +322,7 @@
|
|
322
322
|
<% if @device.non_management_interfaces.empty? %>
|
323
323
|
<div class="panel-body">None</div>
|
324
324
|
<% else %>
|
325
|
-
<table class="
|
325
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
326
326
|
<tbody>
|
327
327
|
<%= render partial: 'interface', collection: @device.non_management_interfaces %>
|
328
328
|
</tbody>
|
@@ -348,7 +348,7 @@
|
|
348
348
|
<% if @device.console_server_ports.empty? %>
|
349
349
|
<div class="panel-body">None</div>
|
350
350
|
<% else %>
|
351
|
-
<table class="
|
351
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
352
352
|
<tbody>
|
353
353
|
<%= render partial: 'console_server_port', collection: @device.console_server_ports %>
|
354
354
|
</tbody>
|
@@ -370,7 +370,7 @@
|
|
370
370
|
<% if @device.power_outlets.empty? %>
|
371
371
|
<div class="panel-body">None</div>
|
372
372
|
<% else %>
|
373
|
-
<table class="
|
373
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
374
374
|
<tbody>
|
375
375
|
<%= render partial: 'power_outlet', collection: @device.power_outlets %>
|
376
376
|
</tbody>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% content_for(:title, _("Devices")) %>
|
2
|
+
<div class="blank-slate-pf">
|
3
|
+
<div class="blank-slate-pf-icon">
|
4
|
+
<%= icon_text("server", "", :kind => "fa") %>
|
5
|
+
</div>
|
6
|
+
<h1><%= _('Devices') %></h1>
|
7
|
+
<p><%= _("List of all devices (switches, servers, etc.).") %></p>
|
8
|
+
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("")%></p>
|
9
|
+
<div class="blank-slate-pf-main-action">
|
10
|
+
<%= new_link(_('Create Device'), {}, { :class => "btn-lg" }) %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<% title _('Manufacturers') %>
|
2
|
-
|
3
|
-
<% title_actions display_link_if_authorized(_('New manufacturer'), hash_for_new_manufacturer_path, class: 'btn btn-success') %>
|
2
|
+
<% title_actions display_link_if_authorized(_('Create Manufacturer'), hash_for_new_manufacturer_path, class: 'btn btn-primary'), help_button %>
|
4
3
|
|
5
|
-
<table class="
|
4
|
+
<table class="<%= table_css_classes 'table-two-pane' %>">
|
6
5
|
<thead>
|
7
6
|
<tr>
|
8
7
|
<th>Name</th>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<div class="panel-heading">
|
21
21
|
<strong>Manufacturer</strong>
|
22
22
|
</div>
|
23
|
-
<table class="
|
23
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
24
24
|
<tbody>
|
25
25
|
<tr>
|
26
26
|
<td>Name</td>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<!-- Stats -->
|
44
44
|
<div class="panel panel-default">
|
45
45
|
<div class="panel-heading"><strong>Stats</strong></div>
|
46
|
-
<table class="
|
46
|
+
<table class="<%= table_css_classes 'table-hover panel-body' %>">
|
47
47
|
<tr>
|
48
48
|
<td>Devices types</td>
|
49
49
|
<td><%= @manufacturer.device_types.length %></td>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% content_for(:title, _("Manufacturers")) %>
|
2
|
+
<div class="blank-slate-pf">
|
3
|
+
<div class="blank-slate-pf-icon">
|
4
|
+
<%= icon_text("barcode", "", :kind => "fa") %>
|
5
|
+
</div>
|
6
|
+
<h1><%= _('Manufacturers') %></h1>
|
7
|
+
<p><%= _("This page contains all manufacturers (HP, Dell, etc.).") %></p>
|
8
|
+
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("")%></p>
|
9
|
+
<div class="blank-slate-pf-main-action">
|
10
|
+
<%= new_link(_('Create Manufacturer'), {}, { :class => "btn-lg" }) %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
@@ -1,8 +1,7 @@
|
|
1
1
|
<% title _('Platforms') %>
|
2
|
-
|
3
|
-
<% title_actions display_link_if_authorized(_('New Platform'), hash_for_new_platform_path, class: 'btn btn-success') %>
|
2
|
+
<% title_actions display_link_if_authorized(_('Create Platform'), hash_for_new_platform_path, class: 'btn btn-primary'), help_button %>
|
4
3
|
|
5
|
-
<table class="
|
4
|
+
<table class="<%= table_css_classes 'table-two-pane' %>">
|
6
5
|
<thead>
|
7
6
|
<tr>
|
8
7
|
<th>Name</th>
|