Implements dashboard controllers & views for admin & moderation

This commit is contained in:
kikito
2015-08-07 17:20:28 +02:00
parent c04d397e66
commit 8d83607331
7 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
class Admin::DashboardController < ApplicationController
def index
end
end

View File

@@ -0,0 +1,6 @@
class Moderation::DashboardController < ApplicationController
def index
end
end

View File

@@ -0,0 +1 @@
<h1><%= t("admin.dashboard.index.title") %></h1>

View File

@@ -0,0 +1 @@
<h1><%= t("moderation.dashboard.index.title") %></h1>

View File

@@ -11,6 +11,14 @@ en:
open_city_slogan: So the citizens can decide what kind of city they want. open_city_slogan: So the citizens can decide what kind of city they want.
create_debate: Create a debate create_debate: Create a debate
my_account_link: My account my_account_link: My account
admin:
dashboard:
index:
title: Administration
moderation:
dashboard:
index:
title: Moderation
debates: debates:
index: index:
create_debate: Create a debate create_debate: Create a debate

View File

@@ -11,6 +11,14 @@ es:
open_city_slogan: Para que todos los madrileños decidamos que ciudad queremos tener. open_city_slogan: Para que todos los madrileños decidamos que ciudad queremos tener.
create_debate: Crea un debate create_debate: Crea un debate
my_account_link: Mi cuenta my_account_link: Mi cuenta
admin:
dashboard:
index:
title: Administración
moderation:
dashboard:
index:
title: Moderación
debates: debates:
index: index:
create_debate: Crea un debate create_debate: Crea un debate

View File

@@ -17,11 +17,18 @@ Rails.application.routes.draw do
post :vote post :vote
end end
end end
end end
resource :account, controller: "account", only: [:show, :update] resource :account, controller: "account", only: [:show, :update]
namespace :admin do
root to: "dashboard#index"
end
namespace :moderation do
root to: "dashboard#index"
end
# Example of regular route: # Example of regular route:
# get 'products/:id' => 'catalog#view' # get 'products/:id' => 'catalog#view'