Project

General

Profile

Revision 7ff105d1

Added by David Davis about 7 years ago

Fixes #12681 - Support rubocop 0.35.1 by fixing broken rules

View differences:

app/helpers/containers_helper.rb
30 30
  def container_title_actions(container)
31 31
    @compute_resource = container.compute_resource
32 32
    title_actions(
33
        button_group(
34
          link_to(_('Commit'), '#commit-modal', :'data-toggle' => 'modal')
35
        ),
36
        button_group(container_power_action(container.in_fog)),
37
        button_group(
38
          display_delete_if_authorized(
39
            hash_for_container_path(:id => container.id)
40
                                    .merge(:auth_object => container,
41
                                           :auth_action => 'destroy',
42
                                           :authorizer  => authorizer),
43
            :confirm     => _("Delete %s?") % container.name)
44
        )
33
      button_group(
34
        link_to(_('Commit'), '#commit-modal', :'data-toggle' => 'modal')
35
      ),
36
      button_group(container_power_action(container.in_fog)),
37
      button_group(
38
        display_delete_if_authorized(
39
          hash_for_container_path(:id => container.id)
40
                                  .merge(:auth_object => container,
41
                                         :auth_action => 'destroy',
42
                                         :authorizer  => authorizer),
43
          :confirm     => _("Delete %s?") % container.name)
44
      )
45 45
    )
46 46
  end
47 47

  
......
69 69

  
70 70
  def power_on_off_message(vm)
71 71
    _("Are you sure you want to power %{act} %{vm}?") % { :act => action_string(vm).downcase.strip,
72
                                                          :vm => vm  }
72
                                                          :vm => vm }
73 73
  end
74 74

  
75 75
  def auto_complete_docker_search(name, val, options = {})

Also available in: Unified diff