interage-helper 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f36bec08df168eeccabb69cd87d305bad45202cc8cc12a9c8951df719778a57d
|
|
4
|
+
data.tar.gz: '0278076c12790ccae34b87dfc2b9fffb4f1e9dfccf31c6700d2fe8172a8641f8'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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('
|
|
46
|
+
default_not_found = t('bootstrap.alert.not_found', default: '')
|
|
43
47
|
|
|
44
|
-
t("
|
|
45
|
-
|
|
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)
|
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.
|
|
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
|