Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Ygopro Arena Web
Commits
7adfa58d
Commit
7adfa58d
authored
Mar 30, 2011
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
aab5b543
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2891 additions
and
11 deletions
+2891
-11
app/controllers/posts_controller.rb
app/controllers/posts_controller.rb
+1
-0
app/views/layouts/_footer.html.erb
app/views/layouts/_footer.html.erb
+2
-4
app/views/posts/edit.html.erb
app/views/posts/edit.html.erb
+41
-6
config/locales/zh-CN.yml
config/locales/zh-CN.yml
+4
-1
log/development.log
log/development.log
+2843
-0
No files found.
app/controllers/posts_controller.rb
View file @
7adfa58d
...
@@ -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
...
...
app/views/layouts/_footer.html.erb
View file @
7adfa58d
...
@@ -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>
...
...
app/views/posts/edit.html.erb
View file @
7adfa58d
<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
%>
config/locales/zh-CN.yml
View file @
7adfa58d
...
@@ -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"
...
...
log/development.log
View file @
7adfa58d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment