cruj_cruj_cruj 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 +4 -4
- data/app/controllers/cruj_cruj_cruj_controller.rb +14 -2
- data/config/locales/pt-BR.yml +8 -0
- data/lib/cruj_cruj_cruj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5acd4d3ff187681501c9697623e533469fbd078
|
4
|
+
data.tar.gz: 3db1b1ccb842236be1bfbb67892057048e9ca222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5e55119b3145df92dcc7fd9c5d650e065c03225ed70a2e4a61af3576dcc4e62f08f0a85f6b554dc5e842b3d32f77bbd82413e9c29ec54e9c59364c3ac8a2df0
|
7
|
+
data.tar.gz: a8717325444256c633c35fc8ae49dad9e3fc5ca6263edd39a1256e525a04b124d424fbe50f3a322d21d43378c0fbf735c09df4ee65575acc62c32dd075b6977d
|
@@ -19,7 +19,7 @@ class CrujCrujCrujController < ApplicationController
|
|
19
19
|
|
20
20
|
def find_all_resources
|
21
21
|
@q = model_class.ransack(params[:q])
|
22
|
-
@q.sorts = default_sort if @q.sorts.
|
22
|
+
@q.sorts = default_sort if @q.sorts.blank?
|
23
23
|
@resources = @q.result(distinct: true).page(params[:page])
|
24
24
|
end
|
25
25
|
|
@@ -44,7 +44,7 @@ class CrujCrujCrujController < ApplicationController
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def resource_url(resource)
|
47
|
-
|
47
|
+
namespace_url + [resource] + [ resource.respond_to?(:type) ? {"type" => resource.type} : {} ]
|
48
48
|
end
|
49
49
|
|
50
50
|
def index_attributes
|
@@ -133,6 +133,10 @@ class CrujCrujCrujController < ApplicationController
|
|
133
133
|
"status_name_cont"
|
134
134
|
end
|
135
135
|
|
136
|
+
def filter_for_issue_status
|
137
|
+
"issue_status_name_cont"
|
138
|
+
end
|
139
|
+
|
136
140
|
def filter_for_status_to
|
137
141
|
"status_to_name_cont"
|
138
142
|
end
|
@@ -145,6 +149,14 @@ class CrujCrujCrujController < ApplicationController
|
|
145
149
|
"custom_field_name_cont"
|
146
150
|
end
|
147
151
|
|
152
|
+
def filter_for_author
|
153
|
+
"author_firstname_or_author_lastname_cont"
|
154
|
+
end
|
155
|
+
|
156
|
+
def filter_for_principal
|
157
|
+
"principal_firstname_or_principal_lastname_cont"
|
158
|
+
end
|
159
|
+
|
148
160
|
def filter_for_enum(attribute, values)
|
149
161
|
["#{attribute}_eq", values]
|
150
162
|
end
|
data/config/locales/pt-BR.yml
CHANGED
@@ -2,13 +2,21 @@ pt-BR:
|
|
2
2
|
true_field: Sim
|
3
3
|
false_field: Não
|
4
4
|
all_field: Todos
|
5
|
+
label_principal: 'Atribuído para'
|
6
|
+
label_issue_status: 'Status'
|
7
|
+
label_type: Tipo
|
8
|
+
|
5
9
|
project_name_cont: Nome do projeto contém
|
6
10
|
tracker_name_cont: Nome do tipo da tarefa contém
|
7
11
|
custom_field_name_cont: Nome do campo customizado contém
|
8
12
|
group_lastname_cont: Nome do grupo contém
|
13
|
+
issue_status_name_cont: Nome do status de contém
|
9
14
|
status_to_name_cont: Nome do status de contém
|
10
15
|
status_from_name_cont: Nome do status para contém
|
11
16
|
custom_field_value_cont: Valor do campo customizado contém
|
17
|
+
principal_firstname_or_principal_lastname_cont: 'Atribuído para contém'
|
18
|
+
type_cont: Tipo contém
|
19
|
+
|
12
20
|
ransack:
|
13
21
|
search: "pesquisar"
|
14
22
|
predicate: "predicado"
|