FEATURE: manage Permalinks

This commit is contained in:
Arpit Jalan
2015-07-15 18:24:28 +05:30
parent 7f43653cad
commit dc90c396f2
16 changed files with 296 additions and 1 deletions

View File

@@ -2443,6 +2443,19 @@ en:
image: "Image"
delete_confirm: "Are you sure you want to delete the :%{name}: emoji?"
permalink:
title: "Permalinks"
url: "URL"
topic_id: "Topic ID"
post_id: "Post ID"
category_id: "Category ID"
external_url: "External URL"
delete_confirm: Are you sure you want to delete this permalink?
form:
label: "New:"
add: "Add"
filter: "Search (URL or External URL)"
lightbox:
download: "download"

View File

@@ -133,6 +133,7 @@ Discourse::Application.routes.draw do
get "customize" => "color_schemes#index", constraints: AdminConstraint.new
get "customize/css_html" => "site_customizations#index", constraints: AdminConstraint.new
get "customize/colors" => "color_schemes#index", constraints: AdminConstraint.new
get "customize/permalinks" => "permalinks#index", constraints: AdminConstraint.new
get "flags" => "flags#index"
get "flags/:filter" => "flags#index"
post "flags/agree/:id" => "flags#agree"
@@ -148,6 +149,8 @@ Discourse::Application.routes.draw do
resources :color_schemes, constraints: AdminConstraint.new
resources :permalinks, constraints: AdminConstraint.new
get "version_check" => "versions#show"
resources :dashboard, only: [:index] do