show.html.erb 717 Bytes
<div style="border-bottom: 3px solid #ccc;">
	<h3 class="title">
		<%= @post.title %>
		<small>
			<%= link_to '文章列表', posts_path(schan: params[:schan], scate: params[:scate], screa: params[:screa], page: params[:page]) %>
			/
			<%= link_to '编辑文章', edit_post_path(@post, schan: params[:schan], scate: params[:scate], screa: params[:screa], page: params[:page]) %>
			/
			<%= link_to '发布文章', new_post_path(schan: params[:schan], scate: params[:scate], screa: params[:screa], page: params[:page]) %>
			/
			首页 - <%= Post::CATE[@post.chan][:name] %> - <%= Post::CATE[@post.chan][:cate][@post.cate] %>
		</small>
	</h3>
</div>
<div class="postdetail">
	<%= @post.detail.html_safe %>
</div>