Skip to content

Commit

Permalink
Make that a GET-compatible route
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode committed Mar 29, 2017
1 parent ecd7999 commit 2c2b656
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
6 changes: 3 additions & 3 deletions app/views/flag_conditions/user_overview.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h3>Flagger Overview</h3>

<h5>User</h5>
<h4>User</h4>
<table class="table table-striped">
<thead>
<tr>
Expand All @@ -20,7 +20,7 @@
</tbody>
</table>

<h5>Preferences</h5>
<h4>Preferences</h4>
<table class="table table-striped">
<thead>
<tr>
Expand All @@ -46,7 +46,7 @@
</tbody>
</table>

<h5>Conditions</h5>
<h4>Conditions</h4>
<table class="table table-striped">
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
get 'logs', :to => 'flag_log#index', :as => :flag_logs
get 'logs/unflagged', :to => 'flag_log#not_flagged', :as => :unflagged_logs
get 'users/:user_id/logs', :to => 'flag_log#index', :as => :flag_logs_by_user
get 'users/:user/overview', :to => 'flag_conditions#user_overview', :as => :user_overview
get 'users/overview', :to => 'flag_conditions#user_overview', :as => :user_overview

scope "/audits" do
get "settings", :to => 'flag_settings#audits', :as => "flag_settings_audits"
Expand Down
21 changes: 0 additions & 21 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,32 +136,13 @@
t.datetime "updated_at", null: false
end

create_table "flags", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t|
t.string "reason", collation: "utf8_unicode_ci"
t.string "user_id", collation: "utf8_unicode_ci"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "is_completed", default: false
t.integer "post_id"
t.index ["post_id"], name: "index_flags_on_post_id"
end

create_table "github_tokens", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.string "token", collation: "utf8mb4_bin"
t.datetime "expires"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "ignored_users", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci" do |t|
t.string "user_name", collation: "utf8_unicode_ci"
t.integer "user_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "is_ignored"
t.index ["user_id"], name: "index_ignored_users_on_user_id"
end

create_table "moderator_sites", id: :integer, force: :cascade, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8" do |t|
t.integer "user_id"
t.integer "site_id"
Expand Down Expand Up @@ -317,8 +298,6 @@
add_foreign_key "flag_logs", "posts"
add_foreign_key "flag_logs", "sites"
add_foreign_key "flag_logs", "users"
add_foreign_key "flags", "posts"
add_foreign_key "ignored_users", "users"
add_foreign_key "smoke_detectors", "users"
add_foreign_key "user_site_settings", "sites"
add_foreign_key "user_site_settings", "users"
Expand Down

0 comments on commit 2c2b656

Please sign in to comment.