竞赛首页修改

This commit is contained in:
nwb 2014-07-22 08:37:07 +08:00
parent 6e954d314f
commit aebae800dd
3 changed files with 22 additions and 19 deletions

View File

@ -1,4 +1,4 @@
source 'https://ruby.taobao.org' source 'http://ruby.taobao.org'
unless RUBY_PLATFORM =~ /w32/ unless RUBY_PLATFORM =~ /w32/
# unix-like only # unix-like only

View File

@ -19,7 +19,7 @@ PATH
rails rails
GEM GEM
remote: https://ruby.taobao.org/ remote: http://ruby.taobao.org/
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actionmailer (3.2.13) actionmailer (3.2.13)
@ -53,13 +53,12 @@ GEM
rails (>= 3, < 5) rails (>= 3, < 5)
arel (3.0.3) arel (3.0.3)
builder (3.0.0) builder (3.0.0)
capybara (2.0.3) capybara (2.4.1)
mime-types (>= 1.16) mime-types (>= 1.16)
nokogiri (>= 1.3.3) nokogiri (>= 1.3.3)
rack (>= 1.0.0) rack (>= 1.0.0)
rack-test (>= 0.5.4) rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0) xpath (~> 2.0)
xpath (~> 1.0.0)
celluloid (0.15.2) celluloid (0.15.2)
timers (~> 1.1.0) timers (~> 1.1.0)
childprocess (0.5.3) childprocess (0.5.3)
@ -90,7 +89,7 @@ GEM
lumberjack (~> 1.0) lumberjack (~> 1.0)
pry (>= 0.9.12) pry (>= 0.9.12)
thor (>= 0.18.1) thor (>= 0.18.1)
guard-rails (0.5.2) guard-rails (0.5.3)
guard (~> 2.0) guard (~> 2.0)
guard-spork (1.5.1) guard-spork (1.5.1)
childprocess (>= 0.2.3) childprocess (>= 0.2.3)
@ -122,14 +121,17 @@ GEM
metaclass (0.0.4) metaclass (0.0.4)
method_source (0.8.2) method_source (0.8.2)
mime-types (1.25.1) mime-types (1.25.1)
mocha (0.13.3) mini_portile (0.6.0)
mocha (1.1.0)
metaclass (~> 0.0.1) metaclass (~> 0.0.1)
multi_json (1.10.1) multi_json (1.10.1)
mysql2 (0.3.11) mysql2 (0.3.11)
mysql2 (0.3.11-x86-mingw32) mysql2 (0.3.11-x86-mingw32)
net-ldap (0.3.1) net-ldap (0.3.1)
nokogiri (1.5.11) nokogiri (1.6.3)
nokogiri (1.5.11-x86-mingw32) mini_portile (= 0.6.0)
nokogiri (1.6.3-x86-mingw32)
mini_portile (= 0.6.0)
paperclip (3.5.4) paperclip (3.5.4)
activemodel (>= 3.0.0) activemodel (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
@ -233,7 +235,7 @@ GEM
json (>= 1.8.0) json (>= 1.8.0)
websocket (1.0.7) websocket (1.0.7)
win32console (1.3.2-x86-mingw32) win32console (1.3.2-x86-mingw32)
xpath (1.0.0) xpath (2.0.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
PLATFORMS PLATFORMS
@ -246,22 +248,22 @@ DEPENDENCIES
acts-as-taggable-on (= 2.4.1) acts-as-taggable-on (= 2.4.1)
better_errors! better_errors!
builder (= 3.0.0) builder (= 3.0.0)
capybara (~> 2.0.0) capybara (~> 2.4.1)
coderay (~> 1.0.6) coderay (~> 1.0.6)
coffee-rails (~> 3.2.1) coffee-rails (~> 3.2.1)
factory_girl factory_girl (~> 4.4.0)
fastercsv (~> 1.5.0) fastercsv (~> 1.5.0)
guard-rails guard-rails (~> 0.5.3)
guard-spork guard-spork (~> 1.5.1)
guard-test (~> 1.0.0) guard-test (~> 1.0.0)
htmlentities htmlentities
i18n (~> 0.6.0) i18n (~> 0.6.0)
jquery-rails (~> 2.0.2) jquery-rails (~> 2.0.2)
kaminari kaminari
mocha (~> 0.13.3) mocha (~> 1.1.0)
mysql2 (= 0.3.11) mysql2 (= 0.3.11)
net-ldap (~> 0.3.1) net-ldap (~> 0.3.1)
nokogiri (< 1.6.0) nokogiri (~> 1.6.3)
paperclip (~> 3.5.4) paperclip (~> 3.5.4)
pry pry
pry-nav pry-nav
@ -273,7 +275,8 @@ DEPENDENCIES
ruby-openid (~> 2.1.4) ruby-openid (~> 2.1.4)
sass-rails (~> 3.2.3) sass-rails (~> 3.2.3)
seems_rateable! seems_rateable!
shoulda (> 3.3.2) selenium-webdriver (~> 2.42.0)
spork-testunit shoulda (~> 3.5.0)
spork-testunit (~> 0.0.8)
therubyracer therubyracer
uglifier (>= 1.0.3) uglifier (>= 1.0.3)

View File

@ -169,7 +169,7 @@
<% end %> <% end %>
</div> </div>
<div style="overfowhidden;height:200px;float: left;margin:5px; margin-left: 12px; margin-bottom: 2px; width: 380px;"> <div style="float: left;margin:5px; margin-left: 12px; margin-bottom: 2px; width: 380px;">
<span class='font_lighter' title ='<%=contest.description%>'><%=contest.description.truncate(100, omission: '...')%></span> <span class='font_lighter' title ='<%=contest.description%>'><%=contest.description.truncate(100, omission: '...')%></span>
</div><br /> </div><br />