foreman_hosts 2.0.4 → 2.0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module ForemanHosts
2
- VERSION = '2.0.4'
2
+ VERSION = '2.0.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,38 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2015-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: deface
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: nested_form
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
14
46
  - !ruby/object:Gem::Dependency
15
47
  name: rubocop
16
48
  requirement: !ruby/object:Gem::Requirement
@@ -53,12 +85,6 @@ files:
53
85
  - app/views/dashboard/_foreman_hosts_widget.html.erb
54
86
  - app/views/foreman_hosts/layouts/layouts/new_layout.html.erb
55
87
  - app/views/foreman_hosts/layouts/new_layout.html.erb
56
- - app/views/foreman_hosts/syhostmodels/edit.html.erb
57
- - app/views/foreman_hosts/syhostmodels/new.html.erb
58
- - app/views/foreman_hosts/syhostmodels/show.html.erb
59
- - app/views/foreman_hosts/syhostmodels/index.html.erb
60
- - app/views/foreman_hosts/syhostmodels/_list.html.erb
61
- - app/views/foreman_hosts/syhostmodels/_form.html.erb
62
88
  - app/views/foreman_hosts/hosts/export.xlsx.axlsx
63
89
  - app/views/foreman_hosts/hosts/report_index.html.erb
64
90
  - app/views/foreman_hosts/hosts/hosts/new_action.html.erb
@@ -71,7 +97,6 @@ files:
71
97
  - app/models/foreman_hosts/syhostmodel.rb
72
98
  - bin/foreman-hosts
73
99
  - config/routes.rb
74
- - db/migrate/20151015022411_create_syhostmodels.rb
75
100
  - lib/tasks/foreman_hosts_tasks.rake
76
101
  - lib/foreman_hosts.rb
77
102
  - lib/foreman_hosts/version.rb
