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

换行....

parent 0fa1803b
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
# See http://help.github.com/ignore-files/ for more about ignoring files. # See http://help.github.com/ignore-files/ for more about ignoring files.
# #
# If you find yourself ignoring temporary files generated by your text editor # If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead: # or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global # git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config # Ignore bundler config
/.bundle /.bundle
# Ignore the default SQLite database. # Ignore the default SQLite database.
/db/*.sqlite3 /db/*.sqlite3
/nbproject/ /nbproject/
/.idea /.idea
# Ignore all logfiles and tempfiles. # Ignore all logfiles and tempfiles.
/log/*.log /log/*.log
/tmp /tmp
/config/database.yml /config/database.yml
/public/assets /public/assets
source 'http://rubygems.org' source 'http://rubygems.org'
gem 'rails' gem 'rails'
gem "paperclip" gem "paperclip"
gem 'http_accept_language' gem 'http_accept_language'
gem 'bb-ruby' gem 'bb-ruby'
gem 'devise' gem 'devise'
gem 'devise-i18n' gem 'devise-i18n'
gem 'kaminari' gem 'kaminari'
gem 'rails_admin' gem 'rails_admin'
# Bundle edge Rails instead: # Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git' # gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2' gem 'mysql2'
# Gems used only for assets and not required # Gems used only for assets and not required
# in production environments by default. # in production environments by default.
group :assets do group :assets do
gem 'sass-rails' gem 'sass-rails'
gem 'coffee-rails' gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes # See https://github.com/sstephenson/execjs#readme for more supported runtimes
if RUBY_PLATFORM["mswin"] or RUBY_PLATFORM["ming"] if RUBY_PLATFORM["mswin"] or RUBY_PLATFORM["ming"]
gem 'therubyrhino' gem 'therubyrhino'
else else
gem 'therubyracer' gem 'therubyracer'
end end
gem 'uglifier' gem 'uglifier'
end end
gem 'jquery-rails' gem 'jquery-rails'
# To use ActiveModel has_secure_password # To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0' # gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON # To use Jbuilder templates for JSON
# gem 'jbuilder' # gem 'jbuilder'
# Use unicorn as the app server # Use unicorn as the app server
# gem 'unicorn' # gem 'unicorn'
# Deploy with Capistrano # Deploy with Capistrano
# gem 'capistrano' # gem 'capistrano'
# To use debugger # To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug' # gem 'ruby-debug19', :require => 'ruby-debug'
\ No newline at end of file
GEM GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
actionmailer (3.2.3) actionmailer (3.2.3)
actionpack (= 3.2.3) actionpack (= 3.2.3)
mail (~> 2.4.4) mail (~> 2.4.4)
actionpack (3.2.3) actionpack (3.2.3)
activemodel (= 3.2.3) activemodel (= 3.2.3)
activesupport (= 3.2.3) activesupport (= 3.2.3)
builder (~> 3.0.0) builder (~> 3.0.0)
erubis (~> 2.7.0) erubis (~> 2.7.0)
journey (~> 1.0.1) journey (~> 1.0.1)
rack (~> 1.4.0) rack (~> 1.4.0)
rack-cache (~> 1.2) rack-cache (~> 1.2)
rack-test (~> 0.6.1) rack-test (~> 0.6.1)
sprockets (~> 2.1.2) sprockets (~> 2.1.2)
activemodel (3.2.3) activemodel (3.2.3)
activesupport (= 3.2.3) activesupport (= 3.2.3)
builder (~> 3.0.0) builder (~> 3.0.0)
activerecord (3.2.3) activerecord (3.2.3)
activemodel (= 3.2.3) activemodel (= 3.2.3)
activesupport (= 3.2.3) activesupport (= 3.2.3)
arel (~> 3.0.2) arel (~> 3.0.2)
tzinfo (~> 0.3.29) tzinfo (~> 0.3.29)
activeresource (3.2.3) activeresource (3.2.3)
activemodel (= 3.2.3) activemodel (= 3.2.3)
activesupport (= 3.2.3) activesupport (= 3.2.3)
activesupport (3.2.3) activesupport (3.2.3)
i18n (~> 0.6) i18n (~> 0.6)
multi_json (~> 1.0) multi_json (~> 1.0)
arel (3.0.2) arel (3.0.2)
bb-ruby (0.9.5) bb-ruby (0.9.5)
bbenezech-nested_form (0.0.6) bbenezech-nested_form (0.0.6)
bcrypt-ruby (3.0.1) bcrypt-ruby (3.0.1)
bcrypt-ruby (3.0.1-x86-mingw32) bcrypt-ruby (3.0.1-x86-mingw32)
bootstrap-sass (2.0.3.1) bootstrap-sass (2.0.3.1)
builder (3.0.0) builder (3.0.0)
cocaine (0.2.1) cocaine (0.2.1)
coffee-rails (3.2.2) coffee-rails (3.2.2)
coffee-script (>= 2.2.0) coffee-script (>= 2.2.0)
railties (~> 3.2.0) railties (~> 3.2.0)
coffee-script (2.2.0) coffee-script (2.2.0)
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.3.3) coffee-script-source (1.3.3)
devise (2.1.0) devise (2.1.0)
bcrypt-ruby (~> 3.0) bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.7) orm_adapter (~> 0.0.7)
railties (~> 3.1) railties (~> 3.1)
warden (~> 1.1.1) warden (~> 1.1.1)
devise-i18n (0.4.4) devise-i18n (0.4.4)
erubis (2.7.0) erubis (2.7.0)
execjs (1.4.0) execjs (1.4.0)
multi_json (~> 1.0) multi_json (~> 1.0)
haml (3.1.6) haml (3.1.6)
hike (1.2.1) hike (1.2.1)
hpricot (0.8.6) hpricot (0.8.6)
http_accept_language (1.0.2) http_accept_language (1.0.2)
i18n (0.6.0) i18n (0.6.0)
journey (1.0.3) journey (1.0.3)
jquery-rails (2.0.2) jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0) railties (>= 3.2.0, < 5.0)
thor (~> 0.14) thor (~> 0.14)
jquery-ui-rails (0.2.2) jquery-ui-rails (0.2.2)
jquery-rails jquery-rails
railties (>= 3.1.0) railties (>= 3.1.0)
json (1.7.3) json (1.7.3)
kaminari (0.13.0) kaminari (0.13.0)
actionpack (>= 3.0.0) actionpack (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
railties (>= 3.0.0) railties (>= 3.0.0)
mail (2.4.4) mail (2.4.4)
i18n (>= 0.4.0) i18n (>= 0.4.0)
mime-types (~> 1.16) mime-types (~> 1.16)
treetop (~> 1.4.8) treetop (~> 1.4.8)
mime-types (1.18) mime-types (1.18)
multi_json (1.3.5) multi_json (1.3.5)
mysql2 (0.3.11) mysql2 (0.3.11)
mysql2 (0.3.11-x86-mingw32) mysql2 (0.3.11-x86-mingw32)
orm_adapter (0.0.7) orm_adapter (0.0.7)
paperclip (3.0.4) paperclip (3.0.4)
activemodel (>= 3.0.0) activemodel (>= 3.0.0)
activerecord (>= 3.0.0) activerecord (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
cocaine (>= 0.0.2) cocaine (>= 0.0.2)
mime-types mime-types
polyglot (0.3.3) polyglot (0.3.3)
rack (1.4.1) rack (1.4.1)
rack-cache (1.2) rack-cache (1.2)
rack (>= 0.4) rack (>= 0.4)
rack-pjax (0.5.9) rack-pjax (0.5.9)
hpricot (~> 0.8.6) hpricot (~> 0.8.6)
rack (~> 1.3) rack (~> 1.3)
rack-ssl (1.3.2) rack-ssl (1.3.2)
rack rack
rack-test (0.6.1) rack-test (0.6.1)
rack (>= 1.0) rack (>= 1.0)
rails (3.2.3) rails (3.2.3)
actionmailer (= 3.2.3) actionmailer (= 3.2.3)
actionpack (= 3.2.3) actionpack (= 3.2.3)
activerecord (= 3.2.3) activerecord (= 3.2.3)
activeresource (= 3.2.3) activeresource (= 3.2.3)
activesupport (= 3.2.3) activesupport (= 3.2.3)
bundler (~> 1.0) bundler (~> 1.0)
railties (= 3.2.3) railties (= 3.2.3)
rails_admin (0.0.3) rails_admin (0.0.3)
bbenezech-nested_form (~> 0.0.6) bbenezech-nested_form (~> 0.0.6)
bootstrap-sass (~> 2.0) bootstrap-sass (~> 2.0)
builder (~> 3.0) builder (~> 3.0)
coffee-rails (~> 3.1) coffee-rails (~> 3.1)
haml (~> 3.1) haml (~> 3.1)
jquery-rails (>= 1.0.17) jquery-rails (>= 1.0.17)
jquery-ui-rails (~> 0.2.2) jquery-ui-rails (~> 0.2.2)
kaminari (~> 0.12) kaminari (~> 0.12)
rack-pjax (~> 0.5) rack-pjax (~> 0.5)
rails (~> 3.1) rails (~> 3.1)
remotipart (~> 1.0) remotipart (~> 1.0)
sass-rails (~> 3.1) sass-rails (~> 3.1)
railties (3.2.3) railties (3.2.3)
actionpack (= 3.2.3) actionpack (= 3.2.3)
activesupport (= 3.2.3) activesupport (= 3.2.3)
rack-ssl (~> 1.3.2) rack-ssl (~> 1.3.2)
rake (>= 0.8.7) rake (>= 0.8.7)
rdoc (~> 3.4) rdoc (~> 3.4)
thor (~> 0.14.6) thor (~> 0.14.6)
rake (0.9.2.2) rake (0.9.2.2)
rdoc (3.12) rdoc (3.12)
json (~> 1.4) json (~> 1.4)
remotipart (1.0.2) remotipart (1.0.2)
sass (3.1.18) sass (3.1.18)
sass-rails (3.2.5) sass-rails (3.2.5)
railties (~> 3.2.0) railties (~> 3.2.0)
sass (>= 3.1.10) sass (>= 3.1.10)
tilt (~> 1.3) tilt (~> 1.3)
sprockets (2.1.3) sprockets (2.1.3)
hike (~> 1.2) hike (~> 1.2)
rack (~> 1.0) rack (~> 1.0)
tilt (~> 1.1, != 1.3.0) tilt (~> 1.1, != 1.3.0)
therubyrhino (1.73.4) therubyrhino (1.73.4)
thor (0.14.6) thor (0.14.6)
tilt (1.3.3) tilt (1.3.3)
treetop (1.4.10) treetop (1.4.10)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
tzinfo (0.3.33) tzinfo (0.3.33)
uglifier (1.2.4) uglifier (1.2.4)
execjs (>= 0.3.0) execjs (>= 0.3.0)
multi_json (>= 1.0.2) multi_json (>= 1.0.2)
warden (1.1.1) warden (1.1.1)
rack (>= 1.0) rack (>= 1.0)
PLATFORMS PLATFORMS
ruby ruby
x86-mingw32 x86-mingw32
DEPENDENCIES DEPENDENCIES
bb-ruby bb-ruby
coffee-rails coffee-rails
devise devise
devise-i18n devise-i18n
http_accept_language http_accept_language
jquery-rails jquery-rails
kaminari kaminari
mysql2 mysql2
paperclip paperclip
rails rails
rails_admin rails_admin
sass-rails sass-rails
therubyrhino therubyrhino
uglifier uglifier
<public:component> <public:component>
<public:attach event="onpropertychange" onevent="iePNGFix(0)" /> <public:attach event="onpropertychange" onevent="iePNGFix(0)" />
<script type="text/javascript"> <script type="text/javascript">
// IE5.5+ PNG Alpha Fix v1.0 // IE5.5+ PNG Alpha Fix v1.0
// (c) 2004-2008 Angus Turnbull http://www.twinhelix.com // (c) 2004-2008 Angus Turnbull http://www.twinhelix.com
// This is licensed under the GNU LGPL, version 2.1 or later. // This is licensed under the GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/ // For details, see: http://creativecommons.org/licenses/LGPL/2.1/
// This must be a path to a blank image, relative to the HTML document(s). // This must be a path to a blank image, relative to the HTML document(s).
// In production use I suggest '/images/blank.gif' or similar. That's all! // In production use I suggest '/images/blank.gif' or similar. That's all!
if (typeof blankImg == 'undefined') var blankImg = 'captcha/imgs/blank.gif'; if (typeof blankImg == 'undefined') var blankImg = 'captcha/imgs/blank.gif';
function filt(s, b) function filt(s, b)
{ {
var f = 'DXImageTransform.Microsoft.AlphaImageLoader'; var f = 'DXImageTransform.Microsoft.AlphaImageLoader';
var sM = (currentStyle.backgroundRepeat == 'no-repeat') ? 'crop' : 'scale'; var sM = (currentStyle.backgroundRepeat == 'no-repeat') ? 'crop' : 'scale';
s = (s || '').replace(/\(/g, '%28').replace(/\)/g, '%29'); s = (s || '').replace(/\(/g, '%28').replace(/\)/g, '%29');
if (s && !(/IMG|INPUT/.test(nodeName) && !b) && if (s && !(/IMG|INPUT/.test(nodeName) && !b) &&
currentStyle.width == 'auto' && currentStyle.height == 'auto') currentStyle.width == 'auto' && currentStyle.height == 'auto')
{ {
style.width = offsetWidth + 'px'; style.width = offsetWidth + 'px';
style.height = clientHeight + 'px'; style.height = clientHeight + 'px';
if (currentStyle.display == 'inline') style.display = 'inline-block'; if (currentStyle.display == 'inline') style.display = 'inline-block';
} }
if (filters[f]) if (filters[f])
{ {
filters[f].enabled = s ? true : false; filters[f].enabled = s ? true : false;
if (s) with (filters[f]) { src = s } if (s) with (filters[f]) { src = s }
} }
else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="' + sM + '")'; else if (s) style.filter = 'progid:'+f+'(src="'+s+'",sizingMethod="' + sM + '")';
} }
function iePNGFix(init) function iePNGFix(init)
{ {
if (!/MSIE (5\.5|6)/.test(navigator.userAgent) || typeof filters == 'unknown') return; if (!/MSIE (5\.5|6)/.test(navigator.userAgent) || typeof filters == 'unknown') return;
var evt = init ? { propertyName: 'src,background' } : event; var evt = init ? { propertyName: 'src,background' } : event;
var isSrc = /src/.test(evt.propertyName); var isSrc = /src/.test(evt.propertyName);
var isBg = /background/.test(evt.propertyName); var isBg = /background/.test(evt.propertyName);
var isClass = !init && var isClass = !init &&
((this.className != this._png_class) && (this.className || this._png_class)); ((this.className != this._png_class) && (this.className || this._png_class));
if (!(isSrc || isBg || isClass)) return; if (!(isSrc || isBg || isClass)) return;
this._png_class = this.className; this._png_class = this.className;
var blank = blankImg.match(/([^\/]+)$/)[1]; var blank = blankImg.match(/([^\/]+)$/)[1];
// Required for Whatever:hover support - erase any set BG if className changes. // Required for Whatever:hover support - erase any set BG if className changes.
if (isClass && ((style.backgroundImage.indexOf('url(') == -1) || if (isClass && ((style.backgroundImage.indexOf('url(') == -1) ||
(style.backgroundImage.indexOf(blank) > -1))) (style.backgroundImage.indexOf(blank) > -1)))
{ {
setTimeout(function() { this.style.backgroundImage = '' }, 0); setTimeout(function() { this.style.backgroundImage = '' }, 0);
return; return;
} }
if (isSrc && this.src && /IMG|INPUT/.test(nodeName)) if (isSrc && this.src && /IMG|INPUT/.test(nodeName))
{ {
if ((/\.png/i).test(src)) if ((/\.png/i).test(src))
{ {
filt(src, 1); filt(src, 1);
src = blankImg; src = blankImg;
} }
else if (src.indexOf(blank) == -1) filt(); else if (src.indexOf(blank) == -1) filt();
} }
var bgSrc = currentStyle.backgroundImage || style.backgroundImage; var bgSrc = currentStyle.backgroundImage || style.backgroundImage;
if ((bgSrc + this.src).indexOf(blank) == -1) if ((bgSrc + this.src).indexOf(blank) == -1)
{ {
var bgPNG = bgSrc.match(/^url[("']+(.*\.png[^\)"']*)[\)"']+[^\)]*$/i); var bgPNG = bgSrc.match(/^url[("']+(.*\.png[^\)"']*)[\)"']+[^\)]*$/i);
if (bgPNG) if (bgPNG)
{ {
style.backgroundImage = 'url("' + blankImg + '")'; style.backgroundImage = 'url("' + blankImg + '")';
filt(bgPNG[1], 0); filt(bgPNG[1], 0);
// Unclickable elements inside PNG backgrounds. // Unclickable elements inside PNG backgrounds.
var tags = ['a', 'input', 'select', 'textarea', 'iframe', 'object'], var tags = ['a', 'input', 'select', 'textarea', 'iframe', 'object'],
t = tags.length, tFix = []; t = tags.length, tFix = [];
while (t--) while (t--)
{ {
var elms = all.tags(tags[t]), e = elms.length; var elms = all.tags(tags[t]), e = elms.length;
while (e--) tFix.push(elms[e]); while (e--) tFix.push(elms[e]);
} }
var t = tFix.length; var t = tFix.length;
if (t && (/relative|absolute/i).test(currentStyle.position)) if (t && (/relative|absolute/i).test(currentStyle.position))
alert('IEPNGFix: Children of positioned element are unclickable:\n\n<' + alert('IEPNGFix: Children of positioned element are unclickable:\n\n<' +
nodeName + (id && ' id=' + id) + '>'); nodeName + (id && ' id=' + id) + '>');
while (t--) while (t--)
if (!(/relative|absolute/i).test(tFix[t].currentStyle.position)) if (!(/relative|absolute/i).test(tFix[t].currentStyle.position))
tFix[t].style.position = 'relative'; tFix[t].style.position = 'relative';
} }
else filt(); else filt();
} }
} }
iePNGFix(1); iePNGFix(1);
</script> </script>
</public:component> </public:component>
/*img { behavior: image-url("captcha/iepngfix.htc"); }*/ /*img { behavior: image-url("captcha/iepngfix.htc"); }*/
/* FANCY CAPTCHA STARTS */ /* FANCY CAPTCHA STARTS */
.ajax-fc-container { width: 316px; background:#a8d7ea; color:#fff; margin:15px 0 0; } .ajax-fc-container { width: 316px; background:#a8d7ea; color:#fff; margin:15px 0 0; }
/* rounded corners */ /* rounded corners */
.ajax-fc-rtop, .ajax-fc-rbottom{ display:block; background: white; } .ajax-fc-rtop, .ajax-fc-rbottom{ display:block; background: white; }
.ajax-fc-rtop *, .ajax-fc-rbottom *{ display: block; height: 1px; overflow: hidden; background:#a8d7ea; } .ajax-fc-rtop *, .ajax-fc-rbottom *{ display: block; height: 1px; overflow: hidden; background:#a8d7ea; }
/* describes left and right boxes */ /* describes left and right boxes */
div#ajax-fc-content { position: absolute; margin-top: -3px; margin-left: 9px; width: 298px; height: 105px; background: image-url("captcha/bg-content-div.png"); } div#ajax-fc-content { position: absolute; margin-top: -3px; margin-left: 9px; width: 298px; height: 105px; background: image-url("captcha/bg-content-div.png"); }
div#ajax-fc-content div#ajax-fc-left { width: 200px; height: 100px; float: left; } div#ajax-fc-content div#ajax-fc-left { width: 200px; height: 100px; float: left; }
div#ajax-fc-content div#ajax-fc-right { width: 98px; height: 100px; float: right; } div#ajax-fc-content div#ajax-fc-right { width: 98px; height: 100px; float: right; }
/* block left: task and pictures */ /* block left: task and pictures */
p#ajax-fc-task { line-height: 16px; margin: 0; padding: 11px 0 0 11px; font-size: 12px; font-family: Verdana, Tahoma, Arial; color: #18779d; } p#ajax-fc-task { line-height: 16px; margin: 0; padding: 11px 0 0 11px; font-size: 12px; font-family: Verdana, Tahoma, Arial; color: #18779d; }
p#ajax-fc-task span { color: #66a70b; font-weight: bold; } p#ajax-fc-task span { color: #66a70b; font-weight: bold; }
ul#ajax-fc-task { width: 190px; height: 18px; list-style-type: none; background: image-url("captcha/bg-items.png") -4px 0px; background-repeat: no-repeat; margin: 6px 0 0 0; padding: 5px 0 0 2px; } ul#ajax-fc-task { width: 190px; height: 18px; list-style-type: none; background: image-url("captcha/bg-items.png") -4px 0px; background-repeat: no-repeat; margin: 6px 0 0 0; padding: 5px 0 0 2px; }
/* block right: cycle and backlink */ /* block right: cycle and backlink */
ul#ajax-fc-task li { float: left; margin-right: 1px; margin-top: 6px;} ul#ajax-fc-task li { float: left; margin-right: 1px; margin-top: 6px;}
p#ajax-fc-circle { position: absolute; margin: 18px 0 0 15px; width: 79px; height: 79px; background: image-url("captcha/circle.png"); background-repeat: no-repeat; } p#ajax-fc-circle { position: absolute; margin: 18px 0 0 15px; width: 79px; height: 79px; background: image-url("captcha/circle.png"); background-repeat: no-repeat; }
img#ajax-fc-backlink { position: absolute; margin-top: 1px; margin-left: 6px; border: 0px; z-index: 101; } img#ajax-fc-backlink { position: absolute; margin-top: 1px; margin-left: 6px; border: 0px; z-index: 101; }
/* left and right png borders */ /* left and right png borders */
div#ajax-fc-corner-spacer { height: 99px; } div#ajax-fc-corner-spacer { height: 99px; }
img.ajax-fc-border { position: absolute; margin-top: -3px; } img.ajax-fc-border { position: absolute; margin-top: -3px; }
img.ajax-fc-border#ajax-fc-left { margin-left: 2px; } img.ajax-fc-border#ajax-fc-left { margin-left: 2px; }
img.ajax-fc-border#ajax-fc-right { margin-left: 307px; } img.ajax-fc-border#ajax-fc-right { margin-left: 307px; }
/* items */ /* items */
.ajax-fc-highlighted { cursor: pointer; z-index: 102} .ajax-fc-highlighted { cursor: pointer; z-index: 102}
/* rounded corners */ /* rounded corners */
.ajax-fc-r1{ margin: 0 5px } .ajax-fc-r2{ margin: 0 3px } .ajax-fc-r3{ margin: 0 2px } .ajax-fc-r4{ margin: 0 1px; height: 2px } .ajax-fc-r1{ margin: 0 5px } .ajax-fc-r2{ margin: 0 3px } .ajax-fc-r3{ margin: 0 2px } .ajax-fc-r4{ margin: 0 1px; height: 2px }
/* FANCY CAPTCHA ENDS */ /* FANCY CAPTCHA ENDS */
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*ul.menu {list-style:none; margin:0; padding:0} /*ul.menu {list-style:none; margin:0; padding:0}
ul.menu li {position:relative; float:left; margin-right:2px} ul.menu li {position:relative; float:left; margin-right:2px}
ul.menu ul {position:absolute; top:46px; left:0; background:#d1d1d1; display:none; opacity:0; list-style:none} ul.menu ul {position:absolute; top:46px; left:0; background:#d1d1d1; display:none; opacity:0; list-style:none}
ul.menu ul li {position:relative; border:1px solid #aaa; border-top:none; width:148px; margin:0} ul.menu ul li {position:relative; border:1px solid #aaa; border-top:none; width:148px; margin:0}
ul.menu ul li a {display:block; padding:3px 7px 5px; background-color:#d1d1d1} ul.menu ul li a {display:block; padding:3px 7px 5px; background-color:#d1d1d1}
ul.menu ul li a:hover {background-color:#c5c5c5} ul.menu ul li a:hover {background-color:#c5c5c5}
ul.menu ul ul {left:148px; top:-1px} ul.menu ul ul {left:148px; top:-1px}
ul.menu .sub {background:#d1d1d1 image-url("dropdown/arrow.gif") 136px 8px no-repeat} ul.menu .sub {background:#d1d1d1 image-url("dropdown/arrow.gif") 136px 8px no-repeat}
ul.menu .topline {border-top:1px solid #aaa}*/ ul.menu .topline {border-top:1px solid #aaa}*/
ul.menu{ ul.menu{
list-style:none; margin:0; padding:0; list-style:none; margin:0; padding:0;
li{ li{
position:relative; float:left;height:50px;border-right:1px solid rgba(255, 255, 255, 0.15); position:relative; float:left;height:50px;border-right:1px solid rgba(255, 255, 255, 0.15);
&:hover{background:rgba(38,60,123,0.9);} &:hover{background:rgba(38,60,123,0.9);}
&:first-child{border-left:1px solid rgba(255, 255, 255, 0.15)} &:first-child{border-left:1px solid rgba(255, 255, 255, 0.15)}
} }
ul{ ul{
position:absolute; top:50px; left:0; background-color:rgb(38, 60, 123); display:none; opacity:0; list-style:none; position:absolute; top:50px; left:0; background-color:rgb(38, 60, 123); display:none; opacity:0; list-style:none;
li{ li{
position:relative; border-top:none; width:148px; margin:0;display:block; padding:3px 7px 5px; height:20px; position:relative; border-top:none; width:148px; margin:0;display:block; padding:3px 7px 5px; height:20px;
a{} a{}
} }
ul{left:148px; top:-1px;} ul{left:148px; top:-1px;}
} }
.sub{background:#d1d1d1 image-url("dropdown/arrow.gif") 136px 8px no-repeat;} .sub{background:#d1d1d1 image-url("dropdown/arrow.gif") 136px 8px no-repeat;}
.topline {border-top:1px solid #aaa} .topline {border-top:1px solid #aaa}
} }
\ No newline at end of file
/* /*
*= require dropdown *= require dropdown
*/ */
@mixin background-gradient($from:#3966AE,$to:#263C7B){ @mixin background-gradient($from:#3966AE,$to:#263C7B){
background: $from; background: $from;
background: -webkit-gradient(linear, 0 0, 0 bottom, from($from), to($to)); background: -webkit-gradient(linear, 0 0, 0 bottom, from($from), to($to));
background: -webkit-linear-gradient($from, $to); background: -webkit-linear-gradient($from, $to);
background: -moz-linear-gradient($from, $to); background: -moz-linear-gradient($from, $to);
background: -ms-linear-gradient($from, $to); background: -ms-linear-gradient($from, $to);
background: -o-linear-gradient($from, $to); background: -o-linear-gradient($from, $to);
background: linear-gradient($from, $to); background: linear-gradient($from, $to);
} }
*{ *{
margin:0; margin:0;
padding:0; padding:0;
} }
body{ body{
background:#244470 image-url("index/background.png"); background:#244470 image-url("index/background.png");
font-family:"\5FAE\8F6F\96C5\9ED1"; font-family:"\5FAE\8F6F\96C5\9ED1";
} }
a{ a{
text-shadow:1px 1px 1px #0C2549; text-shadow:1px 1px 1px #0C2549;
text-decoration:none; text-decoration:none;
} }
#nav a{ #nav a{
transition:all .3s ease-in-out; transition:all .3s ease-in-out;
text-decoration:none; text-decoration:none;
} }
#nav a:link{ #nav a:link{
color:white; color:white;
} }
#nav a:hover{ #nav a:hover{
color:white; color:white;
} }
#nav a:visited{ #nav a:visited{
color:white; color:white;
} }
#nav{ #nav{
width:900px; width:900px;
height:50px; height:50px;
background:#244470; background:#244470;
border-width:0 1px 1px 0; border-width:0 1px 1px 0;
border-style:solid; border-style:solid;
border-color:#5B82B7; border-color:#5B82B7;
border-radius:0 0 5px 5px; border-radius:0 0 5px 5px;
color:white; color:white;
margin:0 auto; margin:0 auto;
font:small-caps 12px "\5FAE\8F6F\96C5\9ED1"; font:small-caps 12px "\5FAE\8F6F\96C5\9ED1";
text-shadow:1px 1px 2px #0C2549; text-shadow:1px 1px 2px #0C2549;
@include background-gradient(); @include background-gradient();
} }
.nav_logo{ .nav_logo{
width:120px; width:120px;
height:30px; height:30px;
margin:0 0 0 5px; margin:0 0 0 5px;
padding:10px 0 10px 5px; padding:10px 0 10px 5px;
border-width:0 1px 0 0; border-width:0 1px 0 0;
border-style:solid; border-style:solid;
border-color:rgba(0, 0, 0, 0.2); border-color:rgba(0, 0, 0, 0.2);
display:block; display:block;
font:25px bold 'Nunito',sans-serif; font:25px bold 'Nunito',sans-serif;
float:left; float:left;
font-size:24px; font-size:24px;
} }
.nav_link{ .nav_link{
min-width:60px; min-width:60px;
height:30px; height:30px;
padding:10px; padding:10px;
border-width:0 1px 0 0; border-width:0 1px 0 0;
border-style:solid; border-style:solid;
border-color:rgba(0, 0, 0, 0.2); border-color:rgba(0, 0, 0, 0.2);
display:block; display:block;
font:15px/30px "\5FAE\8F6F\96C5\9ED1"; font:15px/30px "\5FAE\8F6F\96C5\9ED1";
float:left; float:left;
text-align:center; text-align:center;
} }
#main{ #main{
width:99.99%; width:99.99%;
height:310px; height:310px;
margin:60px 0 0 0; margin:60px 0 0 0;
background:rgba(243,243,243,0.6); background:rgba(243,243,243,0.6);
border-width:1px 0 0 1px; border-width:1px 0 0 1px;
border-style:solid; border-style:solid;
border-color:#e1e1e1; border-color:#e1e1e1;
} }
#main_sub{ #main_sub{
width:900px; width:900px;
margin:0 auto; margin:0 auto;
padding:30px 0 0 0; padding:30px 0 0 0;
height:280px; height:280px;
} }
#information{ #information{
width:390px; width:390px;
float:left; float:left;
} }
.title{ .title{
font-size:45px ; font-size:45px ;
font-weight:bold; font-weight:bold;
font-family:'Nunito',sans-serif; font-family:'Nunito',sans-serif;
} }
.subtitle{ .subtitle{
font:30px "\5FAE\8F6F\96C5\9ED1"; font:30px "\5FAE\8F6F\96C5\9ED1";
} }
.subinc{ .subinc{
font-size:15px; font-size:15px;
color:#525252; color:#525252;
text-shadow:1px 1px 1px #f1f1f1; text-shadow:1px 1px 1px #f1f1f1;
margin:0 0 0 140px; margin:0 0 0 140px;
} }
#download{ #download{
width:200px; width:200px;
height:60px; height:60px;
background:#AA7B2D; background:#AA7B2D;
border:rgba(255,255,255,0.3) solid 3px; border:rgba(255,255,255,0.3) solid 3px;
border-radius:10px; border-radius:10px;
margin:50px auto 0 auto; margin:50px auto 0 auto;
} }
.download_active{ .download_active{
color:white; color:white;
text-shadow:0px 0px 5px rgba(255,255,255,0.6); text-shadow:0px 0px 5px rgba(255,255,255,0.6);
font-size:25px; font-size:25px;
text-align:center; text-align:center;
margin:5px 0 0 0; margin:5px 0 0 0;
display:block; display:block;
} }
.download_information{ .download_information{
color:#f1f1f1; color:#f1f1f1;
text-shadow:0px 0px 2px rgba(255,255,255,0.4); text-shadow:0px 0px 2px rgba(255,255,255,0.4);
font-size:10px; font-size:10px;
display:block; display:block;
text-align:center; text-align:center;
} }
#slider{ #slider{
clear:both; clear:both;
width:500px; width:500px;
padding:0; padding:0;
margin:0 auto; margin:0 auto;
z-index:0; z-index:0;
clear:both; clear:both;
display:block; display:block;
float:right; float:right;
top:-212px; top:-212px;
*top:0; *top:0;
} }
.show1{ .show1{
width:500px; width:500px;
height:275px; height:275px;
background:image-url("index/01.png"); background:image-url("index/01.png");
border-radius:10px; border-radius:10px;
} }
.show2{ .show2{
width:500px; width:500px;
height:275px; height:275px;
background:image-url("index/02.png"); background:image-url("index/02.png");
border-radius:10px; border-radius:10px;
} }
.show3{ .show3{
width:500px; width:500px;
height:275px; height:275px;
background:image-url("index/03.png"); background:image-url("index/03.png");
border-radius:10px; border-radius:10px;
} }
footer{ footer{
width:900px; width:900px;
margin:0 auto; margin:0 auto;
} }
footer h2{ footer h2{
font:bold 15px/130% "\5FAE\8F6F\96C5\9ED1"; font:bold 15px/130% "\5FAE\8F6F\96C5\9ED1";
color:#2e2e2e; color:#2e2e2e;
text-shadow:1px 1px 1px #dedede; text-shadow:1px 1px 1px #dedede;
} }
#footer1{ #footer1{
height:200px; height:200px;
width:300px; width:300px;
border-right:1px #bfbfbf dashed; border-right:1px #bfbfbf dashed;
margin-top:10px; margin-top:10px;
float:left; float:left;
} }
#footer1 a{ #footer1 a{
font:12px/130% "\5FAE\8F6F\96C5\9ED1"; font:12px/130% "\5FAE\8F6F\96C5\9ED1";
color:#2a2a2a; color:#2a2a2a;
text-shadow:1px 1px 1px #dedede; text-shadow:1px 1px 1px #dedede;
} }
#footer2{ #footer2{
height:200px; height:200px;
width:300px; width:300px;
border-right:1px #bfbfbf dashed; border-right:1px #bfbfbf dashed;
margin-top:10px; margin-top:10px;
float:left; float:left;
} }
#footer3{ #footer3{
width:280px; width:280px;
float:left; float:left;
margin-top:10px; margin-top:10px;
padding-left:10px; padding-left:10px;
} }
#footer3 a{ #footer3 a{
font:12px/130% "\5FAE\8F6F\96C5\9ED1"; font:12px/130% "\5FAE\8F6F\96C5\9ED1";
color:#2a2a2a; color:#2a2a2a;
text-shadow:1px 1px 1px #dedede; text-shadow:1px 1px 1px #dedede;
} }
body { body {
background: image-url("ygologo.jpg") no-repeat top center #000000; background: image-url("ygologo.jpg") no-repeat top center #000000;
margin: 0px; margin: 0px;
font-size:14px; font-size:14px;
color: white color: white
} }
a:link { text-decoration: none; color: #ffcc66;} a:link { text-decoration: none; color: #ffcc66;}
a:visited{ color: #ffcc66;} a:visited{ color: #ffcc66;}
a:hover { text-decoration:underline } a:hover { text-decoration:underline }
nav {width: 750px; font-size: 14px; padding-bottom: 10px; line-height: 40px; color: #ffcc66; text-align: left; margin-left: auto; margin-right: auto;} nav {width: 750px; font-size: 14px; padding-bottom: 10px; line-height: 40px; color: #ffcc66; text-align: left; margin-left: auto; margin-right: auto;}
nav a{color:#ffcc66} nav a{color:#ffcc66}
#footer {padding-top: 20px; padding-bottom: 10px; font-size: 12px; color: #0099FF; clear: both; text-align: center; margin-left: auto; margin-right: auto;} #footer {padding-top: 20px; padding-bottom: 10px; font-size: 12px; color: #0099FF; clear: both; text-align: center; margin-left: auto; margin-right: auto;}
#header{width:600px; margin-left: auto; margin-right: auto;} #header{width:600px; margin-left: auto; margin-right: auto;}
#title {width: 600px; font-size: 30px; padding-bottom: 20px; color: #ffcc66; text-align: right; padding-top: 150px;} #title {width: 600px; font-size: 30px; padding-bottom: 20px; color: #ffcc66; text-align: right; padding-top: 150px;}
#main {width:600px; margin-left: auto; margin-right: auto; display: none;} #main {width:600px; margin-left: auto; margin-right: auto; display: none;}
#footer a {color: #0099FF} #footer a {color: #0099FF}
\ No newline at end of file
class Board < ActiveRecord::Base class Board < ActiveRecord::Base
belongs_to :superboard, :class_name => "Board" belongs_to :superboard, :class_name => "Board"
has_many :subboards, :foreign_key => :superboard_id, :class_name => "Board" has_many :subboards, :foreign_key => :superboard_id, :class_name => "Board"
has_many :topics, :foreign_key => :category_id has_many :topics, :foreign_key => :category_id
has_many :posts, :through =>:topics has_many :posts, :through =>:topics
has_and_belongs_to_many :moderators, :class_name => "User", :join_table => :moderators has_and_belongs_to_many :moderators, :class_name => "User", :join_table => :moderators
default_scope order(:displayorder) default_scope order(:displayorder)
def to_s def to_s
"<a href=\"/boards/#{id}\">#{name}</a>".html_safe "<a href=\"/boards/#{id}\">#{name}</a>".html_safe
end end
def logo_url def logo_url
read_attribute(:logo) read_attribute(:logo)
end end
def logo def logo
"<a href=\"/boards/#{id}\"><img src=\"#{logo_url}\"/></a>".html_safe "<a href=\"/boards/#{id}\"><img src=\"#{logo_url}\"/></a>".html_safe
end end
def self.root def self.root
Board.find_by_superboard_id 0 Board.find_by_superboard_id 0
end end
end end
<div class=" box ui-widget-content ui-corner-all ui-helper-clearfix"> <div class=" box ui-widget-content ui-corner-all ui-helper-clearfix">
<div id="fuzhu"></div> <div id="fuzhu"></div>
<%= render @boards %> <%= render @boards %>
</div> </div>
<div class="box ui-widget-content ui-corner-all ui-helper-clearfix"> <div class="box ui-widget-content ui-corner-all ui-helper-clearfix">
<div id="fuzhu"></div> <div id="fuzhu"></div>
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all" > <div class="ui-dialog-titlebar ui-widget-header ui-corner-all" >
<table width="100%" height="27px" border="0" cellspacing="0" cellpadding="0" > <table width="100%" height="27px" border="0" cellspacing="0" cellpadding="0" >
<tr> <tr>
<td width="590px"style="padding-left:5px"><%=t 'forum.link'%> </td> <td width="590px"style="padding-left:5px"><%=t 'forum.link'%> </td>
<td width="590px" style="padding-right:5px" align="right">-</td> <td width="590px" style="padding-right:5px" align="right">-</td>
</tr> </tr>
</table></div> </table></div>
<div id=footer2> <div id=footer2>
<div id=ft_1> <div id=ft_1>
<table id="ft_1_t" width="100%" border="0" cellspacing="0" cellpadding="0"> <table id="ft_1_t" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="590px"> <td width="590px">
<%= render @links %> <%= render @links %>
</td> </td>
<td width="590px"></td> <td width="590px"></td>
</tr> </tr>
</table> </table>
</div> </div>
<div id=ft_2> <div id=ft_2>
</div> </div>
<div id=ft_3></div> <div id=ft_3></div>
</div> </div>
<div></div> <div></div>
</div> </div>
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all"> <div class="ui-dialog-titlebar ui-widget-header ui-corner-all">
<table width="100%" height="27px"border="0" cellspacing="0" cellpadding="0" > <table width="100%" height="27px"border="0" cellspacing="0" cellpadding="0" >
<tr> <tr>
<td width="590px"style="padding-left:5px"><%= render 'entries/onlineuser' %> </td> <td width="590px"style="padding-left:5px"><%= render 'entries/onlineuser' %> </td>
<td width="590px" style="padding-right:5px" align="right">-</td> <td width="590px" style="padding-right:5px" align="right">-</td>
</tr> </tr>
</table></div> </table></div>
</div> </div>
\ No newline at end of file
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /> <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
<%= stylesheet_link_tag 'jquery-ui-1.8.11.custom' %> <%= stylesheet_link_tag 'jquery-ui-1.8.11.custom' %>
<%= stylesheet_link_tag 'style' %> <%= stylesheet_link_tag 'style' %>
<%= javascript_include_tag 'jquery-1.5.1.min' %> <%= javascript_include_tag 'jquery-1.5.1.min' %>
<%= javascript_include_tag 'jquery-ui-1.8.11.custom.min' %> <%= javascript_include_tag 'jquery-ui-1.8.11.custom.min' %>
<style type="text/css"> <style type="text/css">
.toggler { width: 400px; height:113px; position: relative; float:left;} .toggler { width: 400px; height:113px; position: relative; float:left;}
#button { padding: .5em 1em; text-decoration: none; } #button { padding: .5em 1em; text-decoration: none; }
#effect { width: 400px; height: 113px; position: relative;} #effect { width: 400px; height: 113px; position: relative;}
#effect h3 { margin: 0; padding: 0.4em; text-align: center; } #effect h3 { margin: 0; padding: 0.4em; text-align: center; }
.ui-effects-transfer { border: 2px dotted gray; } .ui-effects-transfer { border: 2px dotted gray; }
* *
{ {
margin:0; margin:0;
padding:0; padding:0;
} }
body body
{ {
font-size:10pt; font-size:10pt;
background-color:#999999 background-color:#999999
} }
#header #header
{ {
width:1230px; width:1230px;
height:280px; height:280px;
margin:0 auto; margin:0 auto;
} }
#h2{ #h2{
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1200px; width:1200px;
height:14px; height:14px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
} }
#h3{ #h3{
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1200px; width:1200px;
height:113px; height:113px;
overflow:hidden; overflow:hidden;
background-color:#000000; background-color:#000000;
border-left-style:solid;border-left-width:1px;border-left-color:#CCCCCC; border-left-style:solid;border-left-width:1px;border-left-color:#CCCCCC;
border-right-style:solid;border-right-width:1px;border-right-color:#CCCCCC; border-right-style:solid;border-right-width:1px;border-right-color:#CCCCCC;
} }
#h4{ #h4{
margin-top:5px; margin-top:5px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1200px; width:1200px;
height:31px; height:31px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
} }
#h5{ #h5{
margin-top:0px; margin-top:0px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1200px; width:1200px;
height:55px; height:55px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
} }
#h6{ #h6{
margin-top:5px; margin-top:5px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1200px; width:1200px;
height:33px; height:33px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
border-color:#F6B03C; border-color:#F6B03C;
} }
#zx{ #zx{
margin-top:30px; margin-top:30px;
margin-left:100p; margin-left:100p;
margin-right:100px; margin-right:100px;
margin-bottom:15px; margin-bottom:15px;
width:1040px; width:1040px;
height:10px; height:10px;
border-width:1px; border-width:1px;
border-style:dashed; border-style:dashed;
position:absolute; position:absolute;
left: 231px; left: 231px;
top: 198px; top: 198px;
} }
#body #body
{ {
margin-top:5px; margin-top:5px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1200px; width:1200px;
height:auto; height:auto;
} }
#b2 #b2
{ {
margin-top:10px; margin-top:10px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1180px; width:1180px;
height220px; height220px;
border-width:1px; border-width:1px;
border-style:dashed; border-style:dashed;
} }
#b3 #b3
{ {
margin-top:10px; margin-top:10px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1180px; width:1180px;
height:206px; height:206px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
} }
#b4 #b4
{ {
margin-top:10px; margin-top:10px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1180px; width:1180px;
height:34px; height:34px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
} }
#footer #footer
{ {
padding-top:15px; padding-top:15px;
margin-top:10px; margin-top:10px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1180px; width:1180px;
height:50px; height:50px;
border-width:1px; border-width:1px;
border-style:dashed; border-style:dashed;
} }
#tb1 #tb1
{ {
height:31px; height:31px;
width:100%; width:100%;
} }
#tb2 #tb2
{ {
margin-top:0; margin-top:0;
margin-bottom:auto; margin-bottom:auto;
height:55px; height:55px;
width:100%; width:100%;
} }
#tb3 #tb3
{ {
height:33px; height:33px;
width:100%; width:100%;
} }
#td1{ #td1{
padding-left:5px; padding-left:5px;
} }
#dtx #dtx
{ {
margin-top:auto; margin-top:auto;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
margin-bottom:auto; margin-bottom:auto;
width:50px; width:50px;
height:50px; height:50px;
border-width:1px; border-width:1px;
border-style:dashed; border-style:dashed;
border-color:#CCCCCC; border-color:#CCCCCC;
left: 112px; left: 112px;
top: 180px; top: 180px;
} }
#b2_1 #b2_1
{ {
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1180px; width:1180px;
height:27px; height:27px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
} }
#b2_2 #b2_2
{ {
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1165px; width:1165px;
height:93px; height:93px;
border-width:1px; border-width:1px;
border-bottom-style:solid; border-bottom-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
} }
#b2_3 #b2_3
{ {
margin-top:3px; margin-top:3px;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
width:1165px; width:1165px;
height:93px; height:93px;
border-width:1px; border-width:1px;
border-bottom-style:solid; border-bottom-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
} }
#b2_2_d1 #b2_2_d1
{ {
width:auto; width:auto;
height:auto; height:auto;
border-width:1px; border-width:1px;
border-style:hidden; border-style:hidden;
} }
#b2_2_d1_avatar #b2_2_d1_avatar
{ {
width:auto; width:auto;
height:auto; height:auto;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
margin-top:15px; margin-top:15px;
margin-left:19px; margin-left:19px;
margin-bottom:9px; margin-bottom:9px;
} }
#b2_2_d2 #b2_2_d2
{ {
padding-bottom:10px; padding-bottom:10px;
width:680px; width:680px;
height:82px; height:82px;
} }
#b2_2_d2_inf1 #b2_2_d2_inf1
{ {
margin-top:0px; margin-top:0px;
width:100%; width:100%;
height:22px; height:22px;
border-color:#CCCCCC; border-color:#CCCCCC;
border-bottom-style:dashed; border-bottom-style:dashed;
border-bottom-width:1px; border-bottom-width:1px;
} }
#b2_2_d2_inf2 #b2_2_d2_inf2
{ {
margin-top:0px; margin-top:0px;
width:100%; width:100%;
height:40px; height:40px;
border-color:#CCCCCC; border-color:#CCCCCC;
border-bottom-style:dashed; border-bottom-style:dashed;
border-bottom-width:1px; border-bottom-width:1px;
} }
#b2_2_d2_inf3 #b2_2_d2_inf3
{ {
margin-top:0px; margin-top:0px;
width:100%; width:100%;
height:22px; height:22px;
} }
#b2_2_d3_1 #b2_2_d3_1
{ {
width:100%; width:100%;
height:30px; height:30px;
} }
#b2_2_d3_2 #b2_2_d3_2
{ {
width:100%; width:100%;
height:30px; height:30px;
} }
#footer1 #footer1
{ {
width:100%; width:100%;
height:30px; height:30px;
border-width:1px; border-width:1px;
border-style:dashed; border-style:dashed;
} }
#footer2 #footer2
{ {
width:100%; width:100%;
height:170px; height:170px;
} }
#ft_1 #ft_1
{ {
width:100%; width:100%;
height:52px; height:52px;
} }
#ft_2 #ft_2
{ {
width:100%; width:100%;
height:80px; height:80px;
border-width:1px; border-width:1px;
border-top-style:solid; border-top-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
} }
#ft_3 #ft_3
{ {
width:100%; width:100%;
height:30px; height:30px;
border-width:1px; border-width:1px;
border-top-style:solid; border-top-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
} }
#ft_1_t #ft_1_t
{ {
width:100%; width:100%;
height:52px; height:52px;
} }
#ft_1_t_d1 #ft_1_t_d1
{ {
width:500px; width:500px;
height:38px; height:38px;
} }
#ft_1_t_d2 #ft_1_t_d2
{ {
width:125px; width:125px;
height:30px; height:30px;
border-width:1px; border-width:1px;
border-style:solid; border-style:solid;
border-color:#CCCCCC; border-color:#CCCCCC;
} }
#f_t #f_t
{ {
height:50px; height:50px;
border-width:1px; border-width:1px;
border-style:dashed; border-style:dashed;
} }
#fuzhu #fuzhu
{ {
height:10px; height:10px;
} }
#f_fz #f_fz
{ {
height:10px; height:10px;
} }
</style> </style>
<script> <script>
$(function() { $(function() {
// run the currently selected effect // run the currently selected effect
function runEffect() { function runEffect() {
// get effect type from // get effect type from
var selectedEffect = $( "#effectTypes" ).val(); var selectedEffect = $( "#effectTypes" ).val();
// most effect types need no options passed by default // most effect types need no options passed by default
var options = {}; var options = {};
// some effects have required parameters // some effects have required parameters
if ( selectedEffect === "scale" ) { if ( selectedEffect === "scale" ) {
options = { percent: 0 }; options = { percent: 0 };
} else if ( selectedEffect === "transfer" ) { } else if ( selectedEffect === "transfer" ) {
options = { to: "#button", className: "ui-effects-transfer" }; options = { to: "#button", className: "ui-effects-transfer" };
} else if ( selectedEffect === "size" ) { } else if ( selectedEffect === "size" ) {
options = { to: { width: 200, height: 60 } }; options = { to: { width: 200, height: 60 } };
} }
// run the effect // run the effect
$( "#effect" ).effect( selectedEffect, options, 500, callback ); $( "#effect" ).effect( selectedEffect, options, 500, callback );
}; };
// callback function to bring a hidden box back // callback function to bring a hidden box back
function callback() { function callback() {
setTimeout(function() { setTimeout(function() {
$( "#effect" ).removeAttr( "style" ).hide().fadeIn(); $( "#effect" ).removeAttr( "style" ).hide().fadeIn();
}, 10000 ); }, 10000 );
}; };
// set effect from select menu value // set effect from select menu value
$( "#effect" ).mouseover(function() { $( "#effect" ).mouseover(function() {
runEffect(); runEffect();
return true; return true;
}); });
}); });
</script> </script>
\ No newline at end of file
<li> <li>
<%= link_to attachment.data.original_filename, attachment.data.url %> <%= link_to attachment.data.original_filename, attachment.data.url %>
<% case %> <% case %>
<% when attachment.data.content_type[0, 5] == "image" %> <% when attachment.data.content_type[0, 5] == "image" %>
<div><%= image_tag attachment.data.url %></div> <div><%= image_tag attachment.data.url %></div>
<% else %> <% else %>
<% case File.extname attachment.data.original_filename %> <% case File.extname attachment.data.original_filename %>
<% when ".yrp" %> <% when ".yrp" %>
<span><%= link_to "播放", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span> <span><%= link_to "播放", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% when ".ydk" %> <% when ".ydk" %>
<span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span> <span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% when ".deck" %> <% when ".deck" %>
<span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span> <span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% end %> <% end %>
<% end %> <% end %>
</li> </li>
\ No newline at end of file
<%= form_for(@board) do |f| %> <%= form_for(@board) do |f| %>
<% if @board.errors.any? %> <% if @board.errors.any? %>
<div id="error_explanation"> <div id="error_explanation">
<h2><%= pluralize(@board.errors.count, "error") %> prohibited this board from being saved:</h2> <h2><%= pluralize(@board.errors.count, "error") %> prohibited this board from being saved:</h2>
<ul> <ul>
<% @board.errors.full_messages.each do |msg| %> <% @board.errors.full_messages.each do |msg| %>
<li><%= msg %></li> <li><%= msg %></li>
<% end %> <% end %>
</ul> </ul>
</div> </div>
<% end %> <% end %>
<div class="field"> <div class="field">
<%= f.label t 'board.name' %><br /> <%= f.label t 'board.name' %><br />
<%= f.text_field :name %> <%= f.text_field :name %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label t 'board.introduction' %><br /> <%= f.label t 'board.introduction' %><br />
<%= f.text_area :introduction %> <%= f.text_area :introduction %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label t 'board.notice' %><br /> <%= f.label t 'board.notice' %><br />
<%= f.text_area :notice %> <%= f.text_area :notice %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label t 'board.logo' %><br /> <%= f.label t 'board.logo' %><br />
<%= f.text_field :logo %> <%= f.text_field :logo %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label t 'board.banner' %><br /> <%= f.label t 'board.banner' %><br />
<%= f.text_field :banner %> <%= f.text_field :banner %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label t 'board.readperm' %><br /> <%= f.label t 'board.readperm' %><br />
<%= f.text_field :readperm %> <%= f.text_field :readperm %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label t 'board.topicperm' %><br /> <%= f.label t 'board.topicperm' %><br />
<%= f.text_field :topicperm %> <%= f.text_field :topicperm %>
</div> </div>
<div class="field"> <div class="field">
<%= f.label t 'board.postperm' %><br /> <%= f.label t 'board.postperm' %><br />
<%= f.text_field :postperm %> <%= f.text_field :postperm %>
</div> </div>
<div class="actions"> <div class="actions">
<%= f.submit t 'board.submit' %> <%= f.submit t 'board.submit' %>
</div> </div>
<% end %> <% end %>
<h1>Listing comments</h1> <h1>Listing comments</h1>
<table> <table>
<tr> <tr>
<th>Post</th> <th>Post</th>
<th>User</th> <th>User</th>
<th>Content</th> <th>Content</th>
<th></th> <th></th>
<th></th> <th></th>
<th></th> <th></th>
</tr> </tr>
<% @comments.each do |comment| %> <% @comments.each do |comment| %>
<tr> <tr>
<td><%= comment.post %></td> <td><%= comment.post %></td>
<td><%= comment.user %></td> <td><%= comment.user %></td>
<td><%= comment.content %></td> <td><%= comment.content %></td>
<td><%= link_to 'Show', comment %></td> <td><%= link_to 'Show', comment %></td>
<td><%= link_to 'Edit', edit_comment_path(comment) %></td> <td><%= link_to 'Edit', edit_comment_path(comment) %></td>
<td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %></td> <td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %></td>
</tr> </tr>
<% end %> <% end %>
</table> </table>
<br /> <br />
<%= link_to 'New Comment', new_comment_path %> <%= link_to 'New Comment', new_comment_path %>
<%= @site %> <%= @site %>
<% @actions.each do |action| %> <% @actions.each do |action| %>
&raquo; &raquo;
<span class="action"> <span class="action">
<%= action.is_a?(Hash) ? link_to(action.keys[0], action.values[0]) : action %> <%= action.is_a?(Hash) ? link_to(action.keys[0], action.values[0]) : action %>
</span> </span>
<% end %> <% end %>
\ No newline at end of file
<div id="navigations"> <div id="navigations">
<ul> <ul>
<% @navigations.each do |navigation| %> <% @navigations.each do |navigation| %>
<li class="navigation"><%=link_to navigation.name, navigation.url %></li> <li class="navigation"><%=link_to navigation.name, navigation.url %></li>
<% end %> <% end %>
</ul> </ul>
</div> </div>
\ No newline at end of file
<div id="search"> <div id="search">
<%= form_tag topics_path do %> <%= form_tag topics_path do %>
<%= text_field_tag "keyword" %> <%= text_field_tag "keyword" %>
<%= submit_tag t("search.search"), id: "search_submit" %> <%= submit_tag t("search.search"), id: "search_submit" %>
<%= link_to t("search.advanced") %> <%= link_to t("search.advanced") %>
<% end %> <% end %>
</div> </div>
\ No newline at end of file
<div id="user"> <div id="user">
<% if logged? %> <% if logged? %>
<%= link_to @current_user.name, @current_user %> <%= link_to @current_user.name, @current_user %>
<%#= link_to Pm.model_name.human, pms_path %> <%#= link_to Pm.model_name.human, pms_path %>
<%= link_to User.human_attribute_name('logout'), logout_path %> <%= link_to User.human_attribute_name('logout'), logout_path %>
<% else %> <% else %>
<%= link_to User.human_attribute_name('login'), login_path %> <%= link_to User.human_attribute_name('login'), login_path %>
<%= link_to User.human_attribute_name('register'), register_path %> <%= link_to User.human_attribute_name('register'), register_path %>
<% end %> <% end %>
</div> </div>
\ No newline at end of file
<h1>Editing post</h1> <h1>Editing post</h1>
<%= render 'form' %> <%= render 'form' %>
<%= link_to 'Show', @post %> | <%= link_to 'Show', @post %> |
<%= link_to 'Back', posts_path %> <%= link_to 'Back', posts_path %>
<h1>New topic</h1> <h1>New topic</h1>
<%= render 'form' %> <%= render 'form' %>
<%= link_to 'Back', topics_path %> <%= link_to 'Back', topics_path %>
#encoding: UTF-8 #encoding: UTF-8
RailsAdmin.config do |config| RailsAdmin.config do |config|
config.main_app_name = Proc.new { |controller| [ "Mycard", "管理中心 - #{controller.params[:action].try(:titleize)}" ] } config.main_app_name = Proc.new { |controller| [ "Mycard", "管理中心 - #{controller.params[:action].try(:titleize)}" ] }
class FakeUser class FakeUser
def self.username def self.username
'admin' 'admin'
end end
def self.email def self.email
'zh99998@gmail.com' 'zh99998@gmail.com'
end end
end end
RailsAdmin.config do |config| RailsAdmin.config do |config|
config.current_user_method do config.current_user_method do
authenticate_or_request_with_http_basic do |username, password| authenticate_or_request_with_http_basic do |username, password|
p username, password, username == "admin" && password == "mycard.web" p username, password, username == "admin" && password == "mycard.web"
username == "admin" && password == "mycard.web" username == "admin" && password == "mycard.web"
end end
FakeUser FakeUser
end end
config.authenticate_with{} config.authenticate_with{}
end end
end end
\ No newline at end of file
class CreateSettings < ActiveRecord::Migration class CreateSettings < ActiveRecord::Migration
def self.up def self.up
create_table :settings, :primary_key => :name do |t| create_table :settings, :primary_key => :name do |t|
t.text :value t.text :value
end end
change_column(:settings, :name, :string) change_column(:settings, :name, :string)
end end
def self.down def self.down
drop_table :settings drop_table :settings
end end
end end
# encoding: UTF-8 # encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
# #
# Note that this schema.rb definition is the authoritative source for your # Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another # database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations # system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues). # you'll amass, the slower it'll run and the greater likelihood for issues).
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20120531032103) do ActiveRecord::Schema.define(:version => 20120531032103) do
create_table "attachments", :force => true do |t| create_table "attachments", :force => true do |t|
t.string "data_file_name" t.string "data_file_name"
t.string "data_content_type" t.string "data_content_type"
t.integer "data_file_size" t.integer "data_file_size"
t.datetime "data_updated_at" t.datetime "data_updated_at"
t.integer "post_id" t.integer "post_id"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "boards", :force => true do |t| create_table "boards", :force => true do |t|
t.string "name", :default => "", :null => false t.string "name", :default => "", :null => false
t.integer "superboard_id", :null => false t.integer "superboard_id", :null => false
t.integer "displayorder", :default => 0, :null => false t.integer "displayorder", :default => 0, :null => false
t.text "introduction", :null => false t.text "introduction", :null => false
t.text "notice", :null => false t.text "notice", :null => false
t.string "logo", :default => "", :null => false t.string "logo", :default => "", :null => false
t.string "banner", :default => "", :null => false t.string "banner", :default => "", :null => false
t.integer "readperm", :default => 0, :null => false t.integer "readperm", :default => 0, :null => false
t.integer "topicperm", :default => 0, :null => false t.integer "topicperm", :default => 0, :null => false
t.integer "postperm", :default => 0, :null => false t.integer "postperm", :default => 0, :null => false
end end
create_table "cards", :force => true do |t| create_table "cards", :force => true do |t|
t.integer "number" t.integer "number"
t.string "name" t.string "name"
t.string "card_type" t.string "card_type"
t.string "monster_type" t.string "monster_type"
t.integer "monster_atk" t.integer "monster_atk"
t.integer "monster_def" t.integer "monster_def"
t.string "monster_attribute" t.string "monster_attribute"
t.string "type" t.string "type"
t.integer "monster_level" t.integer "monster_level"
t.text "lore" t.text "lore"
t.integer "status" t.integer "status"
t.string "stats" t.string "stats"
t.string "archetypes" t.string "archetypes"
t.string "mediums" t.string "mediums"
t.integer "tokens" t.integer "tokens"
end end
add_index "cards", ["card_type"], :name => "index_cards_on_card_type" add_index "cards", ["card_type"], :name => "index_cards_on_card_type"
add_index "cards", ["name"], :name => "index_cards_on_name" add_index "cards", ["name"], :name => "index_cards_on_name"
add_index "cards", ["number"], :name => "index_cards_on_number" add_index "cards", ["number"], :name => "index_cards_on_number"
create_table "comments", :force => true do |t| create_table "comments", :force => true do |t|
t.integer "post_id" t.integer "post_id"
t.integer "user_id" t.integer "user_id"
t.text "content" t.text "content"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "decks", :force => true do |t| create_table "decks", :force => true do |t|
t.integer "library_id" t.integer "library_id"
t.integer "user_id" t.integer "user_id"
t.integer "duel_id" t.integer "duel_id"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
add_index "decks", ["duel_id"], :name => "index_decks_on_duel_id" add_index "decks", ["duel_id"], :name => "index_decks_on_duel_id"
add_index "decks", ["library_id"], :name => "index_decks_on_library_id" add_index "decks", ["library_id"], :name => "index_decks_on_library_id"
add_index "decks", ["user_id"], :name => "index_decks_on_user_id" add_index "decks", ["user_id"], :name => "index_decks_on_user_id"
create_table "duels", :force => true do |t| create_table "duels", :force => true do |t|
t.integer "user1_id" t.integer "user1_id"
t.integer "user2_id" t.integer "user2_id"
t.integer "winner_id" t.integer "winner_id"
t.integer "winreason" t.integer "winreason"
t.string "replay" t.string "replay"
t.integer "user1_credits" t.integer "user1_credits"
t.integer "user2_credits" t.integer "user2_credits"
t.integer "version" t.integer "version"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
t.boolean "user1_public", :default => true, :null => false t.boolean "user1_public", :default => true, :null => false
t.boolean "user2_public", :default => true, :null => false t.boolean "user2_public", :default => true, :null => false
end end
add_index "duels", ["user1_id"], :name => "index_duels_on_user1_id" add_index "duels", ["user1_id"], :name => "index_duels_on_user1_id"
add_index "duels", ["user2_id"], :name => "index_duels_on_user2_id" add_index "duels", ["user2_id"], :name => "index_duels_on_user2_id"
create_table "duels_users_cards", :force => true do |t| create_table "duels_users_cards", :force => true do |t|
t.integer "duel_id" t.integer "duel_id"
t.integer "user_id" t.integer "user_id"
t.integer "card_id" t.integer "card_id"
t.boolean "main" t.boolean "main"
end end
add_index "duels_users_cards", ["card_id"], :name => "index_duels_users_cards_on_card_id" add_index "duels_users_cards", ["card_id"], :name => "index_duels_users_cards_on_card_id"
add_index "duels_users_cards", ["duel_id"], :name => "index_duels_users_cards_on_duel_id" add_index "duels_users_cards", ["duel_id"], :name => "index_duels_users_cards_on_duel_id"
add_index "duels_users_cards", ["user_id"], :name => "index_duels_users_cards_on_user_id" add_index "duels_users_cards", ["user_id"], :name => "index_duels_users_cards_on_user_id"
create_table "libraries", :force => true do |t| create_table "libraries", :force => true do |t|
t.string "name" t.string "name"
t.text "contents" t.text "contents"
t.integer "parent_id" t.integer "parent_id"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
add_index "libraries", ["parent_id"], :name => "index_libraries_on_parent_id" add_index "libraries", ["parent_id"], :name => "index_libraries_on_parent_id"
create_table "links", :force => true do |t| create_table "links", :force => true do |t|
t.string "name" t.string "name"
t.string "url" t.string "url"
t.string "logo" t.string "logo"
t.string "introduction" t.string "introduction"
t.integer "displayorder" t.integer "displayorder"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "matches", :force => true do |t| create_table "matches", :force => true do |t|
t.integer "player1_id" t.integer "player1_id"
t.integer "player1_score" t.integer "player1_score"
t.integer "player2_id" t.integer "player2_id"
t.integer "player2_score" t.integer "player2_score"
t.integer "round" t.integer "round"
t.integer "duel1_id" t.integer "duel1_id"
t.integer "duel2_id" t.integer "duel2_id"
t.integer "duel3_id" t.integer "duel3_id"
t.integer "tournament_id" t.integer "tournament_id"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
add_index "matches", ["duel1_id"], :name => "index_matches_on_duel1_id" add_index "matches", ["duel1_id"], :name => "index_matches_on_duel1_id"
add_index "matches", ["duel2_id"], :name => "index_matches_on_duel2_id" add_index "matches", ["duel2_id"], :name => "index_matches_on_duel2_id"
add_index "matches", ["duel3_id"], :name => "index_matches_on_duel3_id" add_index "matches", ["duel3_id"], :name => "index_matches_on_duel3_id"
add_index "matches", ["player1_id"], :name => "index_matches_on_player1_id" add_index "matches", ["player1_id"], :name => "index_matches_on_player1_id"
add_index "matches", ["player2_id"], :name => "index_matches_on_player2_id" add_index "matches", ["player2_id"], :name => "index_matches_on_player2_id"
add_index "matches", ["tournament_id"], :name => "index_matches_on_tournament_id" add_index "matches", ["tournament_id"], :name => "index_matches_on_tournament_id"
create_table "moderations", :force => true do |t| create_table "moderations", :force => true do |t|
t.integer "user_id" t.integer "user_id"
t.integer "association_id" t.integer "association_id"
t.string "association_type" t.string "association_type"
t.string "action" t.string "action"
t.string "note" t.string "note"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "moderators", :force => true do |t| create_table "moderators", :force => true do |t|
t.integer "user_id" t.integer "user_id"
t.integer "board_id" t.integer "board_id"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
add_index "moderators", ["board_id"], :name => "index_moderators_on_board_id" add_index "moderators", ["board_id"], :name => "index_moderators_on_board_id"
add_index "moderators", ["user_id"], :name => "index_moderators_on_user_id" add_index "moderators", ["user_id"], :name => "index_moderators_on_user_id"
create_table "navigations", :force => true do |t| create_table "navigations", :force => true do |t|
t.string "name" t.string "name"
t.string "url" t.string "url"
t.integer "displayorder" t.integer "displayorder"
t.integer "role_id" t.integer "role_id"
t.integer "super_id" t.integer "super_id"
end end
create_table "notices", :force => true do |t| create_table "notices", :force => true do |t|
t.integer "user_id" t.integer "user_id"
t.string "type" t.string "type"
t.integer "assocaion_id" t.integer "assocaion_id"
t.string "assocaion_type" t.string "assocaion_type"
t.integer "from_user_id" t.integer "from_user_id"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "pms", :force => true do |t| create_table "pms", :force => true do |t|
t.integer "from_user_id", :null => false t.integer "from_user_id", :null => false
t.integer "to_user_id", :null => false t.integer "to_user_id", :null => false
t.boolean "read", :default => false, :null => false t.boolean "read", :default => false, :null => false
t.text "content", :null => false t.text "content", :null => false
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "posts", :force => true do |t| create_table "posts", :force => true do |t|
t.integer "topic_id" t.integer "topic_id"
t.integer "user_id" t.integer "user_id"
t.text "content" t.text "content"
t.integer "displayorder" t.integer "displayorder"
t.integer "readperm" t.integer "readperm"
t.boolean "private" t.boolean "private"
t.boolean "anonymous" t.boolean "anonymous"
t.boolean "ubb" t.boolean "ubb"
t.boolean "html" t.boolean "html"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "roles", :force => true do |t| create_table "roles", :force => true do |t|
t.string "name", :null => false t.string "name", :null => false
t.boolean "topic_delete", :default => false, :null => false t.boolean "topic_delete", :default => false, :null => false
t.integer "topic_digest", :default => 0, :null => false t.integer "topic_digest", :default => 0, :null => false
t.integer "topic_displayorder", :default => 0, :null => false t.integer "topic_displayorder", :default => 0, :null => false
t.boolean "topic_highlight", :default => false, :null => false t.boolean "topic_highlight", :default => false, :null => false
t.boolean "topic_edit", :default => false, :null => false t.boolean "topic_edit", :default => false, :null => false
t.boolean "topic_lock", :default => false, :null => false t.boolean "topic_lock", :default => false, :null => false
end end
create_table "servers", :force => true do |t| create_table "servers", :force => true do |t|
t.string "name" t.string "name"
t.string "password" t.string "password"
t.string "ip" t.string "ip"
t.integer "port" t.integer "port"
t.integer "http_port" t.integer "http_port"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "settings", :primary_key => "name", :force => true do |t| create_table "settings", :primary_key => "name", :force => true do |t|
t.text "value" t.text "value"
end end
create_table "topics", :force => true do |t| create_table "topics", :force => true do |t|
t.integer "user_id", :null => false t.integer "user_id", :null => false
t.integer "type_id" t.integer "type_id"
t.integer "category_id", :null => false t.integer "category_id", :null => false
t.string "category_type", :null => false t.string "category_type", :null => false
t.string "name", :null => false t.string "name", :null => false
t.boolean "digest", :default => false, :null => false t.boolean "digest", :default => false, :null => false
t.integer "displayorder", :default => 0, :null => false t.integer "displayorder", :default => 0, :null => false
t.integer "highlight", :default => 0, :null => false t.integer "highlight", :default => 0, :null => false
t.integer "viewnum", :default => 0, :null => false t.integer "viewnum", :default => 0, :null => false
t.integer "readperm", :default => 1, :null => false t.integer "readperm", :default => 1, :null => false
t.boolean "locked", :default => false, :null => false t.boolean "locked", :default => false, :null => false
t.boolean "deleted", :default => false, :null => false t.boolean "deleted", :default => false, :null => false
t.boolean "reverse", :default => false, :null => false t.boolean "reverse", :default => false, :null => false
t.boolean "private", :default => false, :null => false t.boolean "private", :default => false, :null => false
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "tournaments", :force => true do |t| create_table "tournaments", :force => true do |t|
t.string "name" t.string "name"
t.string "location_type" t.string "location_type"
t.string "location" t.string "location"
t.text "note" t.text "note"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
end end
create_table "users", :force => true do |t| create_table "users", :force => true do |t|
t.string "name", :null => false t.string "name", :null => false
t.string "password" t.string "password"
t.string "email", :default => "", :null => false t.string "email", :default => "", :null => false
t.string "nickname", :default => "", :null => false t.string "nickname", :default => "", :null => false
t.text "signature" t.text "signature"
t.integer "credits", :default => 0, :null => false t.integer "credits", :default => 0, :null => false
t.integer "credit1", :default => 0, :null => false t.integer "credit1", :default => 0, :null => false
t.integer "credit2", :default => 0, :null => false t.integer "credit2", :default => 0, :null => false
t.integer "credit3", :default => 0, :null => false t.integer "credit3", :default => 0, :null => false
t.integer "credit4", :default => 0, :null => false t.integer "credit4", :default => 0, :null => false
t.integer "credit5", :default => 0, :null => false t.integer "credit5", :default => 0, :null => false
t.integer "credit6", :default => 0, :null => false t.integer "credit6", :default => 0, :null => false
t.integer "credit7", :default => 0, :null => false t.integer "credit7", :default => 0, :null => false
t.integer "credit8", :default => 0, :null => false t.integer "credit8", :default => 0, :null => false
t.integer "win", :default => 0, :null => false t.integer "win", :default => 0, :null => false
t.integer "lost", :default => 0, :null => false t.integer "lost", :default => 0, :null => false
t.integer "role_id", :default => 5, :null => false t.integer "role_id", :default => 5, :null => false
t.boolean "locked", :default => false, :null => false t.boolean "locked", :default => false, :null => false
t.string "regip", :default => "", :null => false t.string "regip", :default => "", :null => false
t.string "lastloginip", :default => "", :null => false t.string "lastloginip", :default => "", :null => false
t.integer "viewnum", :default => 0, :null => false t.integer "viewnum", :default => 0, :null => false
t.integer "onlinetime", :default => 0, :null => false t.integer "onlinetime", :default => 0, :null => false
t.string "locale" t.string "locale"
t.string "theme" t.string "theme"
t.datetime "created_at", :null => false t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false t.datetime "updated_at", :null => false
t.string "avatar_file_name" t.string "avatar_file_name"
t.string "avatar_content_type" t.string "avatar_content_type"
t.integer "avatar_file_size" t.integer "avatar_file_size"
t.datetime "avatar_updated_at" t.datetime "avatar_updated_at"
t.string "encrypted_password", :default => "", :null => false t.string "encrypted_password", :default => "", :null => false
t.string "reset_password_token" t.string "reset_password_token"
t.datetime "reset_password_sent_at" t.datetime "reset_password_sent_at"
t.datetime "remember_created_at" t.datetime "remember_created_at"
t.integer "sign_in_count", :default => 0 t.integer "sign_in_count", :default => 0
t.datetime "current_sign_in_at" t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at" t.datetime "last_sign_in_at"
t.string "current_sign_in_ip" t.string "current_sign_in_ip"
t.string "last_sign_in_ip" t.string "last_sign_in_ip"
end end
add_index "users", ["email"], :name => "index_users_on_email" add_index "users", ["email"], :name => "index_users_on_email"
add_index "users", ["name"], :name => "index_users_on_name" add_index "users", ["name"], :name => "index_users_on_name"
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
end end
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