Commit 7adfa58d authored by 神楽坂玲奈's avatar 神楽坂玲奈

parent aab5b543
...@@ -38,6 +38,7 @@ class PostsController < ApplicationController ...@@ -38,6 +38,7 @@ class PostsController < ApplicationController
# GET /posts/1/edit # GET /posts/1/edit
def edit def edit
@post = Post.find(params[:id]) @post = Post.find(params[:id])
@actions = [@post, :edit]
end end
# POST /posts # POST /posts
......
...@@ -6,13 +6,11 @@ ...@@ -6,13 +6,11 @@
<div id="footlink"> <div id="footlink">
<div style="width: 500px; height: 58px; float: left;"> <div style="width: 500px; height: 58px; float: left;">
<ul class="fmenu"> <ul class="fmenu">
<li style="width: 100px;"><a href="http://www.touhou.cc/bbs" target="_blank">东方幻想乡</a></li> <li style="width: 100px;"><%= link_to '66RPG 实验室', 'http://lab.66rpg.com' %></li>
<li style="width: 130px;">( <a href="http://www.miibeian.gov.cn/" target="_blank">渝ICP备09028990号</a>)</li><li><a href="mailto:175779871@qq.com">联系我们</a></li>
<li><a href="stats.php">论坛统计</a></li><li><a href="archiver/" target="_blank">Archiver</a></li><li><a href="wap/" target="_blank">WAP</a></li><li></li>
</ul> </ul>
<div style="height: 16px; clear: both;">Copyright © 2008-2009 <a href="http://www.touhou.cc/bbs" target="_blank">东方幻想乡</a>. All Rights Reserved. Themes <a href="http://bbs.7dps.com/forum-29-1.html" target="_blank">Goodnight</a> For discuz! 7.2<br>CSS Modify By <a href="http://www.touhou.cc/bbs/?fromuid=6" target="_blank">菠萝包</a><span id="debuginfo">Processed in 0.046812 second(s), 11 queries</span>.</div> <div style="height: 16px; clear: both;">Powered by <%= link_to 'Reliz Project', 'http://lab.66rpg.com' %></div>
</div> </div>
<div class="bhoge">Powered by:</div> <div class="bhoge">Powered by:</div>
<div class="bw3c">Validated by:</div> <div class="bw3c">Validated by:</div>
......
<h1>Editing post</h1> <%= form_for(@post) do |f| %>
<% if @post.errors.any? %>
<%= render 'form' %> <div id="error_explanation">
<h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>
<%= link_to 'Show', @post %> |
<%= link_to 'Back', posts_path %> <ul>
<% @post.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<!--<div class="field">
<%= f.label :topic %><br />
<%= f.text_field :topic %>
</div>-->
<div class="field">
<%= f.label t 'post.content' %><br />
<%= f.text_area :content %>
</div>
<div class="field">
<%= f.label t 'post.private' %><br />
<%= f.check_box :private %>
</div>
<div class="field">
<%= f.label t 'post.anonymous' %><br />
<%= f.check_box :anonymous %>
</div>
<!--<div class="field">
<%= f.label :ubb %><br />
<%= f.check_box :ubb %>
</div>
<div class="field">
<%= f.label :html %><br />
<%= f.check_box :html %>
</div>-->
<div class="actions">
<%= f.submit t 'post.submit' %>
</div>
<% end %>
...@@ -58,7 +58,10 @@ zh-CN: ...@@ -58,7 +58,10 @@ zh-CN:
highlight: "高亮" highlight: "高亮"
post: post:
edit: "编辑" edit: "编辑"
content: "正文"
submit: "提交"
private: "仅楼主可见"
anonymous: "匿名发帖"
date: date:
formats: formats:
default: "%Y-%m-%d" default: "%Y-%m-%d"
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment