-[%- WRAPPER common/layout enable_sidebar=1 short_header=1 -%]
+[%- WRAPPER common/layout -%]
[%- INCLUDE common/components/comment_tree -%]
[%- IF (item.content_type == 'journal' && item.uid == user.uid) || user.is_admin -%]
[% INCLUDE common/components/article_item %]
[% END -%]
-<div class="main-column">
- <div class="[% page.type %] [% page.content_type %] main-contents">
-
- [%- IF page.content_type == "comment" && page.type == "single" -%]
- <div class="content-notice alert alert-info">
- <p>このコンテンツは、
- [%- IF discussion.kind == "story" -%]
- 「<span><a href="/story/[% discussion.sid %]">[% parent_item.title %]</a></span>」記事
- [%- ELSIF discussion.kind == "journal-story" -%]
- 「<span><a href="/story/[% discussion.sid %]">[% parent_item.title %]</a></span>」記事
- [%- ELSIF discussion.kind == "journal" -%]
- 日記「<span><a href="/journal/[% parent_item.id %]">[% parent_item.title %]</a></span>」
- [%- ELSIF discussion.kind == "poll" -%]
- 国民投票「<span><a href="/poll/[% parent_item.id %]">[% parent_item.title %]</a></span>」
- [%- ELSIF discussion.kind == "submission" -%]
- タレコミ「<span><a href="/journal/[% parent_item.id %]">[% parent_item.title %]</a></span>」
- [%- ELSE -%]
- 「<span>[% discussion.title %]</span>」記事
- [%- END -%]に対するコメントです。
- </p>
-
- [%- IF parent -%]
- <p>親コメントは「<span><a href="/comment/[% parent.cid %]">[% parent.title %]</a></span>」です。</p>
+<div class="article-wrapper">
+ <div class="content-wrapper">
+ <div class="[% page.type %] [% page.content_type %] main-contents">
+ [%- IF page.content_type == "comment" && page.type == "single" -%]
+ <div class="content-notice alert alert-info">
+ <p>このコンテンツは、
+ [%- IF discussion.kind == "story" -%]
+ 「<span><a href="/story/[% discussion.sid %]">[% parent_item.title %]</a></span>」記事
+ [%- ELSIF discussion.kind == "journal-story" -%]
+ 「<span><a href="/story/[% discussion.sid %]">[% parent_item.title %]</a></span>」記事
+ [%- ELSIF discussion.kind == "journal" -%]
+ 日記「<span><a href="/journal/[% parent_item.id %]">[% parent_item.title %]</a></span>」
+ [%- ELSIF discussion.kind == "poll" -%]
+ 国民投票「<span><a href="/poll/[% parent_item.id %]">[% parent_item.title %]</a></span>」
+ [%- ELSIF discussion.kind == "submission" -%]
+ タレコミ「<span><a href="/journal/[% parent_item.id %]">[% parent_item.title %]</a></span>」
+ [%- ELSE -%]
+ 「<span>[% discussion.title %]</span>」記事
+ [%- END -%]に対するコメントです。
+ </p>
+
+ [%- IF parent -%]
+ <p>親コメントは「<span><a href="/comment/[% parent.cid %]">[% parent.title %]</a></span>」です。</p>
+ [%- END -%]
+ </div>
[%- END -%]
- </div>
- [%- END -%]
-
- <div id="content-body">
- [%- INCLUDE common/article/article hide_more_link=1 -%]
- <article-item></article-item>
- </div>
-
- [%- IF page.type == "single" && page.content_type == "story" -%]
- <div class="next-prev-story">
- [%- IF params.prev_stoid && params.prev_stoid.story -%]
- <div class="prev"><a href="/story/[% params.prev_stoid.story.sid %]">
- [% params.prev_stoid.story.title %]
- </a></div>
+
+ <div id="content-body">
+ [%- INCLUDE common/article/article hide_more_link=1 -%]
+ <article-item></article-item>
+ </div>
+
+ [%- IF page.type == "single" && page.content_type == "story" -%]
+ <div class="next-prev-story">
+ [%- IF params.prev_stoid && params.prev_stoid.story -%]
+ <div class="prev"><a href="/story/[% params.prev_stoid.story.sid %]">
+ [% params.prev_stoid.story.title %]
+ </a></div>
+ [%- END -%]
+ [%- IF params.next_stoid && params.next_stoid.story -%]
+ <div class="next"><a href="/story/[% params.next_stoid.story.sid %]">
+ [% params.next_stoid.story.title %]
+ </a></div>
+ [%- END -%]
+ </div>
+ <div class="related">
+ [%- INCLUDE ads/native_contents -%]
+ </div>
[%- END -%]
- [%- IF params.next_stoid && params.next_stoid.story -%]
- <div class="next"><a href="/story/[% params.next_stoid.story.sid %]">
- [% params.next_stoid.story.title %]
- </a></div>
+
+ [%- IF !discussion -%]
+ <div class="alert alert-info">
+ この投稿に対するコメントは設定により無効にされています。
+ </div>
+ [%- ELSIF discussion.commentstatus == "disabled" -%]
+ <div class="alert alert-info">
+ この投稿に対するコメントは設定により無効にされています。
+ </div>
+ [%- ELSIF discussion.commentstatus == "logged_in" -%]
+ <div class="alert alert-info">
+ この投稿に対するコメントはログインユーザーにのみ許可されています。
+ </div>
+ [%- ELSIF discussion.commentstatus != "enabled" -%]
+ <div class="alert alert-info clear">
+ この投稿に対するコメントは一部のユーザーのみに許可されています。
+ </div>
[%- END -%]
- </div>
- <div class="related">
- [%- INCLUDE ads/native_contents -%]
- </div>
- [%- END -%]
-
- [%- IF !discussion -%]
- <div class="alert alert-info">
- この投稿に対するコメントは設定により無効にされています。
- </div>
- [%- ELSIF discussion.commentstatus == "disabled" -%]
- <div class="alert alert-info">
- この投稿に対するコメントは設定により無効にされています。
- </div>
- [%- ELSIF discussion.commentstatus == "logged_in" -%]
- <div class="alert alert-info">
- この投稿に対するコメントはログインユーザーにのみ許可されています。
- </div>
- [%- ELSIF discussion.commentstatus != "enabled" -%]
- <div class="alert alert-info clear">
- この投稿に対するコメントは一部のユーザーのみに許可されています。
- </div>
- [%- END -%]
-
- </div><!-- .story -->
-
+
+ </div><!-- .content-wrapper -->
+ </div><!-- .main-contents -->
+ [%- INCLUDE common/sidebar -%]
+</div><!-- .article-wrapper -->
[%#- INCLUDE common/comment/comments_nojs -%]
[%#- INCLUDE common/comment/comments -%]
<script>articleItem.run({el: '#content-body'});</script>
[%- END -%]
-</div><!-- .main-column -->
-
-[%- INCLUDE common/sidebar -%]
-
[% END %]