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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d2c1d39082dc6895dbc9cf6119b4352cfc98e80
4
- data.tar.gz: d5dd0061d0889225c4f17058cd77b0d388f8923d
3
+ metadata.gz: d5acd4d3ff187681501c9697623e533469fbd078
4
+ data.tar.gz: 3db1b1ccb842236be1bfbb67892057048e9ca222
5
5
  SHA512:
6
- metadata.gz: 93765f928ed87f7dcaafd5620a2b38b679752277e4f269e41eac44bce573ea3247d2f35ba354ecb5effd95345fc4928109ffae191a3d5a2f91391803f2fd7283
7
- data.tar.gz: 2da766a6a4b9b3dfc0930c1a4e78e6e53207debef1478b3eca7b69ee843dc903e973f385333e1bab5dda345eef05c70f92d04596f07b4287a482f7173bb1e36c
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.empty?
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
- @resource_url ||= namespace_url + [resource]
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
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module CrujCrujCruj
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cruj_cruj_cruj
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
  - Victor Campos