-
-
-
diff --git a/app/assets/javascripts/discourse/views/list/list_wide_categories_view.js b/app/assets/javascripts/discourse/views/list/list_categories_view.js
similarity index 93%
rename from app/assets/javascripts/discourse/views/list/list_wide_categories_view.js
rename to app/assets/javascripts/discourse/views/list/list_categories_view.js
index 6f7579baba7..5dc7999f946 100644
--- a/app/assets/javascripts/discourse/views/list/list_wide_categories_view.js
+++ b/app/assets/javascripts/discourse/views/list/list_categories_view.js
@@ -1,4 +1,4 @@
-Discourse.ListWideCategoriesView = Discourse.View.extend({
+Discourse.ListCategoriesView = Discourse.View.extend({
orderingChanged: function(){
if (this.get("controller.ordering")) {
diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb
index 8b9d0c1e421..14d0b36f5f6 100644
--- a/app/controllers/categories_controller.rb
+++ b/app/controllers/categories_controller.rb
@@ -9,9 +9,6 @@ class CategoriesController < ApplicationController
def index
@description = SiteSetting.site_description
- # TODO: remove this when we're sure about removing 2-column layout on categories page
- # wide_mode = SiteSetting.enable_wide_category_list
-
options = {}
options[:latest_posts] = params[:latest_posts] || SiteSetting.category_featured_topics
diff --git a/config/locales/server.da.yml b/config/locales/server.da.yml
index bc62183955b..57761a7def3 100644
--- a/config/locales/server.da.yml
+++ b/config/locales/server.da.yml
@@ -723,7 +723,6 @@ da:
min_body_similar_length: "Den mindste længde af en brødtekst før der ledes efter lignende emner."
category_colors: "En pipe-separeret (|) liste af tilladte hexadecimale farveværdier for kategorier."
- enable_wide_category_list: "Aktivér traditionel, fuldbredde kategoriliste uden tiling. BEMÆRK: Denne indstilling har ingen virkning og bliver fjernet. Den brede liste er den eneste mulighed nu."
max_image_size_kb: "Den maksimale billedstørrelse som vi lader brugerne uploade, i kB - husk at tilpasse den tilsvarende værdi i nginx (client_max_body_size) / apache eller proxy."
max_attachment_size_kb: "Den maksimale filstørrelse som vi lader brugerne uploade, i kB - husk at tilpasse den tilsvarende værdi i nginx (client_max_body_size) / apache eller proxy."
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 3c0ab1f557c..696fd815a33 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -720,7 +720,6 @@ en:
min_body_similar_length: "The minimum length of a post's body before it will be checked for similar topics"
category_colors: "A pipe (|) separated list of hexadecimal color values allowed for categories"
- enable_wide_category_list: "Enable traditional full width, non-tiling, category list. NOTE: this setting currently does nothing and will be removed. Wide list is the only option now."
max_image_size_kb: "The maximum size of images we allow users to upload in kB - configure the limit in nginx (client_max_body_size) / apache or proxy as well."
max_attachment_size_kb: "The maximum size of files we allow users to upload in kB - configure the limit in nginx (client_max_body_size) / apache or proxy as well."
diff --git a/config/locales/server.fr.yml b/config/locales/server.fr.yml
index dd2ee993f72..ba13b42f52f 100644
--- a/config/locales/server.fr.yml
+++ b/config/locales/server.fr.yml
@@ -615,7 +615,6 @@ fr:
min_title_similar_length: "La taille minimale d'un titre avant que l'on vérifie l'existence de discussions identiques"
min_body_similar_length: "La taille minimale d'un message avant que l'on vérifie l'existence de discussions identiques"
category_colors: "Une liste de couleurs autorisées pour les catégories (au format hexadécimal, séparés par un |)"
- enable_wide_category_list: "Activer pleine largeur, sans cadrillage, liste des catégories"
max_image_size_kb: "La taille maximale des images que nous permettons aux utilisateurs d'envoyer (en Ko) - configure la limite dans nginx (client_max_body_size) / apache ou proxy aussi."
max_attachment_size_kb: "La taille maximale des fichiers que nous permettons aux utilisateurs d'envoyer (en Ko) - configure la limite dans nginx (client_max_body_size) / apache ou proxy aussi."
authorized_extensions: "Une liste d'extensions de fichier autorisées pour les envois de fichiers (séparés par un |)"
diff --git a/config/locales/server.ko.yml b/config/locales/server.ko.yml
index 4afc16dd2f4..21e4c0994c0 100644
--- a/config/locales/server.ko.yml
+++ b/config/locales/server.ko.yml
@@ -670,7 +670,6 @@ ko:
min_body_similar_length: "The minimum length of a post's body before it will be checked for similar topics"
category_colors: "A pipe (|) separated list of hexadecimal color values allowed for categories"
- enable_wide_category_list: "Enable traditional full width, non-tiling, category list"
max_image_size_kb: "사용자가 업로드 할 수 있는 이미지 최대 kB 사이즈 - nginx(client_max_body_size), apache, proxy 역시 설정해야함"
max_attachment_size_kb: "사용자가 업로드 할 수 있는 파일 최대 kB 사이즈 - nginx(client_max_body_size), apache, proxy 역시 설정해야함"
diff --git a/config/locales/server.nl.yml b/config/locales/server.nl.yml
index f81a788da0e..2e180f2aa67 100644
--- a/config/locales/server.nl.yml
+++ b/config/locales/server.nl.yml
@@ -683,7 +683,6 @@ nl:
min_body_similar_length: De minimale lengte die de inhoud van een bericht moet hebben voordat er wordt gezocht naar vergelijkbare topics
category_colors: "Een lijst, gescheiden door een pipe (|), van hexadecimal kleurwaardes die gebruikt kunnen worden voor categorien"
- enable_wide_category_list: "Activeer traditionele volle breedte, non-tiling, categorielijst"
max_image_size_kb: "De maximale afbeeldingsgrootte die we toestaan voor uploads, in kB. Zorg er voor dat deze limiet ook ingesteld is in nginx (client_max_body_size) / apache of een proxy."
max_attachment_size_kb: "De maximale bestandsgrootte die we toestaan voor uploads, in kB. Zorg er voor dat deze limiet ook ingesteld is in nginx (client_max_body_size) / apache of een proxy."
diff --git a/config/locales/server.pseudo.yml b/config/locales/server.pseudo.yml
index 69effb4ba2d..3f18132cbb9 100644
--- a/config/locales/server.pseudo.yml
+++ b/config/locales/server.pseudo.yml
@@ -874,9 +874,6 @@ pseudo:
ƀé čĥéčǩéď ƒóř šíɱíłář ťóƿíčš ]]'
category_colors: '[[ Á ƿíƿé (|) šéƿářáťéď łíšť óƒ ĥéхáďéčíɱáł čółóř νáłůéš áłłóŵéď
ƒóř čáťéǧóříéš ]]'
- enable_wide_category_list: '[[ Éɳáƀłé ťřáďíťíóɳáł ƒůłł ŵíďťĥ, ɳóɳ-ťíłíɳǧ, čáťéǧóřý
- łíšť. ЍÓŤÉ: ťĥíš šéťťíɳǧ čůřřéɳťłý ďóéš ɳóťĥíɳǧ áɳď ŵíłł ƀé řéɱóνéď. Ŵíďé łíšť
- íš ťĥé óɳłý óƿťíóɳ ɳóŵ. ]]'
max_image_size_kb: '[[ Ťĥé ɱáхíɱůɱ šížé óƒ íɱáǧéš ŵé áłłóŵ ůšéřš ťó ůƿłóáď íɳ
ǩƁ - čóɳƒíǧůřé ťĥé łíɱíť íɳ ɳǧíɳх (čłíéɳť_ɱáх_ƀóďý_šížé) / áƿáčĥé óř ƿřóхý áš
ŵéłł. ]]'
diff --git a/config/locales/server.pt_BR.yml b/config/locales/server.pt_BR.yml
index 576164d32eb..78a41f2879f 100644
--- a/config/locales/server.pt_BR.yml
+++ b/config/locales/server.pt_BR.yml
@@ -662,7 +662,6 @@ pt_BR:
min_body_similar_length: "Tamanho mínimo do corpo de uma postagem antes de ele ser checado por tópicos similares"
category_colors: "Lista separada por barra (|) das cores em hexadecimal permitidas para as categorias"
- enable_wide_category_list: "Habilitar lista de categorias tradicional com largura total"
max_image_size_kb: "Tamanho máximo de imagens que os usuários podem enviar em kB - certifique-se de configurar o limite no nginx (client_max_body_size) / apache, e também no proxy."
max_attachment_size_kb: "Tamanho máximo de arquivos que os usuários podem enviar em kB - certifique-se de configurar o limite no nginx (client_max_body_size) / apache, e também no proxy."
diff --git a/config/locales/server.ru.yml b/config/locales/server.ru.yml
index 8e6787cc2d4..ce174d9dd77 100644
--- a/config/locales/server.ru.yml
+++ b/config/locales/server.ru.yml
@@ -641,7 +641,6 @@ ru:
min_title_similar_length: 'Минимальная длина названия темы, при которой тема будет проверена на наличие похожих'
min_body_similar_length: 'Минимальная длина тела сообщения, при которой оно будет проверено на наличие похожих тем'
category_colors: 'Разделенный чертой (|) список дозволенных hexadecimal цветов для категорий'
- enable_wide_category_list: 'Использовать обычный полноразмерный список категорий. ВНИМАНИЕ: на текущий момент данная настройка ничего не делает и в скором времени будет удалена. Полноразмерный список является единственно возможным.'
max_image_size_kb: 'Максимальный размер изображений для загрузки пользователем в КБ – убедитесь, что вы так же настроили лимит в nginx (client_max_body_size) / apache или прокси.'
max_attachment_size_kb: 'Максимальный размер файлов для загрузки пользователем в кб – убедитесь, что вы настроили лимит также в nginx (client_max_body_size) / apache или proxy.'
authorized_extensions: 'Список расширений файлов, разрешенных к загрузке, разделенный вертикальной чертой (|)'
diff --git a/config/site_settings.yml b/config/site_settings.yml
index 02b8547fc0f..c030f5e3a27 100644
--- a/config/site_settings.yml
+++ b/config/site_settings.yml
@@ -30,9 +30,6 @@ basic:
ga_domain_name:
client: true
default: ''
- enable_wide_category_list:
- client: true
- default: true
category_featured_topics:
client: true
default: 3
diff --git a/db/migrate/20140107220141_remove_enable_wide_category_list.rb b/db/migrate/20140107220141_remove_enable_wide_category_list.rb
new file mode 100644
index 00000000000..80850969f5c
--- /dev/null
+++ b/db/migrate/20140107220141_remove_enable_wide_category_list.rb
@@ -0,0 +1,9 @@
+class RemoveEnableWideCategoryList < ActiveRecord::Migration
+ def up
+ execute "DELETE FROM site_settings WHERE name = 'enable_wide_category_list'"
+ end
+
+ def down
+ # Nothing. Default site setting value will be used.
+ end
+end