mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Revert "FIX: Incorrect parameter being passed to component."
This reverts commit d354a6f7a40e9746c957badb0d9ef5cf9a1287d5.
This commit is contained in:
@ -34,7 +34,7 @@
|
|||||||
→ {{bound-avatar-template model.user_changes.current.avatar_template "small"}} {{model.user_changes.current.username}}
|
→ {{bound-avatar-template model.user_changes.current.avatar_template "small"}} {{model.user_changes.current.username}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if model.wiki_changes}}
|
{{#if model.wiki_changes}}
|
||||||
— {{disabled-icon icon="pencil-square-o" disabled=wikiDisabled}}
|
— {{disabled-icon icon="pencil-square-o" secondary=wikiDisabled}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if model.post_type_changes}}
|
{{#if model.post_type_changes}}
|
||||||
— {{disabled-icon icon="shield" disabled=postTypeDisabled}}
|
— {{disabled-icon icon="shield" disabled=postTypeDisabled}}
|
||||||
@ -59,7 +59,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if model.wiki_changes}}
|
{{#if model.wiki_changes}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{disabled-icon icon="pencil-square-o" disabled=wikiDisabled}}
|
{{disabled-icon icon="pencil-square-o" secondary=wikiDisabled}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if model.post_type_changes}}
|
{{#if model.post_type_changes}}
|
||||||
|
@ -31,7 +31,12 @@ export default createWidget('post-edits-indicator', {
|
|||||||
if (attrs.wiki) {
|
if (attrs.wiki) {
|
||||||
icon = 'pencil-square-o';
|
icon = 'pencil-square-o';
|
||||||
className = `${className} wiki`;
|
className = `${className} wiki`;
|
||||||
title = `${I18n.t('post.last_edited_on')} ${date}`;
|
|
||||||
|
if (attrs.version > 1) {
|
||||||
|
title = `${I18n.t('post.last_edited_on')} ${date}`;
|
||||||
|
} else {
|
||||||
|
title = I18n.t('post.wiki.about');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
title = `${I18n.t('post.last_edited_on')} ${date}`;
|
title = `${I18n.t('post.last_edited_on')} ${date}`;
|
||||||
}
|
}
|
||||||
|
@ -394,7 +394,7 @@ class PostsController < ApplicationController
|
|||||||
post = find_post_from_params
|
post = find_post_from_params
|
||||||
guardian.ensure_can_wiki!(post)
|
guardian.ensure_can_wiki!(post)
|
||||||
|
|
||||||
post.revise(current_user, { wiki: params[:wiki] })
|
post.revise(current_user, { wiki: params[:wiki] }, { skip_revision: true })
|
||||||
|
|
||||||
render nothing: true
|
render nothing: true
|
||||||
end
|
end
|
||||||
|
@ -1753,6 +1753,9 @@ en:
|
|||||||
via_auto_generated_email: "this post arrived via an auto generated email"
|
via_auto_generated_email: "this post arrived via an auto generated email"
|
||||||
whisper: "this post is a private whisper for moderators"
|
whisper: "this post is a private whisper for moderators"
|
||||||
|
|
||||||
|
wiki:
|
||||||
|
about: "this post is a wiki"
|
||||||
|
|
||||||
archetypes:
|
archetypes:
|
||||||
save: 'Save Options'
|
save: 'Save Options'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user