Commit 08ef59a8 authored by 神楽坂玲奈's avatar 神楽坂玲奈

友情链接调用细节修正

git-svn-id: http://glupx.googlecode.com/svn/trunk/Reliz@76 189f022a-1064-8ae2-3e6f-c4a67275c50b
parent 4571fbfa
......@@ -7,6 +7,7 @@ class BoardsController < ApplicationController
def index
@root = Board.root
@boards = @root.subboards
@links = Link.all
@actions = []
respond_to do |format|
format.html # index.html.erb
......
......@@ -17,7 +17,7 @@
<table id="ft_1_t" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="590px">
<%= render Link.all %>
<%= render @links %>
</td>
<td width="590px"></td>
......
......@@ -16,7 +16,7 @@
<ul class="s_clear"><li><div class="forumlogo"><img src="http://www.touhou.cc/logo.gif" border="0" alt="东方幻想乡"></div><div class="forumcontent"><h5><a href="http://www.touhou.cc/bbs" target="_blank">东方幻想乡</a></h5><p>这里是幻想乡,一片充满生机和幸福的乐土.</p></div></li></ul>
</div>--> <!--详细-->
<div class="forumimglink">
<%= render Link.all %>
<%= render @links %>
</div>
<!--<div class="forumtxtlink">
<ul class="s_clear">
......
......@@ -112795,3 +112795,97 @@ Rendered layouts/_top.html.erb (31.0ms)
Rendered layouts/_footer.html.erb (1.0ms)
Rendered boards/index.html.erb within layouts/application (2476.1ms)
Completed 200 OK in 2829ms (Views: 1012.1ms | ActiveRecord: 1554.1ms)
Started GET "/" for 127.0.0.1 at 2011-04-27 15:06:31 +0800
Processing by BoardsController#index as HTML
Board Load (291.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.`superboard_id` = 0) ORDER BY displayorder LIMIT 1
Link Load (4980.3ms) SELECT `links`.* FROM `links`
SQL (333.0ms) SELECT COUNT(*) FROM `posts` WHERE (created_at > '2011-04-27')
SQL (323.0ms) SELECT COUNT(*) FROM `posts` WHERE (created_at < '2011-04-27' and created_at > '2011-04-26')
SQL (403.0ms) SELECT COUNT(*) FROM `posts`
Board Load (375.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 1) ORDER BY displayorder
Board Load (344.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 9) ORDER BY displayorder
SQL (330.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 2)
SQL (343.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 2)
SQL (280.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 2))
Topic Load (301.0ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 2) ORDER BY topics.id DESC LIMIT 1
CACHE (0.0ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 2) ORDER BY topics.id DESC LIMIT 1
Post Load (413.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 2)) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 2)) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 2)) ORDER BY posts.id DESC LIMIT 1
Board Load (455.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 4) ORDER BY displayorder
SQL (445.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 8)
Board Load (291.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 8) ORDER BY displayorder
SQL (356.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 8)
SQL (221.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 8))
Topic Load (259.0ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 8) ORDER BY topics.id DESC LIMIT 1
CACHE (0.0ms) SELECT `topics`.* FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 8) ORDER BY topics.id DESC LIMIT 1
Post Load (205.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 8)) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 8)) ORDER BY posts.id DESC LIMIT 1
CACHE (0.0ms) SELECT `posts`.* FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 8)) ORDER BY posts.id DESC LIMIT 1
SQL (225.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 7)
SQL (264.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 7)
SQL (242.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 7))
SQL (321.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 6)
SQL (235.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 6)
SQL (226.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 6))
Rendered boards/_board.html.erb (6786.4ms)
Rendered links/_link.html.erb (345.0ms)
Rendered layouts/_onlineuserbar.html.erb (0.0ms)
Rendered layouts/_header.html.erb (1.0ms)
Rendered layouts/_userbar.html.erb (1.0ms)
Rendered layouts/_searchbar.html.erb (2.0ms)
Rendered layouts/_navibar.html.erb (1.0ms)
Rendered layouts/_themebar.html.erb (1.0ms)
Rendered layouts/_actionbar.html.erb (1.0ms)
Rendered layouts/_top.html.erb (20.0ms)
Rendered layouts/_footer.html.erb (1.0ms)
Rendered boards/index.html.erb within layouts/application (8858.5ms)
Completed 200 OK in 15585ms (Views: 1680.1ms | ActiveRecord: 12461.7ms)
Started GET "/theme/lotus" for 127.0.0.1 at 2011-04-27 15:07:43 +0800
Processing by UsersController#theme as HTML
Parameters: {"theme"=>"lotus"}
SQL (133.0ms) BEGIN
SQL (97.0ms) describe `users`
AREL (79.0ms) INSERT INTO `users` (`name`, `nickname`, `password`, `email`, `usergroup_id`, `admingroup_id`, `locked`, `regip`, `lastloginip`, `readnum`, `viewnum`, `onlinetime`, `credit`, `credit1`, `credit2`, `credit3`, `credit4`, `credit5`, `credit6`, `credit7`, `credit8`, `locale`, `theme`, `created_at`, `updated_at`, `id`) VALUES ('娓稿', '', '', '', 0, 0, 0, '127.0.0.1', '127.0.0.1', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, 'lotus', '2011-04-27 07:07:43', '2011-04-27 07:07:43', 0)
SQL (182.0ms) COMMIT
Redirected to http://localhost:3000/
Completed 302 Found in 786ms
Started GET "/" for 127.0.0.1 at 2011-04-27 15:07:44 +0800
Processing by BoardsController#index as HTML
Board Load (142.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.`superboard_id` = 0) ORDER BY displayorder LIMIT 1
Link Load (110.0ms) SELECT `links`.* FROM `links`
Board Load (123.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 1) ORDER BY displayorder
Board Load (147.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 9) ORDER BY displayorder
SQL (111.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 2)
SQL (216.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 2)
SQL (173.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 2))
Board Load (213.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 4) ORDER BY displayorder
SQL (194.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 8)
Board Load (189.0ms) SELECT `boards`.* FROM `boards` WHERE (`boards`.superboard_id = 8) ORDER BY displayorder
SQL (165.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 8)
SQL (118.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 8))
SQL (99.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 7)
SQL (163.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 7)
SQL (236.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 7))
SQL (79.0ms) SELECT COUNT(*) FROM `boards` WHERE (`boards`.superboard_id = 6)
SQL (198.0ms) SELECT COUNT(*) FROM `topics` WHERE (`topics`.`deleted` = 0) AND (`topics`.category_id = 6)
SQL (55.0ms) SELECT COUNT(*) FROM `posts` INNER JOIN `topics` ON `posts`.topic_id = `topics`.id WHERE ((`topics`.category_id = 6))
Rendered app/themes/lotus/boards/_board.html.erb (3042.2ms)
Rendered links/_link.html.erb (98.0ms)
Rendered layouts/_onlineuserbar.html.erb (1.0ms)
Rendered app/themes/lotus/layouts/_header.html.erb (25.0ms)
Rendered layouts/_userbar.html.erb (1.0ms)
Rendered layouts/_navibar.html.erb (0.0ms)
Rendered layouts/_searchbar.html.erb (1.0ms)
Rendered layouts/_actionbar.html.erb (0.0ms)
Rendered layouts/_themebar.html.erb (1.0ms)
Rendered app/themes/lotus/layouts/_top.html.erb (34.0ms)
Rendered app/themes/lotus/layouts/_footer.html.erb (0.0ms)
Rendered app/themes/lotus/boards/index.html.erb within layouts/application (3349.2ms)
Completed 200 OK in 4047ms (Views: 888.0ms | ActiveRecord: 3222.2ms)
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