Skip to content

Commit

Permalink
Fixed modal issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spetri committed Aug 2, 2014
1 parent 069fcfb commit 9b6306c
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 44 deletions.
84 changes: 45 additions & 39 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,34 @@ GEM
activesupport (3.2.12)
i18n (~> 0.6)
multi_json (~> 1.0)
airbrake (3.1.14)
airbrake (4.0.0)
builder
json
multi_json
arel (3.0.3)
builder (3.0.4)
chunky_png (1.2.9)
chunky_png (1.3.1)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
compass (0.12.2)
coffee-script-source (1.7.1)
compass (0.12.7)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
compass-rails (1.0.3)
compass (>= 0.12.2, < 0.14)
sass (~> 3.2.19)
compass-rails (2.0.0)
compass (>= 0.12.2)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.0.2)
execjs (2.2.1)
fakeweb (1.3.0)
foundation-rails (5.0.2.0)
foundation-rails (5.3.1.0)
railties (>= 3.1.0)
sass (>= 3.2.0)
fssm (0.2.10)
haml (4.0.4)
haml (4.0.5)
tilt
haml-rails (0.4)
actionpack (>= 3.1, < 4.1)
Expand All @@ -77,9 +77,9 @@ GEM
railties (>= 3.1, < 4.1)
has_tokens (1.0.1)
hike (1.2.3)
i18n (0.6.5)
i18n (0.6.11)
journey (1.0.4)
jquery-rails (3.0.4)
jquery-rails (3.1.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
Expand All @@ -89,20 +89,20 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25.1)
multi_json (1.8.2)
multi_json (1.10.1)
paper_trail (2.7.2)
activerecord (~> 3.0)
railties (~> 3.0)
pg (0.17.0)
polyglot (0.3.3)
puma (2.6.0)
pg (0.17.1)
polyglot (0.3.5)
puma (2.9.0)
rack (>= 1.1, < 2.0)
quiet_assets (1.0.2)
quiet_assets (1.0.3)
railties (>= 3.1, < 5.0)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.3)
rack-ssl (1.3.4)
rack
rack-test (0.6.2)
rack (>= 1.0)
Expand All @@ -121,49 +121,55 @@ GEM
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.1.0)
rake (10.3.2)
rdoc (3.12.2)
json (~> 1.4)
ref (1.0.5)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.4)
rspec-rails (2.14.0)
rest-client (1.6.8)
mime-types (~> 1.16)
rdoc (>= 2.4.2)
rspec-core (3.0.3)
rspec-support (~> 3.0.0)
rspec-expectations (3.0.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.0.0)
rspec-mocks (3.0.3)
rspec-support (~> 3.0.0)
rspec-rails (3.0.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
sass (3.2.12)
rspec-core (~> 3.0.0)
rspec-expectations (~> 3.0.0)
rspec-mocks (~> 3.0.0)
rspec-support (~> 3.0.0)
rspec-support (3.0.3)
sass (3.2.19)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
shoulda-matchers (2.4.0)
shoulda-matchers (2.6.2)
activesupport (>= 3.0.0)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.8)
therubyracer (0.12.0)
sqlite3 (1.3.9)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thor (0.18.1)
thor (0.19.1)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.38)
uglifier (2.3.1)
tzinfo (0.3.40)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
vcr (2.8.0)
vcr (2.9.2)

PLATFORMS
ruby
Expand Down
10 changes: 5 additions & 5 deletions app/views/layouts/_modals.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#sample_riddles.reveal-modal
#sample_riddles.reveal-modal{"data-reveal" => ""}
%h2 Sample Riddles
%p.lead Have more? Send them along!
%ul.block-grid.three-up
Expand All @@ -7,7 +7,7 @@
%li=link_to "Using Yield to log \"stuff\"", "http://rubyfiddle.com/riddles/10504/9", class: :button
%a.close-reveal-modal &#215;

#about.reveal-modal
#about.reveal-modal{"data-reveal" => ""}
%h2 About RubyFiddle
%p.lead For #{link_to "Ruby Off Rails", "http://rubyoffrails.com"}
%p We wanted a way for people to experience some Ruby in the browser, as well as have a platform that can send cool ruby scripts to one another.
Expand All @@ -16,14 +16,14 @@
%p Inspired by =link_to "JSFiddle", "http://jsfiddle.net"
%a.close-reveal-modal &#215;

#fork.reveal-modal
#fork.reveal-modal{"data-reveal" => ""}
%h2 Fork RubyFiddle!
%p.lead What does this mean?
%p In Github, forking is a way that you can build upon someone else's code.
%p Once the project you have forked the code, you can update it from that point on.
%a.close-reveal-modal &#215;

#security.reveal-modal
#security.reveal-modal{"data-reveal" => ""}
%h2 Security Concerns?
%p.lead RubyFiddle grew up a little bit on June 14, 2012.
%p We execute in a restricted environment on Heroku and unfortunately, system calls and Ruby classes cause problems.
Expand All @@ -34,7 +34,7 @@
%p Due to such security concerns, we had to disable things like #{link_to "re-opening a class (String)", "http://rubyfiddle.com/riddles/50c9b/2"}
%a.close-reveal-modal &#215;
#preferences.reveal-modal
#preferences.reveal-modal{"data-reveal" => ""}
%h2 Preferences
.alert-box.alert-info
Currently Upgrading to JRuby. You may expect a bit of turbulence!
Expand Down
3 changes: 3 additions & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
=render partial: "layouts/flash"
.container
=yield

:javascript
$(document).foundation();

0 comments on commit 9b6306c

Please sign in to comment.