foreman_packages 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/foreman_packages/sypackage.rb +1 -1
- data/app/views/foreman_packages/sypackages/_list.html.erb +1 -1
- data/app/views/foreman_packages/sypackages/index.html.erb +1 -1
- data/app/views/foreman_packages/sypackages/show.html.erb +2 -2
- data/lib/foreman_packages/version.rb +1 -1
- metadata +1 -1
@@ -2,7 +2,7 @@ class ForemanPackages::Sypackage < ActiveRecord::Base
|
|
2
2
|
require "fileutils"
|
3
3
|
attr_accessible :name, :ensure, :file_path, :file_ensure, :file_source, :file_mode, :file_onwer, :file_group, :file_notify, :file_require, :service_name, :service_ensure, :service_enable, :service_hasstatus, :service_hasrestart, :filename, :file_cache
|
4
4
|
|
5
|
-
mount_uploader :filename, AttachmentUploader
|
5
|
+
mount_uploader :filename, ForemanPackages::AttachmentUploader
|
6
6
|
after_create :create_dir
|
7
7
|
after_update :create_dir
|
8
8
|
after_update :change_dir
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<td class="hidden-tablet hidden-xs"><%= sypackage.service_hasrestart %></td>
|
44
44
|
<td>
|
45
45
|
<%= link_to '查看', sypackage %>
|
46
|
-
<%= link_to '编辑',
|
46
|
+
<%= link_to '编辑', edit_foreman_packages_sypackage_path(sypackage) %>
|
47
47
|
<%= link_to '删除', sypackage, method: :delete, data: { confirm: 'Are you sure?' } %>
|
48
48
|
</td>
|
49
49
|
</tr>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if authorized? %>
|
2
|
-
<% title_actions button_group(link_to "新增",
|
2
|
+
<% title_actions button_group(link_to "新增", new_foreman_packages_sypackage_path) %>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<%= render 'list', :sypackages => @sypackages, :header => @title || _("Package") %>
|
@@ -3,8 +3,8 @@
|
|
3
3
|
<div class="row">
|
4
4
|
<h1 class="clearfix">
|
5
5
|
<%#= @sypackage.name %>
|
6
|
-
<%= link_to '返回',
|
7
|
-
<%= link_to '编辑',
|
6
|
+
<%= link_to '返回', foreman_packages_sypackages_path, class: "btn btn-primary pull-right mr1" %>
|
7
|
+
<%= link_to '编辑', edit_foreman_packages_sypackage_path(@sypackage), class: "btn btn-warning pull-right mr1" %>
|
8
8
|
</h1>
|
9
9
|
</div>
|
10
10
|
|