interage-helper 0.1.2 → 0.1.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
  SHA256:
3
- metadata.gz: ac5f7d0a1eb428121dd8b4373750fb47902c9a4abcdc8893bd32ab62586fda39
4
- data.tar.gz: 152f1e15e9dd42b14f111f3ca5e291b689131b0fb17e266f0693a902eb17ec6c
3
+ metadata.gz: f36bec08df168eeccabb69cd87d305bad45202cc8cc12a9c8951df719778a57d
4
+ data.tar.gz: '0278076c12790ccae34b87dfc2b9fffb4f1e9dfccf31c6700d2fe8172a8641f8'
5
5
  SHA512:
6
- metadata.gz: af13acdf70d406a4e1b2c555fb5769fbbfaea79a2d33a643cba79a45bd84b0668feb8115c413d8147e66742f208d70c8e5b8910f2c8734426ec5015a68ab64b6
7
- data.tar.gz: 2e50f6492193c0bd1743d9ce6c2b91eb07c40be370f7127b5d6097532b591cb257c7ad2bd966dac55c3f3db8a5978653d465f71f32380a6e2402f70b88c51ca1
6
+ metadata.gz: 13a9ba7985a668808341028ee7b08266008cf57a5fd5dbea7483defb49f6c1d962ef114847967fd2af97e4b73137ab000f89364bd9eef260b819063f644d8e8e
7
+ data.tar.gz: 1b4493459f432f9ac2561c893d3f9e04e9fbe7c0813d85a7d10f5cded67ae81f147052ee8420b7a026d0162586e97804992af341f23ca78627ef2add05ad821d
Binary file
@@ -3,19 +3,33 @@ pt-BR:
3
3
  truly: 'Sim'
4
4
  falsely: 'Não'
5
5
 
6
- index:
7
- actions: Ações
8
- not_found: Nenhum registro foi encontrado
9
- model:
6
+ application:
7
+ name: ''
8
+ destroy_confirm_message: Tem certeza que deseja apagar?
9
+
10
+ bootstrap:
11
+ alert:
12
+ icons:
13
+ default: info-circle
14
+ info: info-circle
15
+ warning: exclamation-triangle
16
+ success: check
17
+ notice: check
18
+ danger: ban
19
+ error: ban
20
+ subtitles:
21
+ info: Informação
22
+ warning: Atenção
23
+ success: Sucesso
24
+ notice: Sucesso
25
+ danger: Erro
26
+ error: Erro
27
+ not_found: Nenhum registro foi encontrado
10
28
  male:
11
29
  not_found: Nenhum %{model} foi encontrado
12
30
  female:
13
31
  not_found: Nenhuma %{model} foi encontrada
14
32
 
15
- application:
16
- name: ''
17
- destroy_confirm_message: Tem certeza que deseja apagar?
18
-
19
33
  menu:
20
34
  default:
21
35
  index: Listar
@@ -80,6 +94,8 @@ pt-BR:
80
94
  dollar: attach_money
81
95
  envelope: email
82
96
  eye: visibility
97
+ exclamation-triangle: report_problem
98
+ info-circle: info
83
99
  hdd-o: save_alt
84
100
  paperclip: attachment
85
101
  files-o: file_copy
@@ -3,7 +3,11 @@
3
3
  module Interage
4
4
  module BootstrapHelper
5
5
  def bootstrap_alert(type, message)
6
- content_tag(:div, message, class: "no-margin alert alert-#{type}")
6
+ icon = t("bootstrap.alert.icons.#{type}", default: type)
7
+
8
+ content_tag :div, class: "no-margin alert alert-#{type}" do
9
+ app_icon_text(icon, message)
10
+ end
7
11
  end
8
12
 
9
13
  def bootstrap_alert_default(message)
@@ -39,10 +43,10 @@ module Interage
39
43
  end
40
44
 
41
45
  def text_not_found(gender, model)
42
- default_not_found = t('index.model.not_found', default: '')
46
+ default_not_found = t('bootstrap.alert.not_found', default: '')
43
47
 
44
- t("index.model.#{gender}.not_found", model: tm(model).downcase,
45
- default: default_not_found)
48
+ t("bootstrap.alert.#{gender}.not_found", model: tm(model).downcase,
49
+ default: default_not_found)
46
50
  end
47
51
 
48
52
  def text_not_found_male(model)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Interage
4
4
  module Helper
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interage-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walmir Neto
@@ -76,6 +76,7 @@ files:
76
76
  - bin/setup
77
77
  - interage-helper-0.1.0.gem
78
78
  - interage-helper-0.1.1.gem
79
+ - interage-helper-0.1.2.gem
79
80
  - interage-helper.gemspec
80
81
  - lib/generators/interage/helper/install/USAGE
81
82
  - lib/generators/interage/helper/install/install_generator.rb