Skip to content

Commit f3e99f4

Browse files
authored
Merge pull request #487 from coopdevs/develop
Release 1.13.0
2 parents 274a4cd + 42bc5b8 commit f3e99f4

File tree

15 files changed

+134
-14
lines changed

15 files changed

+134
-14
lines changed

app/assets/stylesheets/application.css.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ html {
179179
margin: 14px 0;
180180
padding: 5px 20px;
181181

182+
.post__group_label {
183+
margin-left: 10px;
184+
}
185+
182186
h4 {
183187
font-weight: bold;
184188
display: block;
@@ -710,3 +714,9 @@ label[required]::after{
710714
line-height: 1.6em;
711715
}
712716
}
717+
718+
.inline-checkbox {
719+
vertical-align: middle;
720+
display: inline;
721+
margin: 0 !important;
722+
}

app/controllers/posts_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def set_user_id(p)
108108

109109
def post_params
110110
permitted_fields = [:description, :end_on, :global, :joinable, :permanent,
111-
:start_on, :title, :category_id, :user_id,
111+
:start_on, :title, :category_id, :user_id, :is_group,
112112
:publisher_id, :active, tag_list: []]
113113

114114
params.fetch(resource, {}).permit(*permitted_fields).tap do |p|

app/views/shared/_post.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<div class="panel-heading">
88
<h3 class="panel-title">
99
<%= post.class.model_name.human %>
10+
<% if post.is_group %>
11+
<div class="pull-right label label-default"><%= I18n.t("activerecord.attributes.#{post.class.name.downcase}.is_group") %></div>
12+
<% end %>
1013
</h3>
1114
</div>
1215
<div class="panel-body">

app/views/shared/_post_form.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
{ include_blank: true },
2525
class: "form-control" %>
2626
</div>
27+
<div class="form-group">
28+
<%= label :post, :is_group, I18n.t("shared.post_form.group_#{post.class.name.downcase}"), required: true %>
29+
<%= f.check_box :is_group, class: 'inline-checkbox' %>
30+
</div>
2731
<div class="form-group">
2832
<%= f.label :tag_list %>
2933
<%= f.select :tag_list,

app/views/shared/_posts.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<div class="post">
33
<h4>
44
<%= link_to post.title, post %>
5+
<% if post.is_group %>
6+
<div class="post__group_label label label-default"><%= I18n.t("activerecord.attributes.#{post.class.name.downcase}.is_group") %></div>
7+
<% end %>
58
</h4>
69
<p>
710
<%= strip_tags(post.rendered_description.to_html) %>

config/locales/ca.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ ca:
2121
common:
2222
created_at: Creat
2323
updated_at: Actualitzat
24+
inquiry:
25+
is_group: Demanda grupal
26+
offer:
27+
is_group: Oferta grupal
2428
organization:
2529
address: Direcció
2630
city: Ciutat
@@ -419,6 +423,8 @@ ca:
419423
delete_reason: Esteu segur d'esborrar aquest comentari?
420424
movements: Moviments
421425
post_form:
426+
group_inquiry: És una demanda grupal?
427+
group_offer: És una oferta grupal?
422428
you_can_use: Pots fer servir
423429
simple_form:
424430
error_notification:

config/locales/en.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ en:
3434
reg_number_seq: User sequence number
3535
theme: Theme
3636
updated_at: Updated
37+
offer:
38+
is_group: Group offer
39+
inquiry:
40+
is_group: Group inquiry
3741
post:
3842
category: Category
3943
created_at: Created
@@ -419,6 +423,8 @@ en:
419423
delete_reason: Are you sure to delete this comment?
420424
movements: Movements
421425
post_form:
426+
group_offer: Is it a group offer?
427+
group_inquiry: Is it a group inquiry?
422428
you_can_use: You can use
423429
simple_form:
424430
error_notification:

config/locales/es.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ es:
2121
common:
2222
created_at: Creado
2323
updated_at: Actualizado
24+
inquiry:
25+
is_group: Demanda grupal
26+
offer:
27+
is_group: Oferta grupal
2428
organization:
2529
address: Dirección
2630
city: Ciudad
@@ -419,6 +423,8 @@ es:
419423
delete_reason: "¿Está seguro de borrar este comentario?"
420424
movements: Movimientos
421425
post_form:
426+
group_inquiry: Es una demanda grupal?
427+
group_offer: Es una oferta grupal?
422428
you_can_use: Puedes usar
423429
simple_form:
424430
error_notification:

config/locales/eu.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ eu:
2121
common:
2222
created_at: Sortua
2323
updated_at: Eguneratua
24+
inquiry:
25+
is_group:
26+
offer:
27+
is_group:
2428
organization:
2529
address: Helbidea
2630
city: Herria
@@ -425,6 +429,8 @@ eu:
425429
delete_reason: Zihur zaude , azalpen hau ezabatu nahi duzula?
426430
movements: Mugimenduak
427431
post_form:
432+
group_inquiry:
433+
group_offer:
428434
you_can_use: Erabil dezakezu
429435
simple_form:
430436
error_notification:

config/locales/gl.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ gl:
2121
common:
2222
created_at: Creado
2323
updated_at: Actualizado
24+
inquiry:
25+
is_group: Solicitude grupal
26+
offer:
27+
is_group: Oferta grupal
2428
organization:
2529
address: Dirección
2630
city: Cidade
@@ -96,8 +100,8 @@ gl:
96100
one: Comentario
97101
other: Comentarios
98102
inquiry:
99-
one: Enquisa
100-
other: Enquisas
103+
one: Demanda
104+
other: Demandas
101105
offer:
102106
one: Oferta
103107
other: Ofertas
@@ -137,9 +141,9 @@ gl:
137141
demographics: Datos demográficos
138142
global_activity: Actividade global
139143
inactive_users: Persoas suarias inactivas
140-
inquiry_public_link: Consultas de enlace público
144+
inquiry_public_link: Demandas de enlace público
141145
last_login: Último inicio de sesión
142-
offer_public_link: Ofrece unha conexión pública
146+
offer_public_link: Enlace público a ofertas
143147
organizations: Organizacións
144148
reports: Informes
145149
sign_out: Saír
@@ -316,7 +320,7 @@ gl:
316320
edit:
317321
submit: Cambiar consulta
318322
index:
319-
new_inquiry: Nova consulta
323+
new_inquiry: Nova Demanda
320324
new:
321325
submit: Crear consulta
322326
layouts:
@@ -394,13 +398,13 @@ gl:
394398
empower-text-3: O código fonte de TimeOverflow está dispoñible en base a unha licenza de código aberto e pode descargala en %{github_link}
395399
empower-title: Empoderando os bancos de tempo
396400
feature-group-1: Xestión de Banco de tempo con funcións de administración
397-
feature-group-2: Rede social e banca en liña accesibles polas persoas membros
398-
feature-text-1: Creación / eliminación / actualizacións das persoas membros do banco
401+
feature-group-2: Rede social e banca en liña accesibles polas persoas usuarias
402+
feature-text-1: Creación / eliminación / actualizacións das persoas usuarias do banco
399403
feature-text-2: Publicación de ofertas e consultas
400404
feature-text-3: Inclúe controis e xestión da contabilidade
401-
feature-text-4: As persoas membros dun Banco de Tempo poden acceder ao sistema e conectarse con outras persoas membros
405+
feature-text-4: As persoas usuarias dun Banco de Tempo poden acceder ao sistema e conectarse con outras persoas usuarias
402406
feature-text-5: Publicación de ofertas e consultas
403-
feature-text-6: Pague horas a outras persoas membros
407+
feature-text-6: Pague horas a outras persoas usuarias
404408
impulsem-link: Aumenta o que fas
405409
subtitle: TimeOverflow é de código aberto, gratuíto e colaborativo
406410
title: O software deseñado por e para
@@ -419,6 +423,8 @@ gl:
419423
delete_reason: Estás seguro/a de borrar este comentario?
420424
movements: Movementos
421425
post_form:
426+
group_inquiry: É unha solicitude grupal?
427+
group_offer: É unha oferta grupal?
422428
you_can_use: Podes usar
423429
simple_form:
424430
error_notification:
@@ -452,7 +458,7 @@ gl:
452458
num_people: "# de persoas"
453459
unknown: Descoñecido
454460
statistics_global_activity:
455-
bank_activity: Actividade bancaria
461+
bank_activity: Actividade do Peto
456462
end_date: final mm/aaaa
457463
global_activity: Actividade global
458464
ini_date: ini mm/aaaa
@@ -512,7 +518,7 @@ gl:
512518
create: Crea unha nova persoa usuaria
513519
manage_warning: Vas cambiar privilexios para o usuario/a %{username}
514520
manage_warning_angular: Vas cambiar privilexios para o usuario/a {{username}}
515-
members: Persoas membros
521+
members: Persoas usuarias
516522
user_created: O usuario/a %{uid} %{name} gardouse
517523
member_card:
518524
active_ago: Tempo activo %{time}

0 commit comments

Comments
 (0)