Wiki Post

This commit is contained in:
Wojciech Zawistowski
2014-05-13 08:53:11 -04:00
parent 27c702464e
commit 960d64930c
26 changed files with 371 additions and 19 deletions

View File

@@ -966,6 +966,9 @@ en:
other: "Do you also want to delete the {{count}} direct replies to this post?"
yes_value: "Yes, delete the replies too"
no_value: "No, just this post"
admin: "post admin actions"
wiki: "Wiki post"
unwiki: "Unwiki post"
actions:
flag: 'Flag'

View File

@@ -780,6 +780,8 @@ en:
min_trust_to_create_topic: "The minimum trust level required to create a new topic."
min_trust_to_edit_wiki_post: "The minimum trust level required to edit post marked as wiki."
newuser_max_links: "How many links a new user can add to a post"
newuser_max_images: "How many images a new user can add to a post"
newuser_max_attachments: "How many attachments a new user can add to a post"

View File

@@ -225,6 +225,7 @@ Discourse::Application.routes.draw do
resources :posts do
put "bookmark"
put "wiki"
get "replies"
get "revisions/:revision" => "posts#revisions"
put "recover"

View File

@@ -58,7 +58,7 @@ basic:
post_menu:
client: true
list: true
default: 'like|edit|flag|delete|share|bookmark|reply'
default: 'like|edit|flag|delete|share|bookmark|admin|reply'
share_links:
client: true
list: true
@@ -333,6 +333,9 @@ trust:
min_trust_to_create_topic:
default: 0
enum: 'MinTrustToCreateTopicSetting'
min_trust_to_edit_wiki_post:
default: 0
enum: 'MinTrustToCreateTopicSetting'
basic_requires_topics_entered: 5
basic_requires_read_posts: 50
basic_requires_time_spent_mins: 15