@@ -1,30 +0,0 @@
1
- <%= javascript 'syhostmodels', 'syhostmodel_edit', 'syhostmodel_edit_interfaces', 'class_edit', 'compute_resource', 'lookup_keys'%>
2
-
3
- <%= form_for @syhostmodel do |f| %>
4
- <%= base_errors_for @syhostmodel %>
5
- <div class="row clearfix">
6
- <div class="row">
7
- <div class="form-group col-md-12">
8
- <label>name</label>
9
- <%= f.text_field :name, :size => "col-md-12", placeholder: "填写name", class: "form-control" %>
10
- </div>
11
- </div>
12
- <div class="row">
13
- <div class="form-group col-md-12">
14
- <label>remark</label>
15
- <%= f.text_field :remark, :size => "col-md-12", placeholder: "填写remark", class: "form-control" %>
16
- </div>
17
- </div>
18
- <div class="row">
19
- <div class="col-md-12 column">
20
- <%#= render partial: "foreman_hosts/syhostmodels/sub", locals: { f: f, object: @syhostmodel } %>
21
- </div>
22
- </div>
23
- <div class="row">
24
- <div class="actions">
25
- <%= f.submit "提交", class: "btn btn-success" %>
26
- <%= link_to '返回', foreman_hosts_syhostmodels_path, class: "btn btn-primary" %>
27
- </div>
28
- </div>
29
- </div>
30
- <% end %>
@@ -1,41 +0,0 @@
1
- <%= javascript "jquery.cookie" %>
2
- <% title header ||= "" %>
3
- <table class="table table-bordered table-striped table-condensed" >
4
- <thead>
5
- <tr>
6
- <th class=''>name</th>
7
- <th class="hidden-xs">remark</th>
8
- <th>操作</th>
9
- </tr>
10
- </thead>
11
- <tbody>
12
- <% syhostmodels.each do |syhostmodel| %>
13
- <tr>
14
- <td class=''><%= syhostmodel.name %></td>
15
- <td class="hidden-xs"><%= syhostmodel.remark %></td>
16
- <td>
17
- <%= link_to '查看', syhostmodel %>
18
- <%= link_to '编辑', edit_foreman_hosts_syhostmodel_path(syhostmodel) %>
19
- <%= link_to '删除', syhostmodel, method: :delete, data: { confirm: 'Are you sure?' } %>
20
- </td>
21
- </tr>
22
- <% end %>
23
- </tbody>
24
- </table>
25
- <div id="confirmation-modal" class="modal fade">
26
- <div class="modal-dialog">
27
- <div class="modal-content">
28
- <div class="modal-header">
29
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
30
- <h4 class="modal-title"><%= _('Please Confirm') %></h4>
31
- </div>
32
- <div class="modal-body">
33
- </div>
34
- <div class="modal-footer">
35
- <button type="button" class="btn btn-default" data-dismiss="modal"><%= _('Cancel') %></button>
36
- <button type="button" class="btn btn-primary" onclick="submit_modal_form()"><%= _('Submit') %></button>
37
- </div>
38
- </div><!-- /.modal-content -->
39
- </div><!-- /.modal-dialog -->
40
- </div><!-- /.modal -->
41
- <%= will_paginate_with_info syhostmodels, :more => " - "+_("<b class='select_count'>0</b> selected") %>
@@ -1 +0,0 @@
1
- <%= render 'form' %>
@@ -1,5 +0,0 @@
1
- <% if authorized? %>
2
- <% title_actions button_group(link_to "新增", new_foreman_hosts_syhostmodel_path) %>
3
- <% end %>
4
-
5
- <%= render 'list', :syhostmodels => @syhostmodels, :header => @title || _("ExportTemplates") %>
@@ -1 +0,0 @@
1
- <%= render 'form' %>
@@ -1,65 +0,0 @@
1
-
2
- <div class="container">
3
- <div class="row">
4
- <h1 class="clearfix">
5
- <%= link_to '返回', foreman_hosts_syhostmodels_path, class: "btn btn-primary pull-right mr1" %>
6
- <%= link_to '编辑', edit_foreman_hosts_syhostmodel_path(@syhostmodel), class: "btn btn-warning pull-right mr1" %>
7
- </h1>
8
- </div>
9
-
10
- <div class="row col-md-12">
11
- <table class="table table-striped table-bordered">
12
- <thead></thead>
13
- <tbody>
14
- <tr>
15
- <td><strong>name</strong></td>
16
- </tr>
17
- <tr>
18
- <td><%= @syhostmodel.name %></td>
19
- </tr>
20
-
21
- <tr>
22
- <td><strong>remark</strong></td>
23
- </tr>
24
- <tr>
25
- <td><%= @syhostmodel.remark %></td>
26
- </tr>
27
- </tbody>
28
- </table>
29
- </div>
30
-
31
- <div class="row col-md-12">
32
- <ul class="nav nav-tabs mb1">
33
- <li class="active"><a href="#models" data-toggle="tab">Detail</a></li>
34
- <li><a href="#previews" data-toggle="tab">Preview</a></li>
35
- </ul>
36
-
37
- <div class="tab-content">
38
- <div class="tab-pane active" id="models">
39
- <div id="models">
40
-
41
- <div class="panel-body">
42
- <table class="table table-striped table-bordered models">
43
- <thead>
44
- <th>no</th>
45
- <th>status</th>
46
- <th>fact_name</th>
47
- </thead>
48
- <tbody>
49
- </tbody>
50
- </table>
51
- </div>
52
-
53
-
54
- </div>
55
- </div>
56
- <div class="tab-pane" id="previews">
57
- <div id="previews">
58
- <div class="panel-body">
59
-
60
- </div>
61
- </div>
62
- </div>
63
- </div>
64
- </div>
65
- </div>
@@ -1,10 +0,0 @@
1
- class CreateSyhostmodels < ActiveRecord::Migration
2
- drop tables syhostmodels if table_exists? :syhostmodels
3
- def change
4
- create_table :syhostmodels do |t|
5
- t.string :name
6
- t.text :remark
7
- t.timestamps
8
- end
9
- end
10
- end