Commit 0fa1803b authored by 神楽坂玲奈's avatar 神楽坂玲奈

论坛附件yrp ydk deck播放, 换行符

parent da8298ea
source 'http://rubygems.org'
gem 'rails'
gem "paperclip"
gem 'http_accept_language'
gem 'bb-ruby'
gem 'devise'
gem 'devise-i18n'
gem 'kaminari'
gem 'rails_admin'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
unless RUBY_PLATFORM["mswin"] or RUBY_PLATFORM["ming"]
gem 'therubyracer'
end
gem 'uglifier'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
source 'http://rubygems.org'
gem 'rails'
gem "paperclip"
gem 'http_accept_language'
gem 'bb-ruby'
gem 'devise'
gem 'devise-i18n'
gem 'kaminari'
gem 'rails_admin'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
if RUBY_PLATFORM["mswin"] or RUBY_PLATFORM["ming"]
gem 'therubyrhino'
else
gem 'therubyracer'
end
gem 'uglifier'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
\ No newline at end of file
......@@ -136,6 +136,7 @@ GEM
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
therubyrhino (1.73.4)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
......@@ -165,4 +166,5 @@ DEPENDENCIES
rails
rails_admin
sass-rails
therubyrhino
uglifier
#encoding: UTF-8
class UsersController < ApplicationController
require 'open-uri'
layout 'ygo'
# GET /users
# GET /users.xml
def index
@users = User.all
@actions = [{t('mycard.battlenet') => users_path}, User.human_attribute_name(:index)]
respond_to do |format|
format.html # index.html.erb
#format.xml { render :xml => @users }
end
end
# GET /users/1
# GET /users/1.xml
def show
@user = User.find_by_id(params[:id]) || User.find_by_name(params[:id])
@actions = [{t('mycard.battlenet') => users_path}, @user]
respond_to do |format|
format.html # show.html.erb
format.json { render :json => {id: @user.id, name: @user.name, nickname: @user.nickname} }
format.png {redirect_to @user.avatar.url(:middle)}
end
end
# GET /users/new
# GET /users/new.xml
def new
@actions = [User.human_attribute_name(:register)]
@user = User.new
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @user }
end
end
# GET /users/1/edit
def edit
if @current_user != User::Guest
@user = User.find(params[:id])
@actions = [@user, "修改头像"]
if @current_user != @user
respond_to do |format|
format.html {redirect_to(edit_user_path(@current_user), :notice => '请先登录.')}
end
end
else
respond_to do |format|
format.html {redirect_to(:login, :notice => '请先登录.')}
end
end
end
# POST /users
# POST /users.xml
def create
@user = User.new(params[:user])
#不知道什么原因,加了devise之后那两个字段就奇怪的变成空了
#@user.name = params[:user][:name]
#@user.password = params[:user][:password]
@actions = [User.human_attribute_name(:register)]
@continue = params[:continue]
@from = params[:from].to_s.to_sym
respond_to do |format|
if @user.save
boardcast_user(@user, :"ygopro-ocg")
session[:user_id] = @user.id
format.html { redirect_to(params[:continue] ? URI.escape(params[:continue]) : @user, :notice => '注册成功') }
format.xml { render :xml => @user, :status => :created, :location => @user }
else
format.html { render :action => "new" }
format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
end
end
end
# PUT /users/1
# PUT /users/1.xml
def update
@user = User.find(params[:id])
if @user == @current_user
if !params[:user][:theme].blank? && @site[:themes].has_key?(params[:theme])
cookies[:user][:theme] = params[:theme]
end
respond_to do |format|
if @user.update_attributes(params[:user])
format.html { redirect_to(:back, :notice => 'User was successfully updated.') }
format.xml { head :ok }
else
format.html { render :action => "edit" }
format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
end
end
else
respond_to do |format|
format.html { redirect_to(:back, :notice => '只能修改自己的头像') }
end
end
end
# DELETE /users/1
# DELETE /users/1.xml
def destroy
@user = User.find(params[:id])
@user.destroy
respond_to do |format|
format.html { redirect_to(users_url) }
format.xml { head :ok }
end
end
def login
@actions = [User.human_attribute_name(:login)]
return @user = User.new if params[:user].blank?
@actions = [User.human_attribute_name(:login)]
user = User.find_by_name(params[:user][:name])
if user and params[:user][:password] == user.password
@user = user
elsif user.nil? or user.password.nil?
username = params[:user][:name]
password = params[:user][:password]
Server.all.each do |server|
open("http://#{server.ip}:#{server.http_port}/?operation=passcheck&username=#{CGI.escape username}&pass=#{CGI.escape password}") do |file|
if file.read == "true"
user.password = password
@user = user
@user.save
break
end
end rescue nil
break if @user
end
end
respond_to do |format|
if @user
session[:user_id] = @user.id
@user.update_attribute(:lastloginip, request.remote_ip)
boardcast_user(@user)
format.html { redirect_to(params[:continue] ? URI.escape(params[:continue]) : @user, :notice => 'Login Successfully.') }
format.json { render json: @user }
else
@user = User.new(params[:user])
format.html { render :text => 'incorrent_username_or_password' }
format.json { head json: nil }
end
end
end
def logout
session[:user_id] = nil
respond_to do |format|
format.html { redirect_to(:back) }
format.xml { head :ok }
end
end
def theme
#p params[:theme], @site[:themes].has_key?(params[:theme])
if params[:theme].blank?
cookies[:theme] = nil
@current_user.update_attribute(:theme, nil)
elsif @site[:themes].has_key? params[:theme]
cookies[:theme] = params[:theme]
@current_user.update_attribute(:theme, params[:theme])
end
respond_to do |format|
format.html { redirect_to :back }
format.xml { head :ok }
end
end
def boardcast_user(user, wait=nil)
Server.find_each do |server|
url = "http://#{server.ip}:#{server.http_port}/?pass=#{server.password}&operation=forceuserpass&username=#{CGI.escape user.name}&password=#{CGI.escape user.password}"
if RUBY_PLATFORM["win"] || RUBY_PLATFORM["ming"]
open(url){} rescue nil
else
Process.spawn('curl', url)
end
end
url = "http://ygopro-ocg.com/mycard.php?key=zh99998&username=#{CGI.escape user.name}&password=#{CGI.escape user.password}&email=#{CGI.escape user.email}"
if wait == :"ygopro-ocg" or RUBY_PLATFORM["win"] || RUBY_PLATFORM["ming"]
open(url){}
else
Process.spawn('curl', url)
end
end
#encoding: UTF-8
class UsersController < ApplicationController
require 'open-uri'
layout 'ygo'
# GET /users
# GET /users.xml
def index
@users = User.all
@actions = [{t('mycard.battlenet') => users_path}, User.human_attribute_name(:index)]
respond_to do |format|
format.html # index.html.erb
#format.xml { render :xml => @users }
end
end
# GET /users/1
# GET /users/1.xml
def show
@user = User.find_by_id(params[:id]) || User.find_by_name(params[:id])
@actions = [{t('mycard.battlenet') => users_path}, @user]
respond_to do |format|
format.html # show.html.erb
format.json { render :json => {id: @user.id, name: @user.name, nickname: @user.nickname} }
format.png { redirect_to @user.avatar.url(:middle) }
end
end
# GET /users/new
# GET /users/new.xml
def new
@actions = [User.human_attribute_name(:register)]
@user = User.new
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @user }
end
end
# GET /users/1/edit
def edit
if @current_user != User::Guest
@user = User.find(params[:id])
@actions = [@user, "修改头像"]
if @current_user != @user
respond_to do |format|
format.html { redirect_to(edit_user_path(@current_user), :notice => '请先登录.') }
end
end
else
respond_to do |format|
format.html { redirect_to(:login, :notice => '请先登录.') }
end
end
end
# POST /users
# POST /users.xml
def create
@user = User.new(params[:user])
#不知道什么原因,加了devise之后那两个字段就奇怪的变成空了
#@user.name = params[:user][:name]
#@user.password = params[:user][:password]
@actions = [User.human_attribute_name(:register)]
@continue = params[:continue]
@from = params[:from].to_s.to_sym
respond_to do |format|
open("http://ygopro-ocg.com/mycard.php?key=zh99998&username=#{CGI.escape @user.name}&password=#{CGI.escape @user.password}&email=#{CGI.escape @user.email}") do |f|
result = f.read
if result.to_i <= 0
@user.errors[:base] << "发生系统错误 (#{result}) 请联系zh99998@gmail.com"
end
end rescue @user.errors[:base] << "发生系统错误 (#{$!.inspect}) 请联系zh99998@gmail.com"
if !@user.errors.any? and @user.save
boardcast_user(@user, :"ygopro-ocg")
session[:user_id] = @user.id
format.html { redirect_to(params[:continue].blank? ? @user : URI.escape(params[:continue]) , :notice => '注册成功') }
format.xml { render :xml => @user, :status => :created, :location => @user }
else
format.html { render :action => "new" }
format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
end
end
end
# PUT /users/1
# PUT /users/1.xml
def update
@user = User.find(params[:id])
if @user == @current_user
if !params[:user][:theme].blank? && @site[:themes].has_key?(params[:theme])
cookies[:user][:theme] = params[:theme]
end
respond_to do |format|
if @user.update_attributes(params[:user])
format.html { redirect_to(:back, :notice => 'User was successfully updated.') }
format.xml { head :ok }
else
format.html { render :action => "edit" }
format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
end
end
else
respond_to do |format|
format.html { redirect_to(:back, :notice => '只能修改自己的头像') }
end
end
end
# DELETE /users/1
# DELETE /users/1.xml
def destroy
@user = User.find(params[:id])
@user.destroy
respond_to do |format|
format.html { redirect_to(users_url) }
format.xml { head :ok }
end
end
def login
@actions = [User.human_attribute_name(:login)]
return @user = User.new if params[:user].blank?
@actions = [User.human_attribute_name(:login)]
user = User.find_by_name(params[:user][:name])
if user and params[:user][:password] == user.password
@user = user
elsif user.nil? or user.password.nil?
username = params[:user][:name]
password = params[:user][:password]
Server.all.each do |server|
open("http://#{server.ip}:#{server.http_port}/?operation=passcheck&username=#{CGI.escape username}&pass=#{CGI.escape password}") do |file|
if file.read == "true"
user.password = password
@user = user
@user.save
break
end
end rescue nil
break if @user
end
end
respond_to do |format|
if @user
session[:user_id] = @user.id
@user.update_attribute(:lastloginip, request.remote_ip)
boardcast_user(@user)
format.html { redirect_to(params[:continue].blank? ? @user : URI.escape(params[:continue]), :notice => 'Login Successfully.') }
format.json { render json: @user }
else
@user = User.new(params[:user])
format.html { render :text => 'incorrent_username_or_password' }
format.json { head json: nil }
end
end
end
def logout
session[:user_id] = nil
respond_to do |format|
format.html { redirect_to(:back) }
format.xml { head :ok }
end
end
def theme
#p params[:theme], @site[:themes].has_key?(params[:theme])
if params[:theme].blank?
cookies[:theme] = nil
@current_user.update_attribute(:theme, nil)
elsif @site[:themes].has_key? params[:theme]
cookies[:theme] = params[:theme]
@current_user.update_attribute(:theme, params[:theme])
end
respond_to do |format|
format.html { redirect_to :back }
format.xml { head :ok }
end
end
def boardcast_user(user, from=nil)
Server.find_each do |server|
url = "http://#{server.ip}:#{server.http_port}/?pass=#{server.password}&operation=forceuserpass&username=#{CGI.escape user.name}&password=#{CGI.escape user.password}"
if RUBY_PLATFORM["win"] || RUBY_PLATFORM["ming"]
open(url) {} rescue nil
else
Process.spawn('curl', url)
end
end
if from != :"ygopro-ocg"
url = "http://ygopro-ocg.com/mycard.php?key=zh99998&username=#{CGI.escape user.name}&password=#{CGI.escape user.password}&email=#{CGI.escape user.email}"
if RUBY_PLATFORM["win"] || RUBY_PLATFORM["ming"]
open(url) {}
else
Process.spawn('curl', url)
end
end
end
end
\ No newline at end of file
<li>
<%= link_to attachment.data.original_filename, attachment.data.url %>
<% case %>
<% when attachment.data.content_type[0, 5] == "image" %>
<div><%= image_tag attachment.data.url %></div>
<% else %>
<% case File.extname attachment.data.original_filename %>
<% when ".yrp" %>
<span><%= link_to "播放", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% when ".ydk" %>
<span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% when ".deck" %>
<span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% end %>
<% end %>
</li>
\ No newline at end of file
<h1>Listing comments</h1>
<table>
<tr>
<th>Post</th>
<th>User</th>
<th>Content</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @comments.each do |comment| %>
<tr>
<td><%= comment.post %></td>
<td><%= comment.user %></td>
<td><%= comment.content %></td>
<td><%= link_to 'Show', comment %></td>
<td><%= link_to 'Edit', edit_comment_path(comment) %></td>
<td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Comment', new_comment_path %>
<h1>Listing comments</h1>
<table>
<tr>
<th>Post</th>
<th>User</th>
<th>Content</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @comments.each do |comment| %>
<tr>
<td><%= comment.post %></td>
<td><%= comment.user %></td>
<td><%= comment.content %></td>
<td><%= link_to 'Show', comment %></td>
<td><%= link_to 'Edit', edit_comment_path(comment) %></td>
<td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Comment', new_comment_path %>
<div id="post_<%= post.id %>"><table id="post_<%= post.id %>" summary="post_<%= post.id %>" cellspacing="0" cellpadding="0">
<tbody><tr>
<td class="postauthor" rowspan="2">
<div class="postinfo" style="margin-left: 20px; font-weight: 800">
<%= post.user %>
</div>
<div>
<div class="avatar" onmouseover="showauthor(this, 'userinfo751931')"><%= image_tag post.user.avatar.url(:middle) %></div>
<p><%= post.user.role %></p>
<p><em><%= post.user.nickname %></em></p>
</div>
<p><%= image_tag 'common/star_level2.gif', :alt => 'Rank:2' %></p>
<dl class="profile s_clear">
<dt><%=t 'user.post' %></dt><dd><%= post.user.posts.count %></dd>
<dt><%=t 'user.topic' %></dt><dd><%= post.user.topics.count %></dd>
<dt><%=t 'user.digest' %></dt><dd><%= post.user.topics.where(:digest => true).count %></dd>
<dt><%=t 'user.credits' %></dt><dd><%= post.user.credits %></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>-->
<hr class="shadowline">
<p>
管理此人<br>
<a href="topicadmin.php?action=getip&amp;fid=2&amp;tid=29727&amp;pid=751931" onclick="ajaxmenu(this, 0, 1, 2);doane(event)" title="查看 IP" class="lightlink">IP</a>&nbsp;
<a href="admincp.php?action=members&amp;username=%B2%A9%C0%F6%BF%AA%CB%AE&amp;submit=yes&amp;frames=yes" target="_blank" class="lightlink">编辑</a>&nbsp;
<a href="admincp.php?action=members&amp;operation=ban&amp;username=%B2%A9%C0%F6%BF%AA%CB%AE&amp;frames=yes" target="_blank" class="lightlink">禁止</a>&nbsp;
<a href="modcp.php?action=threads&amp;op=posts&amp;do=search&amp;searchsubmit=1&amp;users=%B2%A9%C0%F6%BF%AA%CB%AE" target="_blank" class="lightlink">帖子</a>
</p>
</td>
<td class="postcontent">
<div class="postinfo">
<strong><a title="复制本帖链接" id="postnum751931" href="javascript:;" onclick="setCopy('http://www.touhou.cc/bbs/redirect.php?goto=findpost&amp;ptid=29727&amp;pid=751931&amp;fromuid=359', '帖子地址已经复制到剪贴板')"><em><%= post.displayorder %></em><sup>#</sup></a>
</strong>
<div class="posterinfo">
<div class="pagecontrol">
</div>
<div class="authorinfo">
<%= 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>
</div>
</div>
<div class="defaultpost">
<div id="ad_thread2_1"></div><div id="ad_thread3_1"></div><div id="ad_thread4_1"></div>
<div class="postmessage ">
<!--<div id="threadtitle">
<h1>蕾蒂+毒人 怎么破</h1>
</div>-->
<div class="t_msgfontfix">
<table cellspacing="0" cellpadding="0"><tbody><tr><td class="t_msgfont" id="postmessage_751931"><%= post.content.bbcode_to_html.html_safe %> </td></tr></tbody></table>
</div>
<% if !post.attachments.empty? %>
<p>
<b><%= post.attachments.size %> 个附件:</b>
<ul>
<% post.attachments.each do |attachment| %>
<li><%= link_to attachment.data.original_filename, attachment.data.url %></li>
<% if attachment.data.content_type[0,5] == "image" %>
<%= image_tag attachment.data.url %>
<% end %>
<% end %>
</ul>
</p>
<% end %>
<div id="post_rate_div_751931"></div>
</div>
</div>
</td></tr>
<tr><td class="postcontent postbottom">
<% unless post.user.signature.blank? %>
<div class="signatures" style="max-height:300px;maxHeightIE:300px;">
<%= post.user.signature %>
</div>
<% end %>
<div id="ad_thread1_1"></div></td>
</tr>
<tr>
<td class="postauthor"></td>
<td class="postcontent">
<div class="postactions">
<span class="right">
<label for="manage751931">
<input type="checkbox" id="manage751931" onclick="pidchecked(this);modclick(this, 751931)" value="751931">
管理
</label>
</span>
<div class="postact s_clear">
<em>
<%= link_to t('topic.reply'), new_post_path(:topic_id => @topic.id), :class => :fastreply %>
<%= link_to t('topic.quote'), new_post_path(:topic_id => @topic.id), :class => :fastreply %>
<%= link_to t('post.edit'), edit_post_path(post), :class => :editpost %>
</em>
<p>
<a href="misc.php?action=rate&amp;tid=29727&amp;pid=751931" onclick="showWindow('rate', this.href);return false;">评分</a>
<a href="javascript:;" onclick="scrollTo(0,0);">TOP</a>
</p>
</div>
</div>
</td>
</tr>
<tr class="threadad">
<td class="postauthor"></td>
<td class="adcontent">
</td>
</tr>
<div id="post_<%= post.id %>"><table id="post_<%= post.id %>" summary="post_<%= post.id %>" cellspacing="0" cellpadding="0">
<tbody><tr>
<td class="postauthor" rowspan="2">
<div class="postinfo" style="margin-left: 20px; font-weight: 800">
<%= post.user %>
</div>
<div>
<div class="avatar" onmouseover="showauthor(this, 'userinfo751931')"><%= image_tag post.user.avatar.url(:middle) %></div>
<p><%= post.user.role %></p>
<p><em><%= post.user.nickname %></em></p>
</div>
<p><%= image_tag 'common/star_level2.gif', :alt => 'Rank:2' %></p>
<dl class="profile s_clear">
<dt><%=t 'user.post' %></dt><dd><%= post.user.posts.count %></dd>
<dt><%=t 'user.topic' %></dt><dd><%= post.user.topics.count %></dd>
<dt><%=t 'user.digest' %></dt><dd><%= post.user.topics.where(:digest => true).count %></dd>
<dt><%=t 'user.credits' %></dt><dd><%= post.user.credits %></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>-->
<hr class="shadowline">
<p>
管理此人<br>
<a href="topicadmin.php?action=getip&amp;fid=2&amp;tid=29727&amp;pid=751931" onclick="ajaxmenu(this, 0, 1, 2);doane(event)" title="查看 IP" class="lightlink">IP</a>&nbsp;
<a href="admincp.php?action=members&amp;username=%B2%A9%C0%F6%BF%AA%CB%AE&amp;submit=yes&amp;frames=yes" target="_blank" class="lightlink">编辑</a>&nbsp;
<a href="admincp.php?action=members&amp;operation=ban&amp;username=%B2%A9%C0%F6%BF%AA%CB%AE&amp;frames=yes" target="_blank" class="lightlink">禁止</a>&nbsp;
<a href="modcp.php?action=threads&amp;op=posts&amp;do=search&amp;searchsubmit=1&amp;users=%B2%A9%C0%F6%BF%AA%CB%AE" target="_blank" class="lightlink">帖子</a>
</p>
</td>
<td class="postcontent">
<div class="postinfo">
<strong><a title="复制本帖链接" id="postnum751931" href="javascript:;" onclick="setCopy('http://www.touhou.cc/bbs/redirect.php?goto=findpost&amp;ptid=29727&amp;pid=751931&amp;fromuid=359', '帖子地址已经复制到剪贴板')"><em><%= post.displayorder %></em><sup>#</sup></a>
</strong>
<div class="posterinfo">
<div class="pagecontrol">
</div>
<div class="authorinfo">
<%= 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>
</div>
</div>
<div class="defaultpost">
<div id="ad_thread2_1"></div><div id="ad_thread3_1"></div><div id="ad_thread4_1"></div>
<div class="postmessage ">
<!--<div id="threadtitle">
<h1>蕾蒂+毒人 怎么破</h1>
</div>-->
<div class="t_msgfontfix">
<table cellspacing="0" cellpadding="0"><tbody><tr><td class="t_msgfont" id="postmessage_751931"><%= post.content.bbcode_to_html.html_safe %> </td></tr></tbody></table>
</div>
<% if !post.attachments.empty? %>
<p>
<b><%= post.attachments.size %> 个附件:</b>
<ul>
<%=render post.attachments %>
</ul>
</p>
<% end %>
<div id="post_rate_div_751931"></div>
</div>
</div>
</td></tr>
<tr><td class="postcontent postbottom">
<% unless post.user.signature.blank? %>
<div class="signatures" style="max-height:300px;maxHeightIE:300px;">
<%= post.user.signature %>
</div>
<% end %>
<div id="ad_thread1_1"></div></td>
</tr>
<tr>
<td class="postauthor"></td>
<td class="postcontent">
<div class="postactions">
<span class="right">
<label for="manage751931">
<input type="checkbox" id="manage751931" onclick="pidchecked(this);modclick(this, 751931)" value="751931">
管理
</label>
</span>
<div class="postact s_clear">
<em>
<%= link_to t('topic.reply'), new_post_path(:topic_id => @topic.id), :class => :fastreply %>
<%= link_to t('topic.quote'), new_post_path(:topic_id => @topic.id), :class => :fastreply %>
<%= link_to t('post.edit'), edit_post_path(post), :class => :editpost %>
</em>
<p>
<a href="misc.php?action=rate&amp;tid=29727&amp;pid=751931" onclick="showWindow('rate', this.href);return false;">评分</a>
<a href="javascript:;" onclick="scrollTo(0,0);">TOP</a>
</p>
</div>
</div>
</td>
</tr>
<tr class="threadad">
<td class="postauthor"></td>
<td class="adcontent">
</td>
</tr>
</tbody></table></div>
\ No newline at end of file
......@@ -373,7 +373,4 @@ zh-CN:
content: "正文"
submit: "提交"
private: "仅楼主可见"
anonymous: "匿名发帖"
tournament:
location:
qun: "QQ群"
\ No newline at end of file
anonymous: "匿名发帖"
\ 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