adds incomplete verifications section [#500]
This commit is contained in:
6
app/controllers/admin/verifications_controller.rb
Normal file
6
app/controllers/admin/verifications_controller.rb
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
class Admin::VerificationsController < Admin::BaseController
|
||||||
|
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
@@ -39,6 +39,13 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li <%= "class=active" if controller_name == "verifications" %>>
|
||||||
|
<%= link_to admin_verifications_path do %>
|
||||||
|
<i class="icon-eye"></i>
|
||||||
|
<%= t("admin.menu.incomplete_verifications") %>
|
||||||
|
<% end %>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li <%= "class=active" if controller_name == "organizations" %>>
|
<li <%= "class=active" if controller_name == "organizations" %>>
|
||||||
<%= link_to admin_organizations_path do %>
|
<%= link_to admin_organizations_path do %>
|
||||||
<i class="icon-organizations"></i>
|
<i class="icon-organizations"></i>
|
||||||
|
|||||||
0
app/views/admin/verifications/index.html.erb
Normal file
0
app/views/admin/verifications/index.html.erb
Normal file
@@ -16,6 +16,7 @@ en:
|
|||||||
hidden_debates: Hidden debates
|
hidden_debates: Hidden debates
|
||||||
hidden_comments: Hidden comments
|
hidden_comments: Hidden comments
|
||||||
hidden_users: Blocked users
|
hidden_users: Blocked users
|
||||||
|
incomplete_verifications: Incomplete verifications
|
||||||
organizations: Organizations
|
organizations: Organizations
|
||||||
officials: Officials
|
officials: Officials
|
||||||
moderators: Moderators
|
moderators: Moderators
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ es:
|
|||||||
hidden_debates: Debates ocultos
|
hidden_debates: Debates ocultos
|
||||||
hidden_comments: Comentarios ocultos
|
hidden_comments: Comentarios ocultos
|
||||||
hidden_users: Usuarios bloqueados
|
hidden_users: Usuarios bloqueados
|
||||||
|
incomplete_verifications: Verificaciones incompletas
|
||||||
organizations: Organizaciones
|
organizations: Organizaciones
|
||||||
officials: Cargos públicos
|
officials: Cargos públicos
|
||||||
moderators: Moderadores
|
moderators: Moderadores
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ Rails.application.routes.draw do
|
|||||||
collection { get :search }
|
collection { get :search }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
resources :verifications, controller: :verifications, only: :index
|
||||||
resource :activity, controller: :activity, only: :show
|
resource :activity, controller: :activity, only: :show
|
||||||
resource :stats, only: :show
|
resource :stats, only: :show
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ ActiveRecord::Schema.define(version: 20150921095553) do
|
|||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
enable_extension "unaccent"
|
||||||
|
|
||||||
create_table "activities", force: :cascade do |t|
|
create_table "activities", force: :cascade do |t|
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
@@ -124,6 +125,7 @@ ActiveRecord::Schema.define(version: 20150921095553) do
|
|||||||
add_index "debates", ["cached_votes_total"], name: "index_debates_on_cached_votes_total", using: :btree
|
add_index "debates", ["cached_votes_total"], name: "index_debates_on_cached_votes_total", using: :btree
|
||||||
add_index "debates", ["cached_votes_up"], name: "index_debates_on_cached_votes_up", using: :btree
|
add_index "debates", ["cached_votes_up"], name: "index_debates_on_cached_votes_up", using: :btree
|
||||||
add_index "debates", ["confidence_score"], name: "index_debates_on_confidence_score", using: :btree
|
add_index "debates", ["confidence_score"], name: "index_debates_on_confidence_score", using: :btree
|
||||||
|
add_index "debates", ["description"], name: "index_debates_on_description", using: :btree
|
||||||
add_index "debates", ["hidden_at"], name: "index_debates_on_hidden_at", using: :btree
|
add_index "debates", ["hidden_at"], name: "index_debates_on_hidden_at", using: :btree
|
||||||
add_index "debates", ["hot_score"], name: "index_debates_on_hot_score", using: :btree
|
add_index "debates", ["hot_score"], name: "index_debates_on_hot_score", using: :btree
|
||||||
add_index "debates", ["title"], name: "index_debates_on_title", using: :btree
|
add_index "debates", ["title"], name: "index_debates_on_title", using: :btree
|
||||||
@@ -181,7 +183,7 @@ ActiveRecord::Schema.define(version: 20150921095553) do
|
|||||||
create_table "locks", force: :cascade do |t|
|
create_table "locks", force: :cascade do |t|
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.integer "tries", default: 0
|
t.integer "tries", default: 0
|
||||||
t.datetime "locked_until", default: '2015-09-15 07:56:29', null: false
|
t.datetime "locked_until", default: '2015-09-10 13:46:11', null: false
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
@@ -229,6 +231,7 @@ ActiveRecord::Schema.define(version: 20150921095553) do
|
|||||||
add_index "proposals", ["author_id"], name: "index_proposals_on_author_id", using: :btree
|
add_index "proposals", ["author_id"], name: "index_proposals_on_author_id", using: :btree
|
||||||
add_index "proposals", ["cached_votes_up"], name: "index_proposals_on_cached_votes_up", using: :btree
|
add_index "proposals", ["cached_votes_up"], name: "index_proposals_on_cached_votes_up", using: :btree
|
||||||
add_index "proposals", ["confidence_score"], name: "index_proposals_on_confidence_score", using: :btree
|
add_index "proposals", ["confidence_score"], name: "index_proposals_on_confidence_score", using: :btree
|
||||||
|
add_index "proposals", ["description"], name: "index_proposals_on_description", using: :btree
|
||||||
add_index "proposals", ["hidden_at"], name: "index_proposals_on_hidden_at", using: :btree
|
add_index "proposals", ["hidden_at"], name: "index_proposals_on_hidden_at", using: :btree
|
||||||
add_index "proposals", ["hot_score"], name: "index_proposals_on_hot_score", using: :btree
|
add_index "proposals", ["hot_score"], name: "index_proposals_on_hot_score", using: :btree
|
||||||
add_index "proposals", ["question"], name: "index_proposals_on_question", using: :btree
|
add_index "proposals", ["question"], name: "index_proposals_on_question", using: :btree
|
||||||
|
|||||||
Reference in New Issue
Block a user