Commit bfe9371c authored by 神楽坂玲奈's avatar 神楽坂玲奈

使用内置helper代替绝对路径,大量消除404,夜露部分基本完成,lotus刚开

git-svn-id: http://glupx.googlecode.com/svn/trunk/Reliz@69 189f022a-1064-8ae2-3e6f-c4a67275c50b
parent 78c44f01
......@@ -25,7 +25,7 @@ class ApplicationController < ActionController::Base
request_language =
request_language && request_language['HTTP_ACCEPT_LANGUAGE'][/[^,;]+/]
)
I18n.locale = locale if File.exist?("#{RAILS_ROOT}/config/locales/#{request_language}.yml")
I18n.locale = locale if File.exist?("#{::Rails.root}/config/locales/#{request_language}.yml")
User::Guest.name = t 'user.guest'
#IE && FF are BANNED
end
......
......@@ -7,7 +7,8 @@
</p>
</div><div class="mainbox list">
<span class="headactions">
<img id="category_3_img" src="images/default/collapsed_no.gif" title="sq/zk" alt="sq/zk" onclick="toggle_collapse('category_3');" />
<%= image_tag 'common/collapsed_no.gif', :id => 'category_3_img', :title => 'sq/zk '%>
</span>
<%# @boards.each do |area| %>
<%# next if area.subboards.empty? %>
......@@ -41,14 +42,15 @@
<%# end %>
<div id="ad_intercat_16"></div>
<div class="mainbox list">
<span class="headactions"><img id="boardlinks_img" src="images/default/collapsed_no.gif" alt="" onclick="toggle_collapse('boardlinks');" /></span>
<span class="headactions">
<%= image_tag 'common/collapsed_no.gif' %>
<h3>link</h3>
<div id="boardlinks" style="">
</div>
</div>
<div class="mainbox list" id="online">
<span class="headactions"><a href="index.php?showoldetails=yes#online" class="nobdr"><img src="images/default/collapsed_yes.gif" alt="" /></a></span>
<span class="headactions"><a href="index.php?showoldetails=yes#online" class="nobdr"><%= image_tag 'common/collapsed_yes.gif' %></a></span>
<h3>
<%= render 'layouts/onlineuserbar' %>
......
......@@ -120,7 +120,8 @@
<% end %>
<dl id="onlinelist">
<dt>
<span class="headactions"><a href="boarddisplay.php?fid=68&amp;page=1&amp;showoldetails=yes#online" class="nobdr"><img src="images/default/collapsed_yes.gif" alt="" /></a></span>
<span class="headactions"><a href="boarddisplay.php?fid=68&amp;page=1&amp;showoldetails=yes#online" class="nobdr">
<%= image_tag 'common/collapsed_yes.gif' %>
<h3>正在浏览此版块的会员</h3>
</dt>
</dl>
......
<meta name="keywords" content="东方幻想乡,动漫,东方,东方project,同人,音乐,游戏,漫画,汉化,THDOTS,THBOSS,东方轮舞" />
<!--<meta name="keywords" content="东方幻想乡,动漫,东方,东方project,同人,音乐,游戏,漫画,汉化,THDOTS,THBOSS,东方轮舞" />
<meta name="description" content=" 东方幻想乡 这减速到死怎么打……求破 - Discuz! Board" />
<meta name="generator" content="Discuz! 7.2" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
......@@ -6,8 +6,13 @@
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="东方幻想乡" href="http://www.touhou.cc/bbs/archiver/" />
<link rel="archives" title="东方幻想乡" href="http://www.touhou.cc/bbs/archiver/" />-->
<%= stylesheet_link_tag 'common' %>
<%= javascript_include_tag 'common' %>
<%= stylesheet_link_tag 'moderator' %>
<%= stylesheet_link_tag 'viewthread' %>
<!--
<link rel="stylesheet" type="text/css" href="forumdata/cache/style_57_common.css?qfY" />
<link href="forumdata/cache/style_57_moderator.css?1Yf" rel="stylesheet" type="text/css" />
<script type="text/javascript">var STYLEID = '57', IMGDIR = 'images/default', VERHASH = 'qfY', charset = 'gbk', discuz_uid = 359, cookiedomain = '', cookiepath = '/', attackevasive = '0', disallowfloat = 'login|register', creditnotice = '1|点数|,2|威望|,3|经验|,4|推广|,5|贡献|,6|人气|,7|人品|', gid = parseInt('1'), fid = parseInt('2'), tid = parseInt('29727')</script>
<script src="forumdata/cache/common.js?qfY" type="text/javascript"></script>
\ No newline at end of file
<script src="forumdata/cache/common.js?qfY" type="text/javascript"></script>-->
\ No newline at end of file
<label>
<input name="textfield" type="text" value="请输入搜索内容" />
</label>
<input type="submit" name="Submit" value="搜索" />
<input type="submit" name="Submit2" value="高级搜索" />
\ No newline at end of file
<%= form_tag :controller => :topics do %>
<%= text_field_tag "keyword" %>
<%= submit_tag t("search.search") %>
<% end %>
<%= link_to t("search.advanced") %>
\ No newline at end of file
......@@ -10,18 +10,12 @@
<div id="memberp">
<%= render 'layouts/userbar' %>
</div>
<form method="post" id="searchform" action="search.php">
<div style="width:190px;float:left;">
<input type="hidden" name="formhash" value="eed723b8" />
<input type="text" id="srchtxt" name="srchtxt" onfocus="this.value=''" value="thc search">
<button class="searchsub" type="submit" name="searchsubmit" value="true" tabindex="100">search</button>
</div>
</form>
<%= render 'layouts/searchbar' %>
</div>
</div>
<div id="headerbg">
<div class="header">
<embed src="templates/goodnight/images/mnsv.swf" quality="high" wmode="transparent" style=" float:left; " pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="898" height="116"></embed>
<embed src="<%= image_path('common/banner.swf') %>" quality="high" wmode="transparent" style=" float:left; " pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="898" height="116"></embed>
<div id="ad_headerbanner"></div>
</div>
......@@ -40,7 +34,7 @@
<div id="myprompt_menu" style="display:none" class="promptmenu">
<div class="promptcontent">
<ul class="s_clear"><li style="display:none"><a id="prompt_pm" href="pm.php?filter=newpm" target="_blank">private (0)</a></li><li style="display:none"><a id="prompt_announcepm" href="pm.php?filter=announcepm" target="_blank">public (0)</a></li><li style="display:none"><a id="prompt_systempm" href="notice.php?filter=systempm" target="_blank">system (0)</a></li><li style="display:none"><a id="prompt_friend" href="notice.php?filter=friend" target="_blank">friend (0)</a></li><li style="display:none"><a id="prompt_threads" href="notice.php?filter=threads" target="_blank">post (0)</a></li></ul>
<ul class="s_clear"><li style="display:none"><!--<a id="prompt_pm" href="pm.php?filter=newpm" target="_blank">private (0)</a> TODO--></li><li style="display:none"><a id="prompt_announcepm" href="pm.php?filter=announcepm" target="_blank">public (0)</a></li><li style="display:none"><a id="prompt_systempm" href="notice.php?filter=systempm" target="_blank">system (0)</a></li><li style="display:none"><a id="prompt_friend" href="notice.php?filter=friend" target="_blank">friend (0)</a></li><li style="display:none"><a id="prompt_threads" href="notice.php?filter=threads" target="_blank">post (0)</a></li></ul>
</div>
</div>
......
......@@ -2,41 +2,6 @@
<% content ||= nil %>
<!-- 文本框name的值,看不明白的话不用更改,指定文本框name的时候直接调用name即可 -->
<div class="editor_lite">
<!--<span class="right">
<a href="post.php?action=reply&amp;fid=2&amp;tid=29727" onclick="return switchAdvanceMode(this.href)">高级模式</a>
<span class="pipe">|</span>
<span id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu({'ctrlid':this.id})"><a href="post.php?action=newthread&amp;fid=2" onclick="showWindow('newthread', this.href);return false;">发新话题</a></span>
</span>-->
<style>
.editor_lite{margin:5px 0 0;width:600px;height:26px;border:1px solid;border-color:#999 #CCC #CCC #999;background:#F7F7F7;border-bottom:none;}
.editor_lite .right a{color:#09C;}
.editor_lite .right{padding-right:10px;line-height:26px;}
.editor_lite div a{float:left;margin:5px 3px 0;width:16px;height:16px;background:url(http://www.touhou.cc/bbs/images/common/editor.gif) no-repeat;text-indent:-9999px;line-height:16px;overflow:hidden;}
.editor_lite div a.tb_bold{background-position:-3px -1px;}
.editor_lite div a.tb_color{background-position:-3px -81px;}
.editor_lite div a.tb_img{background-position:-3px -823px;}
.editor_lite div a.tb_link{background-position:-3px -121px;}
.editor_lite div a.tb_quote{background-position:-3px -441px;}
.editor_lite div a.tb_code{background-position:-3px -461px;}
.editor_lite div a.tb_smilies{background-position:-2px -803px;}
.editor_lite div a.tb_imme{background-position:-3px -763px;}
.editor_lite .popupmenu_popup td{padding:0 !important;height:14px;width:14px;}
.editor_lite .popupmenu_popup td div{height:10px;width:10px;cursor:pointer;}.float_post
.editor_lite{width:566px;}.float_post .txtarea{width:562px;height:257px;}
</style>
<!-- 原th.cc的编辑器css,修改时应该弄掉 -->
<div>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('fastpost', '[b]', '[/b]')">B</a>
<a href="javascript:;" title="颜色" class="tb_color" id="fastpostforecolor" onclick="showColorBox(this.id, 2, 'fastpost')">Color</a>
<a href="javascript:;" title="图片" class="tb_img" onclick="seditor_insertunit('fastpost', '[img]', '[/img]')">Image</a>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('fastpost', '[url]', '[/url]')">Link</a>
<a href="javascript:;" title="引用" class="tb_quote" onclick="seditor_insertunit('fastpost', '[quote]', '[/quote]')">Quote</a>
<a href="javascript:;" title="代码" class="tb_code" onclick="seditor_insertunit('fastpost', '[code]', '[/code]')">Code</a>
<a href="javascript:;" class="tb_smilies" id="fastpostsmilies" onclick="showMenu({'ctrlid':this.id,'evt':'click','layer':2});return false">Smilies</a>
<%= javascript_include_tag "http://www.touhou.cc/bbs/forumdata/cache/smilies_var.js", :reload => 1 %>
<!-- 原th.cc的编辑器表情js,修改时应该弄掉 -->
<script type="text/javascript" reload="1">smilies_show('fastpostsmiliesdiv', 8, 'fastpost');</script>
</div>
<%= text_area_tag name, content, :id => :fastpostmessage, :rows => 5, :cols => 80, :tabindex => 4, :class => :txtarea %>
<%= text_area_tag name, content, :id => :fastpostmessage, :rows => 5, :cols => 80, :tabindex => 4, :class => :txtarea %>
<!--id和class直接对应于HTML码,从DZ的主题上遗留下来的,应该修改-->
</div>
\ No newline at end of file
......@@ -62,7 +62,7 @@
<em><%= post.user.nickname %></em>
</div>
<p><img src="images/default/star_level2.gif" alt="Rank: 2"></p>
<p><%= image_tag 'common/star_level2.gif', :alt => 'Rank:2' %></p>
<dl class="profile s_clear">
<dt><%=t 'user.id' %></dt><dd><%= post.user.id %></dd>
<dt><%=t 'user.post' %></dt><dd><%= post.user.posts.count %></dd>
......@@ -70,7 +70,7 @@
<dt><%=t 'user.digest' %></dt><dd><%= post.user.topics.where(:digest => true).count %></dd>
<dt><%=t 'user.credit' %></dt><dd><%= post.user.credit %></dd>
</dl>
<p><a href="magic.php?action=mybox&amp;operation=use&amp;type=1&amp;pid=751931&amp;magicid=7" onclick="showWindow('magics', this.href);doane(event);"><img src="images/magics/rtk_s.gif" title="对博丽开水使用狗仔卡"></a></p>
<!--<p><a href="magic.php?action=mybox&amp;operation=use&amp;type=1&amp;pid=751931&amp;magicid=7" onclick="showWindow('magics', this.href);doane(event);"><img src="images/magics/rtk_s.gif" title="对博丽开水使用狗仔卡"></a></p>-->
<hr class="shadowline">
<p>
管理此人<br>
......@@ -88,7 +88,8 @@
<div class="pagecontrol">
</div>
<div class="authorinfo">
<img class="authicon" id="authicon751931" src="images/common/online_member.gif" onclick="showauthor(this, 'userinfo751931');">
<%= link_to image_tag('common/online_member.gif', :class => :authicon, :id => 'authicon751931'), post.user %>
<em id="authorposton751931"><%=l post.created_at, :format => :short %> </em>
| <a href="viewthread.php?tid=29727&amp;page=1&amp;authorid=14806" rel="nofollow">只看该作者</a>
</div>
......@@ -180,7 +181,7 @@
</script>
<div id="f_post" class="mainbox viewthread">
<% form_tag :controller => :posts do %>
<%= form_tag :controller => :posts do %>
<table cellspacing="0" cellpadding="0">
<tbody><tr>
<td class="postauthor">
......@@ -190,10 +191,8 @@
<input type="hidden" name="subject" value="">
<input type="hidden" name="usesig" value="0">-->
<span id="fastpostreturn"></span>
<%= render 'topics/editor_lite' %>
<span id="fastpostreturn">
<%= render 'topics/editor_lite' %></span>
<p><%= submit_tag t("topic.reply"), :id => :replysubmit, :tabindex => 5 %>
<input id="fastpostrefresh" type="checkbox"> <label for="fastpostrefresh">回帖后跳转到最后一页</label></p><script type="text/javascript">if(getcookie('discuz_fastpostrefresh') == 1) {$('fastpostrefresh').checked=true;}</script>
<p></p>
......
......@@ -36,6 +36,9 @@ zh-CN:
submit: "提交"
topic: "主题"
post: "回复"
search:
search: "搜索"
advanced: "高级搜索"
stat:
onlineuser: "在线人数"
total: "总计"
......
......@@ -23,7 +23,7 @@ Reliz::Application.routes.draw do
resources :posts
match 'topics/:topic_id/new' => 'posts#new', :topic_id => /\d+/ #����ظ�
match 'topics/:topic_id/new' => 'posts#new', :topic_id => /\d+/ #
resources :topics
#match 'topic/:id/(/:page)' => 'topics#show', :id => /\d+/, :page => /\d+/
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
ҹģ...Ժɾ
\ No newline at end of file
This diff is collapsed.
#modlayer{position:absolute;right:0;padding:12px;width:275px;background-color:#FFF;border:4px solid #7FCAE2;}#modlayer a{color:#09C;}#modlayer label{float:right;margin-top:5px;}#modcount{padding:0 2px;font-size:24px;font-weight:400;color:#F60;}#modlayer .collapse{position:absolute;right:0;top:5px;padding:0 5px;}#modlayer.collapsed{margin-right:-23px;padding:0;width:27px;height:35px;border:none;background:#F60;overflow:hidden;}#modlayer.collapsed #modcount{display:block;position:absolute;left:0;top:0;z-index:999;width:27px;height:35px;border-color:#09C;background-color:#09C;color:#FFF;font-size:12px;text-align:center;line-height:35px;cursor:pointer;}.listtopicadmin{margin:10px 0;border-top:1px solid #C5DAEB;}.listtopicadmin li{*overflow:hidden;*margin-bottom:-2px;height:28px;line-height:18px;border-top:1px solid #FFF;border-bottom:1px solid #C5DAEB;zoom:1;}.listtopicadmin .currentopt{height:auto;}.detailopt{visibility:hidden;overflow:hidden;white-space:nowrap;}.currentopt .detailopt{visibility:visible;}.detailopt p .txt{width:100px;}.detailopt span .txt{width:18px;border-right:none;}.detailopt a{float:left;text-indent:-999px;margin-right:3px;width:22px;height:20px;text-align:center;}.detailopt_bold,.detailopt_italic,.detailopt_underline{border:1px solid #F1F5FA;outline:none;}.detailopt .current{border:1px solid #999;background-color:#FFF;}.listtopicadmin table{width:100%;}.listtopicadmin td{vertical-align:top;}.listtopicadmin .labeltxt{display:block;cursor:pointer;width:100%;background:url(../../images/default/arrow_down.gif) no-repeat 100% 8px;}.currentopt .labeltxt{float:left;cursor:default;width:45px;background:none;color:#09C;}.listtopicadmin .checkbox{margin-top:3px;*margin-top:-2px;}.listtopicadmin img{vertical-align:middle;}.tah_fixiesel{overflow:hidden;white-space:nowrap;width:217px;*border-right:1px solid #CCC;}.tah_fixiesel select{width:160px;*width:expression(this.offsetWidth > 180 ? 'auto':'180');}
\ No newline at end of file
#modlayer{position:absolute;right:0;padding:12px;width:275px;background-color:#FFF;border:4px solid #7FCAE2;}#modlayer a{color:#09C;}#modlayer label{float:right;margin-top:5px;}#modcount{padding:0 2px;font-size:24px;font-weight:400;color:#F60;}#modlayer .collapse{position:absolute;right:0;top:5px;padding:0 5px;}#modlayer.collapsed{margin-right:-23px;padding:0;width:27px;height:35px;border:none;background:#F60;overflow:hidden;}#modlayer.collapsed #modcount{display:block;position:absolute;left:0;top:0;z-index:999;width:27px;height:35px;border-color:#09C;background-color:#09C;color:#FFF;font-size:12px;text-align:center;line-height:35px;cursor:pointer;}.listtopicadmin{margin:10px 0;border-top:1px solid #C5DAEB;}.listtopicadmin li{*overflow:hidden;*margin-bottom:-2px;height:28px;line-height:18px;border-top:1px solid #FFF;border-bottom:1px solid #C5DAEB;zoom:1;}.listtopicadmin .currentopt{height:auto;}.detailopt{visibility:hidden;overflow:hidden;white-space:nowrap;}.currentopt .detailopt{visibility:visible;}.detailopt p .txt{width:100px;}.detailopt span .txt{width:18px;border-right:none;}.detailopt a{float:left;text-indent:-999px;margin-right:3px;width:22px;height:20px;text-align:center;}.detailopt_bold,.detailopt_italic,.detailopt_underline{border:1px solid #F1F5FA;outline:none;}.detailopt .current{border:1px solid #999;background-color:#FFF;}.listtopicadmin table{width:100%;}.listtopicadmin td{vertical-align:top;}.listtopicadmin .labeltxt{display:block;cursor:pointer;width:100%;background:url(/images/common/arrow_down.gif) no-repeat 100% 8px;}.currentopt .labeltxt{float:left;cursor:default;width:45px;background:none;color:#09C;}.listtopicadmin .checkbox{margin-top:3px;*margin-top:-2px;}.listtopicadmin img{vertical-align:middle;}.tah_fixiesel{overflow:hidden;white-space:nowrap;width:217px;*border-right:1px solid #CCC;}.tah_fixiesel select{width:160px;*width:expression(this.offsetWidth > 180 ? 'auto':'180');}
\ No newline at end of file
This diff is collapsed.
=19:37 2011/4/23
lotus相关文件列表
images/common/ajax-loader.gif
images/common/banner.jpg
images/common/banner2.jpg
images/topic/new.png
images/topic/post.png
stylesheets/jquery-ui-1.8.11.custom.css
stylesheets/style.css
javascripts/jquery-1.5.1.min.js
javascripts/jquery-ui-1.8.11.custom.min.js
images/common
ui-bg_diagonals-thick_18_b81900_40x40.png
ui-bg_diagonals-thick_20_666666_40x40.png
ui-bg_flat_10_000000_40x100.png
ui-bg_glass_100_f6f6f6_1x400.png
ui-bg_glass_100_fdf5ce_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_gloss-wave_35_f6a828_500x100.png
ui-bg_highlight-soft_100_eeeeee_1x100.png
ui-bg_highlight-soft_75_ffe45c_1x100.png
ui-icons_222222_256x240.png
ui-icons_228ef1_256x240.png
ui-icons_ef8c08_256x240.png
ui-icons_ffd27a_256x240.png
ui-icons_ffffff_256x240.png
---------------------------------
js css 目录为touhou.cc美工提供的皮肤相关
另外css/ui-lightness里那个css的调用有问题,部分地方调用1.7.1的,而另一些地方调用1.8.11的
于是我复制了一份改名什么的
......
7160
\ No newline at end of file
3668
\ No newline at end of file
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