Skip to content

Commit 369c9df

Browse files
authored
Merge pull request #618 from coopdevs/develop
v3.15.0
2 parents 41a5262 + bbc8a70 commit 369c9df

File tree

17 files changed

+39
-33
lines changed

17 files changed

+39
-33
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ gem 'rails', '~> 6.1.1'
66
gem 'rails-i18n', '~> 6.0.0'
77
gem 'rdiscount', '~> 2.2.0.1'
88
gem 'activeadmin', '~> 2.9.0'
9+
gem 'bootsnap', '~> 1.7.3', require: false
910
gem 'has_scope', '~> 0.7.2'
1011
gem 'pundit', '~> 2.1.0'
1112
gem 'pg', '~> 1.2.1'

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ GEM
8181
execjs
8282
bcrypt (3.1.16)
8383
bindex (0.8.1)
84+
bootsnap (1.7.3)
85+
msgpack (~> 1.0)
8486
bootstrap-sass (3.4.1)
8587
autoprefixer-rails (>= 5.2.1)
8688
sassc (>= 2.0.0)
@@ -204,6 +206,7 @@ GEM
204206
mini_mime (1.0.2)
205207
mini_portile2 (2.5.0)
206208
minitest (5.14.4)
209+
msgpack (1.4.2)
207210
net-scp (3.0.0)
208211
net-ssh (>= 2.6.5, < 7.0.0)
209212
net-ssh (6.1.0)
@@ -406,6 +409,7 @@ PLATFORMS
406409

407410
DEPENDENCIES
408411
activeadmin (~> 2.9.0)
412+
bootsnap (~> 1.7.3)
409413
bootstrap-sass (~> 3.4)
410414
byebug (~> 11.0)
411415
capistrano (~> 3.1)

app/admin/post.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
form do |f|
1717
f.semantic_errors *f.object.errors.keys
1818
f.inputs do
19-
f.input :type, as: :select, collection: %w[Offer Inquiry]
19+
f.input :type, as: :radio, collection: %w[Offer Inquiry]
2020
f.input :title
2121
f.input :organization
2222
f.input :user, hint: "* should be member of the selected organization"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
//= require active_admin/base
2+
//= require select2
3+
4+
$(function() {
5+
$("select").select2();
6+
});

app/assets/stylesheets/active_admin.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ $table-stripe-color: #f5f5f5;
44

55
@import "active_admin/mixins";
66
@import "active_admin/base";
7+
@import "select2";

app/assets/stylesheets/application.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
/*
2-
*= require select2
3-
*/
4-
1+
@import "select2";
52
@import "application/variables";
63
@import "bootstrap-sprockets";
74
@import "application/bootstrap-custom";
8-
@import "application/to-categories-dropdown";
9-
@import "application/to-member-card";
5+
@import "application/member-card";
106
@import "application/footer";
117

128
html {

app/assets/stylesheets/application/to-categories-dropdown.scss

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/controllers/offers_controller.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Managems of offer-type posts
2-
#
31
class OffersController < PostsController
42
def model
53
Offer

app/helpers/transfers_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ def accounts_from_movements(transfer, with_links: false)
1212
account = movement.account
1313

1414
if account.accountable.blank?
15-
I18n.t('.deleted_user')
15+
I18n.t('users.show.deleted_user')
1616
elsif account.accountable_type == 'Organization'
1717
link_to_if(with_links, account, organization_path(account.accountable))
1818
elsif account.accountable.active
1919
link_to_if(with_links, account.accountable.display_name_with_uid, user_path(account.accountable.user))
2020
else
21-
I18n.t('.inactive_user')
21+
I18n.t('users.show.inactive_user')
2222
end
2323
end
2424
end

0 commit comments

Comments
 (0)