diff --git a/.gitignore b/.gitignore index f175a47d5..1a60ee003 100644 --- a/.gitignore +++ b/.gitignore @@ -7,10 +7,6 @@ # Ignore bundler config /.bundle -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - # Ignore all logfiles and tempfiles. /log/*.log /tmp @@ -32,8 +28,6 @@ capybara-*.html /vendor/bundle /coverage/ /spec/tmp/* -timeoverflow_development -timeoverflow_test .byebug_history .env .DS_Store diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e276396e6..d2af575af 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -23,3 +23,7 @@ $(document).on('click', 'span.show-password', function(event) { $(this).prev('input').attr('type', inputType); $(this).find('.material-icons').html(icon); }); + +$(function() { + $("#select2").select2(); +}); diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index c8bd7ba29..ff60006dc 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -223,7 +223,6 @@ html { padding: 20px; } - .row.exports { padding: 10px; } @@ -352,17 +351,6 @@ label[required]::after{ } } -.back-overlay { - background-color: $black; - background-size: cover; - display: none; - height: 100%; - position: absolute; - top: 0; - width: 100%; - z-index: -1; -} - .navbar .container-fluid { padding: 0; } @@ -402,12 +390,6 @@ label[required]::after{ background-size: cover; } - .back-overlay { - display: block; - filter: alpha(opacity = 60); /* For IE8 and earlier */ - opacity: 0.2; - } - .login-wrapper { position: absolute; top: 51%; @@ -455,11 +437,6 @@ label[required]::after{ background: image-url('home_back_mobile.jpg') no-repeat center center fixed; background-size: cover; } - - .back-overlay { - filter: alpha(opacity = 15); /* For IE8 and earlier */ - opacity: 0.15; - } } .landing-page .content, .pages .banner { @@ -586,11 +563,7 @@ label[required]::after{ margin-top: 1.5rem; } - .back-overlay { - display: none; - } - - .header, .banner, .empower, .donate { + .header, .banner, .section-block { text-align: center; } @@ -672,7 +645,7 @@ label[required]::after{ } } - .empower, .donate { + .section-block { h2 { margin-bottom: 4rem; } diff --git a/app/assets/stylesheets/application/variables.scss b/app/assets/stylesheets/application/variables.scss index 3a06a6086..d426312da 100644 --- a/app/assets/stylesheets/application/variables.scss +++ b/app/assets/stylesheets/application/variables.scss @@ -9,7 +9,6 @@ $palette-black: #333; $bg-color: #f5f8fa; $white: #ffffff; $border: #e1e8ed; -$menu-disabled: #ddd; $black: #000; $form-input-glyph: #555; $form-input-bg-color: #f5f5f5; @@ -26,4 +25,3 @@ $pages-anchor: #4a4a4a; $pages-anchor-hover: #8a8a8a; $features-background: #f5f5f5; $features-separator: #d8d8d8; - diff --git a/app/decorators/post_report_decorator.rb b/app/decorators/post_report_decorator.rb index b1c4fcce4..3ebb3985f 100644 --- a/app/decorators/post_report_decorator.rb +++ b/app/decorators/post_report_decorator.rb @@ -14,6 +14,7 @@ def name(extension) def headers [ + "", @type.model_name.human, User.model_name.human ] @@ -23,10 +24,11 @@ def rows grouped_rows = [] @collection.each do |category, posts| - grouped_rows << [category.try(:name) || "-", ""] + grouped_rows << ["", category.try(:name) || "-", ""] posts.each do |post| grouped_rows << [ + post.id, post.title, "#{post.user} (#{post.member_uid})" ] diff --git a/app/views/application/_navbar.html.erb b/app/views/application/_navbar.html.erb index 840f9b003..4f41013a3 100644 --- a/app/views/application/_navbar.html.erb +++ b/app/views/application/_navbar.html.erb @@ -52,11 +52,31 @@