Skip to content

Commit 4001cf9

Browse files
authored
Merge pull request #586 from coopdevs/develop
v3.2.0
2 parents de812fb + 439b11c commit 4001cf9

29 files changed

+98
-182
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
# Ignore bundler config
88
/.bundle
99

10-
# Ignore the default SQLite database.
11-
/db/*.sqlite3
12-
/db/*.sqlite3-journal
13-
1410
# Ignore all logfiles and tempfiles.
1511
/log/*.log
1612
/tmp
@@ -32,8 +28,6 @@ capybara-*.html
3228
/vendor/bundle
3329
/coverage/
3430
/spec/tmp/*
35-
timeoverflow_development
36-
timeoverflow_test
3731
.byebug_history
3832
.env
3933
.DS_Store

β€Žapp/assets/javascripts/application.jsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ $(document).on('click', 'span.show-password', function(event) {
2323
$(this).prev('input').attr('type', inputType);
2424
$(this).find('.material-icons').html(icon);
2525
});
26+
27+
$(function() {
28+
$("#select2").select2();
29+
});

β€Žapp/assets/stylesheets/application.scssβ€Ž

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ html {
223223
padding: 20px;
224224
}
225225

226-
227226
.row.exports {
228227
padding: 10px;
229228
}
@@ -352,17 +351,6 @@ label[required]::after{
352351
}
353352
}
354353

355-
.back-overlay {
356-
background-color: $black;
357-
background-size: cover;
358-
display: none;
359-
height: 100%;
360-
position: absolute;
361-
top: 0;
362-
width: 100%;
363-
z-index: -1;
364-
}
365-
366354
.navbar .container-fluid {
367355
padding: 0;
368356
}
@@ -402,12 +390,6 @@ label[required]::after{
402390
background-size: cover;
403391
}
404392

405-
.back-overlay {
406-
display: block;
407-
filter: alpha(opacity = 60); /* For IE8 and earlier */
408-
opacity: 0.2;
409-
}
410-
411393
.login-wrapper {
412394
position: absolute;
413395
top: 51%;
@@ -455,11 +437,6 @@ label[required]::after{
455437
background: image-url('home_back_mobile.jpg') no-repeat center center fixed;
456438
background-size: cover;
457439
}
458-
459-
.back-overlay {
460-
filter: alpha(opacity = 15); /* For IE8 and earlier */
461-
opacity: 0.15;
462-
}
463440
}
464441

465442
.landing-page .content, .pages .banner {
@@ -586,11 +563,7 @@ label[required]::after{
586563
margin-top: 1.5rem;
587564
}
588565

589-
.back-overlay {
590-
display: none;
591-
}
592-
593-
.header, .banner, .empower, .donate {
566+
.header, .banner, .section-block {
594567
text-align: center;
595568
}
596569

@@ -672,7 +645,7 @@ label[required]::after{
672645
}
673646
}
674647

675-
.empower, .donate {
648+
.section-block {
676649
h2 {
677650
margin-bottom: 4rem;
678651
}

β€Žapp/assets/stylesheets/application/variables.scssβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ $palette-black: #333;
99
$bg-color: #f5f8fa;
1010
$white: #ffffff;
1111
$border: #e1e8ed;
12-
$menu-disabled: #ddd;
1312
$black: #000;
1413
$form-input-glyph: #555;
1514
$form-input-bg-color: #f5f5f5;
@@ -26,4 +25,3 @@ $pages-anchor: #4a4a4a;
2625
$pages-anchor-hover: #8a8a8a;
2726
$features-background: #f5f5f5;
2827
$features-separator: #d8d8d8;
29-

β€Žapp/decorators/post_report_decorator.rbβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def name(extension)
1414

1515
def headers
1616
[
17+
"",
1718
@type.model_name.human,
1819
User.model_name.human
1920
]
@@ -23,10 +24,11 @@ def rows
2324
grouped_rows = []
2425

2526
@collection.each do |category, posts|
26-
grouped_rows << [category.try(:name) || "-", ""]
27+
grouped_rows << ["", category.try(:name) || "-", ""]
2728

2829
posts.each do |post|
2930
grouped_rows << [
31+
post.id,
3032
post.title,
3133
"#{post.user} (#{post.member_uid})"
3234
]

β€Žapp/views/application/_navbar.html.erbβ€Ž

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,31 @@
5252
<div class="row">
5353
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
5454
<ul class="nav nav-pills actions-menu">
55-
<%= render 'application/menus/user_list_link' %>
56-
<%= render 'application/menus/offers_list_link' %>
57-
<%= render 'application/menus/inquiries_list_link' %>
55+
<li class="<%= "active" if current_page?(users_path) %>">
56+
<%= link_to users_path do %>
57+
<%= glyph :user %>
58+
<%= t("users.index.members") %>
59+
<% end %>
60+
</li>
61+
<li class="<%= "active" if current_page?(offers_path) %>">
62+
<%= link_to offers_path do %>
63+
<%= glyph :offer %>
64+
<%= Offer.model_name.human(count: :many) %>
65+
<% end %>
66+
</li>
67+
<li class="<%= "active" if current_page?(inquiries_path) %>">
68+
<%= link_to inquiries_path do %>
69+
<%= glyph :inquiry %>
70+
<%= Inquiry.model_name.human(count: :many) %>
71+
<% end %>
72+
</li>
5873
<% if current_user.manages? current_organization %>
59-
<%= render 'application/menus/offers_by_tag_link' %>
74+
<li class="<%= "active" if current_page?(alpha_grouped_index_tags_path(post_type: "offer")) %>">
75+
<%= link_to alpha_grouped_index_tags_path(post_type: "offer") do %>
76+
<%= glyph :tags %>
77+
<%= t ".tags" %>
78+
<% end %>
79+
</li>
6080
<%= render 'application/menus/organization_reports_menu' %>
6181
<%= render 'application/menus/organization_statistics_menu' %>
6282
<%= render 'application/menus/organization_listings_menu' %>

β€Žapp/views/application/menus/_inquiries_list_link.html.erbβ€Ž

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

β€Žapp/views/application/menus/_offers_by_tag_link.html.erbβ€Ž

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

β€Žapp/views/application/menus/_offers_list_link.html.erbβ€Ž

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

β€Žapp/views/application/menus/_organization_switcher.html.erbβ€Ž

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

0 commit comments

Comments
Β (0)