my_nagios 0.0.3 → 0.0.4

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: 358b8883d69c7d489a7662a3da495907efc3dae3
4
- data.tar.gz: a7f10106f444595ad53b5e0efdb1fc8af7ac3881
3
+ metadata.gz: 6c81af784954c0a2770b725f040679fd24438ca7
4
+ data.tar.gz: 87714809d6f2fb412c999c3b337db1a4d1860c04
5
5
  SHA512:
6
- metadata.gz: 2d23398061c02968b1428b60357c3a16eeded5e1f8c5f4ae46c199a717a7408387ac6ee09ebde7c25bc9511591fac7dba2dc8b6c76930761ff77e001c5031880
7
- data.tar.gz: 4998de0dbefbba5d6cb4f5c220ea7009b54a40763051b8d4d90b6da53e17a5ff60432116791940884fe7f38698b2d9df0115f2a9ed310560da6e1ea3f146b33e
6
+ metadata.gz: be3e802b5290b24b49e91ea7cc68bcb9d3bf1761eb92fa00796a129a97ee95297cc9607780b482fce31c429f44c1164bbdc957c1d097d8ddcffda87eb31108e8
7
+ data.tar.gz: ea05ff6bf582358ed5575e682d11ff568092afab20b0485ccb62344e7462a7800d59d808b03c123398ccb4cb67856f41fe7704496a87c8ca090d6d0dca992b1a
@@ -5,6 +5,10 @@
5
5
 
6
6
 
7
7
  #my_nagios_body {
8
+ a.fail_check {
9
+ font-weight: bold;
10
+ }
11
+
8
12
  .updating {
9
13
  color: #e6e6e6;
10
14
  }
@@ -1,10 +1,12 @@
1
1
  - run_now ||= false
2
2
  - show_group ||= false
3
3
 
4
- %tr{ id: dom_id(check), class: (check.enabled? ? 'enabled' : 'disabled') }
4
+ - tr_id = show_group ? nil : dom_id(check)
5
+
6
+ %tr{ id: tr_id, class: (check.enabled? ? 'enabled' : 'disabled') }
5
7
  - if show_group
6
8
  %td
7
- %strong=check.group.name
9
+ =link_to check.group.name, "##{dom_id(check)}", class: 'fail_check'
8
10
  - else
9
11
  %td=check.command
10
12
 
@@ -1,24 +1,40 @@
1
- =form_for @check do |f|
2
- =f.label :group
3
- =f.select :group, options_for_select( MyNagios::Group.all.map{|g| [g.name, g.id]} )
4
- %br
5
- =f.label :host
6
- =f.text_field :host
7
- %br
8
- =f.label :user
9
- =f.text_field :user
10
- %br
11
- =f.label :pem_key
12
- =f.text_field :pem_key
13
- %br
14
- =f.label :description
15
- =f.text_field :description
16
- %br
17
- =f.label :interval
18
- =f.text_field :interval
19
- %br
20
- =f.label :command
21
- =f.text_field :command
22
- %br
1
+ .row.col-sm-12
2
+ =form_for @check, html: { class: 'form-horizontal' } do |f|
3
+ .form-group
4
+ =f.label :group, class: 'col-sm-1 control-label'
5
+ .col-sm-10
6
+ =f.select :group, options_for_select( MyNagios::Group.all.map{|g| [g.name, g.id]}, @check.group_id ), class: 'form-control'
23
7
 
24
- =f.submit
8
+ .form-group
9
+ =f.label :host, class: 'col-sm-1 control-label'
10
+ .col-sm-10
11
+ =f.text_field :host, class: 'form-control'
12
+
13
+ .form-group
14
+ =f.label :user, class: 'col-sm-1 control-label'
15
+ .col-sm-10
16
+ =f.text_field :user, class: 'form-control'
17
+
18
+ .form-group
19
+ =f.label :pem_key, class: 'col-sm-1 control-label'
20
+ .col-sm-10
21
+ =f.text_field :pem_key, class: 'form-control'
22
+
23
+ .form-group
24
+ =f.label :description, class: 'col-sm-1 control-label'
25
+ .col-sm-10
26
+ =f.text_field :description, class: 'form-control'
27
+
28
+ .form-group
29
+ =f.label :interval, class: 'col-sm-1 control-label'
30
+ .col-sm-10
31
+ =f.text_field :interval, class: 'form-control'
32
+
33
+ .form-group
34
+ =f.label :command, class: 'col-sm-1 control-label'
35
+ .col-sm-10
36
+ =f.text_field :command, class: 'form-control'
37
+
38
+ .form-group
39
+ .col-sm-10.col-sm-offset-1
40
+ =f.submit
@@ -1,3 +1,4 @@
1
- Edit check
1
+ %h2 Edit check
2
+ %hr
2
3
 
3
4
  = render partial: 'form'
@@ -1,3 +1,4 @@
1
- Add new check
1
+ %h2 Add new check
2
+ %hr
2
3
 
3
4
  = render partial: 'form'
@@ -1,3 +1,3 @@
1
1
  module MyNagios
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Omelchenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.6
19
+ version: 4.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.6
26
+ version: 4.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: haml
29
29
  requirement: !ruby/object:Gem::Requirement