mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
wiki: Remove show_reason_field
This commit is contained in:
@@ -31,12 +31,11 @@ class WikiPageListing(Templated):
|
||||
Templated.__init__(self)
|
||||
|
||||
class WikiEditPage(Templated):
|
||||
def __init__(self, page_content='', previous='', page=None, show_reason_field=True):
|
||||
def __init__(self, page_content='', previous='', page=None):
|
||||
self.page_content = page_content
|
||||
self.page = page
|
||||
self.previous = previous
|
||||
self.base_url = c.wiki_base_url
|
||||
self.show_reason_field = show_reason_field
|
||||
Templated.__init__(self)
|
||||
|
||||
class WikiPageSettings(Templated):
|
||||
@@ -125,7 +124,7 @@ class WikiCreate(WikiBase):
|
||||
def __init__(self, page, **context):
|
||||
context['alert'] = _("page %s does not exist in this subreddit") % page
|
||||
context['actionless'] = True
|
||||
content = WikiEditPage(show_reason_field=True, page=page)
|
||||
content = WikiEditPage(page=page)
|
||||
WikiBase.__init__(self, content, page, **context)
|
||||
|
||||
class WikiEdit(WikiBase):
|
||||
|
||||
@@ -40,11 +40,9 @@
|
||||
|
||||
<form method="post" id="editform" onsubmit="r.wiki.submitEdit(event)">
|
||||
<textarea name="content" rows="20" cols="20" style="width: 100%" id="content">${keep_space(thing.page_content)}</textarea>
|
||||
%if thing.show_reason_field:
|
||||
<br/><br/>
|
||||
<label for="reason">${_("reason for revision")}</label><br/>
|
||||
<input type="text" name="reason" maxlength="256" id="wiki_revision_reason" />
|
||||
%endif
|
||||
<br/><br/>
|
||||
<label for="reason">${_("reason for revision")}</label><br/>
|
||||
<input type="text" name="reason" maxlength="256" id="wiki_revision_reason" />
|
||||
<input type="hidden" id="previous" name="previous" value="${thing.previous}" />
|
||||
<br/><br/><input type="submit" value="${_('save page')}" />
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user