foreman_openscap 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68ebb67af05276344df2b968dcc482172cb9f271
4
- data.tar.gz: f4227ecd033423eb6ddd9c29c8b6f55b2373e4eb
3
+ metadata.gz: ce7f1231ac98c8b2e24699151fda71aba37f3561
4
+ data.tar.gz: e8631cb1cc2a02dcaa84f14d974ad4d45dad804d
5
5
  SHA512:
6
- metadata.gz: f44b2f5af70b32745e65a61c51c2a6494b745baed976c15d1b9a3990a4acbf85db0478cc585fccdf3dde50bd4b62f6c8c0726547e851c52d29189e7870e38d30
7
- data.tar.gz: 6804f4234a8096a67c9b532d8530aee4acc12f2ee6118d9b7dadf3654aca758e09151a0098b52bd7770d206226f16832ae8509743a9c8583afaad852e3e45698
6
+ metadata.gz: 178205d8a72c403f737e468b5bfef78327de3838545e28d7c776c8e6e8fa509854ff86dbea99ba710df84292e66a93b2ac9c280ba72c4e7d878bcc4d18db67e6
7
+ data.tar.gz: 5062f40577ecd10899465ffd45c4d384dd3c5c8e939e0fdc23957c718d3284a0798d2e8db8c5d7db72c55a0c4677d8f76f65985cd4926af2ccff17ef9c6e5aff
@@ -1,3 +1,5 @@
1
+ require 'foreman_openscap/version'
2
+
1
3
  module ForemanOpenscapHelper
2
4
  def scap_doc_link(section = '', text = _('documentation'))
3
5
  link_to(
@@ -30,7 +30,7 @@ module PoliciesHelper
30
30
  end
31
31
 
32
32
  def config_inline_help(help_hash)
33
- link = if help_hash[:route_helper_method]
33
+ link = if help_hash[:route_helper_method] && respond_to?(help_hash[:route_helper_method])
34
34
  link_to_if_authorized help_hash[:replace_text], public_send(help_hash[:route_helper_method])
35
35
  else
36
36
  help_hash[:replace_text]
@@ -108,7 +108,6 @@ module PoliciesHelper
108
108
  content_tag(:div, :class => "form-actions") do
109
109
  text = overwrite ? overwrite : _("Submit")
110
110
  options = { :class => "btn btn-primary" }
111
- options[:'data-id'] = form_to_submit_id(form) unless options.key?(:'data-id')
112
111
  previous = form.object.first_step? ? ' ' : previous_link(form)
113
112
  cancel_and_submit = content_tag(:div, :class => "pull-right") do
114
113
  link_to(_("Cancel"), args[:cancel_path], :class => "btn btn-default") + ' ' +
@@ -141,6 +140,7 @@ module PoliciesHelper
141
140
  def policy_breadcrumbs
142
141
  if @policy
143
142
  breadcrumbs(:resource_url => api_compliance_policies_path,
143
+ :name_field => 'name',
144
144
  :items => [
145
145
  { :caption => _('Policies'),
146
146
  :url => url_for(policies_path) },
@@ -1,3 +1,3 @@
1
1
  module ForemanOpenscap
2
- VERSION = "0.12.2".freeze
2
+ VERSION = "0.12.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_openscap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - slukasik@redhat.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-26 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface