/* editor.less */
+.editor {
+ &:extend(.bordered-box);
+ margin-bottom: 12px;
+
+ h1 {
+ &:extend(.rectangle-header);
+ &:extend(.large-text);
+ }
+
+ h2 {
+ &:extend(.rectangle-header);
+ clear: left;
+ }
+
+ h3 {
+ &:extend(.rectangle-header);
+ clear: left;
+ }
+
+ .content-editor-wrap {
+ margin-right: @component-horizontal-margin + 2px;
+ }
+}
+
textarea.editor { &:extend(.tallest); }
.tag-editor {
# journal page
# also see user page settings for /~username/journal/
- $r->get('/journal/new')->to('journal#create', seclev => 1, no_ad => 1);
+ $r->get('/journal/new')->to('journal#create', seclev => 1, no_ad => 1, use_captcha => 1);
$r->get('/journal/:id/')->to('journal#single');
# submission page
};
$c->render(page => $page,
- use_captcha => 1,
+ the_user => $c->stash('user'),
);
}
<div class="article-wrapper">
<div class="content-wrapper">
- <div class="post submission main-contents" id="journal-editor">
+ <div class="post submission main-contents editor" id="journal-editor">
<h2>日記の編集</h2>
<div id="post-preview">
[%- INCLUDE common/article/article hide_more_link=1 -%]
<div class="article-wrapper">
<div class="content-wrapper">
<div class="main-column">
- <div class="post submission main-contents" id="submission-editor">
+ <div class="post submission main-contents editor" id="submission-editor">
<h2>タレコミの編集</h2>
<div id="post-preview">
<article-editor csrf-token="[% helpers.csrf_token('submission') %]" content-type="submission"></article-editor>