Skip to content
Browse files

removed haml, and adjusted object notation to support ruby 1.8.7 as well

  • Loading branch information...
1 parent e1cc694 commit fda1545ccbc13b865247affc00cbb9e87402d815 @jejacks0n jejacks0n committed Jun 24, 2011
Showing with 643 additions and 608 deletions.
  1. +3 −4 Gemfile
  2. +0 −2 Gemfile.lock
  3. +1 −1 app/assets/javascripts/mercury/regions/editable.js.coffee
  4. +4 −4 app/controllers/mercury_controller.rb
  5. +2 −2 app/models/image.rb
  6. +14 −0 app/views/layouts/mercury.html.erb
  7. +0 −8 app/views/layouts/mercury.html.haml
  8. +253 −0 app/views/mercury/modals/character.html.erb
  9. +0 −252 app/views/mercury/modals/character.html.haml
  10. +11 −0 app/views/mercury/modals/htmleditor.html.erb
  11. +0 −8 app/views/mercury/modals/htmleditor.html.haml
  12. +40 −0 app/views/mercury/modals/link.html.erb
  13. +0 −31 app/views/mercury/modals/link.html.haml
  14. +43 −0 app/views/mercury/modals/media.html.erb
  15. +0 −33 app/views/mercury/modals/media.html.haml
  16. +5 −0 app/views/mercury/modals/sanitizer.html.erb
  17. +0 −4 app/views/mercury/modals/sanitizer.html.haml
  18. +66 −0 app/views/mercury/modals/table.html.erb
  19. +0 −49 app/views/mercury/modals/table.html.haml
  20. +73 −0 app/views/mercury/palettes/backcolor.html.erb
  21. +0 −79 app/views/mercury/palettes/backcolor.html.haml
  22. +73 −0 app/views/mercury/palettes/forecolor.html.erb
  23. +0 −79 app/views/mercury/palettes/forecolor.html.haml
  24. 0 app/views/mercury/panels/{notes.html.haml → history.html.erb}
  25. 0 app/views/mercury/panels/{history.html.haml → notes.html.erb}
  26. +12 −0 app/views/mercury/panels/snippets.html.erb
  27. +0 −10 app/views/mercury/panels/snippets.html.haml
  28. +11 −0 app/views/mercury/selects/formatblock.html.erb
  29. +0 −10 app/views/mercury/selects/formatblock.html.haml
  30. +5 −0 app/views/mercury/selects/style.html.erb
  31. +0 −4 app/views/mercury/selects/style.html.haml
  32. +1 −0 app/views/mercury/snippets/example.html.erb
  33. +0 −2 app/views/mercury/snippets/example.html.haml
  34. +23 −0 app/views/mercury/snippets/example_options.html.erb
  35. +0 −18 app/views/mercury/snippets/example_options.html.haml
  36. +2 −0 config/application.rb
  37. +0 −7 config/initializers/secret_token.rb
  38. +1 −1 config/routes.rb
View
7 Gemfile
@@ -4,22 +4,21 @@ gem 'rails', '3.1.0.rc4'
# Assets and forms
gem 'paperclip'
-gem 'formtastic', git: 'git://github.com/justinfrench/formtastic.git'
+gem 'formtastic', :git => 'git://github.com/justinfrench/formtastic.git'
# Asset template engines
gem 'json'
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
-gem 'haml'
group :development, :test do
gem 'uglifier'
gem 'jquery-rails'
gem 'jeweler'
gem 'sqlite3'
gem 'thin'
- gem 'ruby-debug19', require: 'ruby-debug'
- gem 'evergreen', git: 'git://github.com/jnicklas/evergreen.git', submodules: true, require: 'evergreen/rails'
+ gem 'ruby-debug19', :require => 'ruby-debug'
+ gem 'evergreen', :git => 'git://github.com/jnicklas/evergreen.git', :submodules => true, :require => 'evergreen/rails'
end
group :test do
View
2 Gemfile.lock
@@ -96,7 +96,6 @@ GEM
gherkin (2.4.0)
json (>= 1.4.6)
git (1.2.5)
- haml (3.1.2)
hike (1.1.0)
i18n (0.6.0)
jeweler (1.6.2)
@@ -207,7 +206,6 @@ DEPENDENCIES
database_cleaner
evergreen!
formtastic!
- haml
jeweler
jquery-rails
json
View
2 app/assets/javascripts/mercury/regions/editable.js.coffee
@@ -18,7 +18,7 @@ class @Mercury.Regions.Editable extends Mercury.Region
@specialContainer = jQuery.browser.mozilla && @element.get(0).tagName != 'DIV'
# make it editable
- # gecko: in this makes double clicking in textareas fail: https://bugzilla.mozilla.org/show_bug.cgi?id=490367
+ # mozilla: this makes double clicking in textareas fail: https://bugzilla.mozilla.org/show_bug.cgi?id=490367
@element.get(0).contentEditable = true
# make all snippets not editable, and set their versions to 1
View
8 app/controllers/mercury_controller.rb
@@ -2,19 +2,19 @@ class MercuryController < ActionController::Base
protect_from_forgery
def edit
- render text: '', layout: 'mercury'
+ render :text => '', :layout => 'mercury'
end
def resource
- render action: "/#{params[:type]}/#{params[:resource]}", layout: false
+ render :action => "/#{params[:type]}/#{params[:resource]}", :layout => false
end
def snippet_options
- render action: "/snippets/#{params[:name]}_options", layout: false
+ render :action => "/snippets/#{params[:name]}_options", :layout => false
end
def snippet_preview
- render action: "/snippets/#{params[:name]}", layout: false
+ render :action => "/snippets/#{params[:name]}", :layout => false
end
end
View
4 app/models/image.rb
@@ -1,8 +1,8 @@
class Image < ActiveRecord::Base
- has_attached_file :image, styles: { medium: "300x300>", thumb: "100x100>" }
+ has_attached_file :image, :styles => { :medium => "300x300>", :thumb => "100x100>" }
- delegate :url, to: :image
+ delegate :url, :to => :image
def serializable_hash(options = nil)
options ||= {}
View
14 app/views/layouts/mercury.html.erb
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <%= csrf_meta_tags %>
+ <title>Mercury Editor</title>
+ <link href="/assets/mercury.css" media="screen" rel="stylesheet" type="text/css" />
+ <script src="/assets/mercury.js" type="text/javascript"></script>
+ </head>
+ <body>
+ <script type="text/javascript">
+ new Mercury.PageEditor()
+ </script>
+ </body>
+</html>
View
8 app/views/layouts/mercury.html.haml
@@ -1,8 +0,0 @@
-!!!
-%html
- %head
- %title Mercury Editor
- = csrf_meta_tags
- = stylesheet_link_tag "mercury"
- = javascript_include_tag "mercury"
- %body= javascript_tag 'new Mercury.PageEditor()'
View
253 app/views/mercury/modals/character.html.erb
@@ -0,0 +1,253 @@
+<form id="mercury_insertCharacter" style="width:456px">
+ <div class="mercury-modal-pane-container">
+ <div class="mercury-modal-pane">
+ <div class="character" data-entity="#34" title="quotation mark (APL quote)">&#34;</div>
+ <div class="character" data-entity="#38" title="ampersand">&#38;</div>
+ <div class="character" data-entity="#60" title="less-than sign">&#60;</div>
+ <div class="character" data-entity="#62" title="greater-than sign">&#62;</div>
+ <div class="character" data-entity="#710" title="modifier letter circumflex accent">&#710;</div>
+ <div class="character" data-entity="#732" title="small tilde">&#732;</div>
+ <div class="character" data-entity="#160" title="non-breaking space">&#160;</div>
+ <div class="character" data-entity="#8194" title="en space">&#8194;</div>
+ <div class="character" data-entity="#8195" title="em space">&#8195;</div>
+ <div class="character" data-entity="#8201" title="thin space">&#8201;</div>
+ <div class="character" data-entity="#8211" title="en dash">&#8211;</div>
+ <div class="character" data-entity="#8212" title="em dash">&#8212;</div>
+ <div class="character" data-entity="#8216" title="left single quotation mark">&#8216;</div>
+ <div class="character" data-entity="#8217" title="right single quotation mark">&#8217;</div>
+ <div class="character" data-entity="#8218" title="single low-9 quotation mark">&#8218;</div>
+ <div class="character" data-entity="#8220" title="left double quotation mark">&#8220;</div>
+ <div class="character" data-entity="#8221" title="right double quotation mark">&#8221;</div>
+ <div class="character" data-entity="#8222" title="double low-9 quotation mark">&#8222;</div>
+ <div class="character" data-entity="#8224" title="dagger">&#8224;</div>
+ <div class="character" data-entity="#8225" title="double dagger">&#8225;</div>
+ <div class="character" data-entity="#8240" title="per mille sign">&#8240;</div>
+ <div class="character" data-entity="#8249" title="single left-pointing angle quotation mark">&#8249;</div>
+ <div class="character" data-entity="#8250" title="single right-pointing angle quotation mark">&#8250;</div>
+ <div class="character" data-entity="#161" title="inverted exclamation mark">&#161;</div>
+ <div class="character" data-entity="#162" title="cent sign">&#162;</div>
+ <div class="character" data-entity="#163" title="pound sign">&#163;</div>
+ <div class="character" data-entity="#164" title="currency sign">&#164;</div>
+ <div class="character" data-entity="#165" title="yen sign">&#165;</div>
+ <div class="character" data-entity="#166" title="broken bar">&#166;</div>
+ <div class="character" data-entity="#167" title="section sign">&#167;</div>
+ <div class="character" data-entity="#168" title="spacing diaeresis">&#168;</div>
+ <div class="character" data-entity="#169" title="copyright sign">&#169;</div>
+ <div class="character" data-entity="#170" title="feminine ordinal indicator">&#170;</div>
+ <div class="character" data-entity="#186" title="masculine ordinal indicator">&#186;</div>
+ <div class="character" data-entity="#171" title="left pointing guillemet">&#171;</div>
+ <div class="character" data-entity="#172" title="not sign">&#172;</div>
+ <div class="character" data-entity="#174" title="registered trade mark sign">&#174;</div>
+ <div class="character" data-entity="#175" title="spacing macron">&#175;</div>
+ <div class="character" data-entity="#176" title="degree sign">&#176;</div>
+ <div class="character" data-entity="#177" title="plus-or-minus sign">&#177;</div>
+ <div class="character" data-entity="#185" title="superscript one">&#185;</div>
+ <div class="character" data-entity="#178" title="superscript digit two">&#178;</div>
+ <div class="character" data-entity="#179" title="superscript digit three">&#179;</div>
+ <div class="character" data-entity="#180" title="acute accent">&#180;</div>
+ <div class="character" data-entity="#181" title="micro sign">&#181;</div>
+ <div class="character" data-entity="#182" title="pilcrow sign">&#182;</div>
+ <div class="character" data-entity="#183" title="middle dot">&#183;</div>
+ <div class="character" data-entity="#184" title="cedilla">&#184;</div>
+ <div class="character" data-entity="#187" title="right-pointing double angle quotation mark">&#187;</div>
+ <div class="character" data-entity="#188" title="fraction one quarter">&#188;</div>
+ <div class="character" data-entity="#189" title="fraction one half">&#189;</div>
+ <div class="character" data-entity="#190" title="fraction three quarters">&#190;</div>
+ <div class="character" data-entity="#191" title="inverted question mark">&#191;</div>
+ <div class="character" data-entity="#215" title="multiplication sign">&#215;</div>
+ <div class="character" data-entity="#247" title="division sign">&#247;</div>
+ <div class="character" data-entity="#192" title="latin capital letter A with grave">&#192;</div>
+ <div class="character" data-entity="#224" title="latin small letter a with grave">&#224;</div>
+ <div class="character" data-entity="#193" title="latin capital letter A with acute">&#193;</div>
+ <div class="character" data-entity="#225" title="latin small letter a with acute">&#225;</div>
+ <div class="character" data-entity="#194" title="latin capital letter A with circumflex">&#194;</div>
+ <div class="character" data-entity="#226" title="latin small letter a with circumflex">&#226;</div>
+ <div class="character" data-entity="#195" title="latin capital letter A with tilde">&#195;</div>
+ <div class="character" data-entity="#227" title="latin small letter a with tilde">&#227;</div>
+ <div class="character" data-entity="#196" title="latin capital letter A with diaeresis">&#196;</div>
+ <div class="character" data-entity="#228" title="latin small letter a with diaeresis">&#228;</div>
+ <div class="character" data-entity="#197" title="latin capital letter A with ring above">&#197;</div>
+ <div class="character" data-entity="#229" title="latin small letter a with ring above">&#229;</div>
+ <div class="character" data-entity="#200" title="latin capital letter E with grave">&#200;</div>
+ <div class="character" data-entity="#232" title="latin small letter e with grave">&#232;</div>
+ <div class="character" data-entity="#201" title="latin capital letter E with acute">&#201;</div>
+ <div class="character" data-entity="#233" title="latin small letter e with acute">&#233;</div>
+ <div class="character" data-entity="#202" title="latin capital letter E with circumflex">&#202;</div>
+ <div class="character" data-entity="#234" title="latin small letter e with circumflex">&#234;</div>
+ <div class="character" data-entity="#203" title="latin capital letter E with diaeresis">&#203;</div>
+ <div class="character" data-entity="#235" title="latin small letter e with diaeresis">&#235;</div>
+ <div class="character" data-entity="#204" title="latin capital letter I with grave">&#204;</div>
+ <div class="character" data-entity="#236" title="latin small letter i with grave">&#236;</div>
+ <div class="character" data-entity="#205" title="latin capital letter I with acute">&#205;</div>
+ <div class="character" data-entity="#237" title="latin small letter i with acute">&#237;</div>
+ <div class="character" data-entity="#206" title="latin capital letter I with circumflex">&#206;</div>
+ <div class="character" data-entity="#238" title="latin small letter i with circumflex">&#238;</div>
+ <div class="character" data-entity="#207" title="latin capital letter I with diaeresis">&#207;</div>
+ <div class="character" data-entity="#239" title="latin small letter i with diaeresis">&#239;</div>
+ <div class="character" data-entity="#210" title="latin capital letter O with grave">&#210;</div>
+ <div class="character" data-entity="#242" title="latin small letter o with grave">&#242;</div>
+ <div class="character" data-entity="#211" title="latin capital letter O with acute">&#211;</div>
+ <div class="character" data-entity="#243" title="latin small letter o with acute">&#243;</div>
+ <div class="character" data-entity="#212" title="latin capital letter O with circumflex">&#212;</div>
+ <div class="character" data-entity="#244" title="latin small letter o with circumflex">&#244;</div>
+ <div class="character" data-entity="#213" title="latin capital letter O with tilde">&#213;</div>
+ <div class="character" data-entity="#245" title="latin small letter o with tilde">&#245;</div>
+ <div class="character" data-entity="#214" title="latin capital letter O with diaeresis">&#214;</div>
+ <div class="character" data-entity="#246" title="latin small letter o with diaeresis">&#246;</div>
+ <div class="character" data-entity="#216" title="latin capital letter O with stroke">&#216;</div>
+ <div class="character" data-entity="#248" title="latin small letter o with stroke">&#248;</div>
+ <div class="character" data-entity="#217" title="latin capital letter U with grave">&#217;</div>
+ <div class="character" data-entity="#249" title="latin small letter u with grave">&#249;</div>
+ <div class="character" data-entity="#218" title="latin capital letter U with acute">&#218;</div>
+ <div class="character" data-entity="#250" title="latin small letter u with acute">&#250;</div>
+ <div class="character" data-entity="#219" title="latin capital letter U with circumflex">&#219;</div>
+ <div class="character" data-entity="#251" title="latin small letter u with circumflex">&#251;</div>
+ <div class="character" data-entity="#220" title="latin capital letter U with diaeresis">&#220;</div>
+ <div class="character" data-entity="#252" title="latin small letter u with diaeresis">&#252;</div>
+ <div class="character" data-entity="#221" title="latin capital letter Y with acute">&#221;</div>
+ <div class="character" data-entity="#253" title="latin small letter y with acute">&#253;</div>
+ <div class="character" data-entity="#376" title="latin capital letter Y with diaeresis">&#376;</div>
+ <div class="character" data-entity="#255" title="latin small letter y with diaeresis">&#255;</div>
+ <div class="character" data-entity="#198" title="latin capital ligature AE">&#198;</div>
+ <div class="character" data-entity="#230" title="latin small ligature ae">&#230;</div>
+ <div class="character" data-entity="#338" title="latin capital ligature OE">&#338;</div>
+ <div class="character" data-entity="#339" title="latin small ligature oe">&#339;</div>
+ <div class="character" data-entity="#352" title="latin capital letter S with caron">&#352;</div>
+ <div class="character" data-entity="#353" title="latin small letter s with caron">&#353;</div>
+ <div class="character" data-entity="#199" title="latin capital letter C with cedilla">&#199;</div>
+ <div class="character" data-entity="#231" title="latin small letter c with cedilla">&#231;</div>
+ <div class="character" data-entity="#208" title="latin capital letter ETH">&#208;</div>
+ <div class="character" data-entity="#240" title="latin small letter eth">&#240;</div>
+ <div class="character" data-entity="#209" title="latin capital letter N with tilde">&#209;</div>
+ <div class="character" data-entity="#241" title="latin small letter n with tilde">&#241;</div>
+ <div class="character" data-entity="#222" title="latin capital letter THORN">&#222;</div>
+ <div class="character" data-entity="#254" title="latin small letter thorn">&#254;</div>
+ <div class="character" data-entity="#223" title="latin small letter sharp s (ess-zed)">&#223;</div>
+ <div class="character" data-entity="#402" title="latin small f with hook (function)">&#402;</div>
+ <div class="character" data-entity="#913" title="greek capital letter alpha">&#913;</div>
+ <div class="character" data-entity="#914" title="greek capital letter beta">&#914;</div>
+ <div class="character" data-entity="#915" title="greek capital letter gamma">&#915;</div>
+ <div class="character" data-entity="#916" title="greek capital letter delta">&#916;</div>
+ <div class="character" data-entity="#917" title="greek capital letter epsilon">&#917;</div>
+ <div class="character" data-entity="#918" title="greek capital letter zeta">&#918;</div>
+ <div class="character" data-entity="#919" title="greek capital letter eta">&#919;</div>
+ <div class="character" data-entity="#920" title="greek capital letter theta">&#920;</div>
+ <div class="character" data-entity="#921" title="greek capital letter iota">&#921;</div>
+ <div class="character" data-entity="#922" title="greek capital letter kappa">&#922;</div>
+ <div class="character" data-entity="#923" title="greek capital letter lambda">&#923;</div>
+ <div class="character" data-entity="#924" title="greek capital letter mu">&#924;</div>
+ <div class="character" data-entity="#925" title="greek capital letter nu">&#925;</div>
+ <div class="character" data-entity="#926" title="greek capital letter xi">&#926;</div>
+ <div class="character" data-entity="#927" title="greek capital letter omicron">&#927;</div>
+ <div class="character" data-entity="#928" title="greek capital letter pi">&#928;</div>
+ <div class="character" data-entity="#929" title="greek capital letter rho">&#929;</div>
+ <div class="character" data-entity="#931" title="greek capital letter sigma">&#931;</div>
+ <div class="character" data-entity="#932" title="greek capital letter tau">&#932;</div>
+ <div class="character" data-entity="#933" title="greek capital letter upsilon">&#933;</div>
+ <div class="character" data-entity="#934" title="greek capital letter phi">&#934;</div>
+ <div class="character" data-entity="#935" title="greek capital letter chi">&#935;</div>
+ <div class="character" data-entity="#936" title="greek capital letter psi">&#936;</div>
+ <div class="character" data-entity="#937" title="greek capital letter omega">&#937;</div>
+ <div class="character" data-entity="#945" title="greek small letter alpha">&#945;</div>
+ <div class="character" data-entity="#946" title="greek small letter beta">&#946;</div>
+ <div class="character" data-entity="#947" title="greek small letter gamma">&#947;</div>
+ <div class="character" data-entity="#948" title="greek small letter delta">&#948;</div>
+ <div class="character" data-entity="#949" title="greek small letter epsilon">&#949;</div>
+ <div class="character" data-entity="#950" title="greek small letter zeta">&#950;</div>
+ <div class="character" data-entity="#951" title="greek small letter eta">&#951;</div>
+ <div class="character" data-entity="#952" title="greek small letter theta">&#952;</div>
+ <div class="character" data-entity="#953" title="greek small letter iota">&#953;</div>
+ <div class="character" data-entity="#954" title="greek small letter kappa">&#954;</div>
+ <div class="character" data-entity="#955" title="greek small letter lambda">&#955;</div>
+ <div class="character" data-entity="#956" title="greek small letter mu">&#956;</div>
+ <div class="character" data-entity="#957" title="greek small letter nu">&#957;</div>
+ <div class="character" data-entity="#958" title="greek small letter xi">&#958;</div>
+ <div class="character" data-entity="#959" title="greek small letter omicron">&#959;</div>
+ <div class="character" data-entity="#960" title="greek small letter pi">&#960;</div>
+ <div class="character" data-entity="#961" title="greek small letter rho">&#961;</div>
+ <div class="character" data-entity="#962" title="greek small letter final sigma">&#962;</div>
+ <div class="character" data-entity="#963" title="greek small letter sigma">&#963;</div>
+ <div class="character" data-entity="#964" title="greek small letter tau">&#964;</div>
+ <div class="character" data-entity="#965" title="greek small letter upsilon">&#965;</div>
+ <div class="character" data-entity="#966" title="greek small letter phi">&#966;</div>
+ <div class="character" data-entity="#967" title="greek small letter chi">&#967;</div>
+ <div class="character" data-entity="#968" title="greek small letter psi">&#968;</div>
+ <div class="character" data-entity="#969" title="greek small letter omega">&#969;</div>
+ <div class="character" data-entity="#977" title="greek small letter theta symbol">&#977;</div>
+ <div class="character" data-entity="#978" title="greek upsilon with hook symbol">&#978;</div>
+ <div class="character" data-entity="#982" title="greek pi symbol">&#982;</div>
+ <div class="character" data-entity="#8226" title="bullet (black small circle)">&#8226;</div>
+ <div class="character" data-entity="#8230" title="horizontal ellipsis">&#8230;</div>
+ <div class="character" data-entity="#8242" title="prime (minutes/feet)">&#8242;</div>
+ <div class="character" data-entity="#8243" title="double prime (seconds/inches)">&#8243;</div>
+ <div class="character" data-entity="#8254" title="overline">&#8254;</div>
+ <div class="character" data-entity="#8260" title="fraction slash">&#8260;</div>
+ <div class="character" data-entity="#8472" title="Weierstrass p">&#8472;</div>
+ <div class="character" data-entity="#8465" title="imaginary part">&#8465;</div>
+ <div class="character" data-entity="#8476" title="real part symbol">&#8476;</div>
+ <div class="character" data-entity="#8482" title="trade mark sign">&#8482;</div>
+ <div class="character" data-entity="#8501" title="first transfinite cardinal">&#8501;</div>
+ <div class="character" data-entity="#8592" title="leftwards arrow">&#8592;</div>
+ <div class="character" data-entity="#8593" title="upwards arrow">&#8593;</div>
+ <div class="character" data-entity="#8594" title="rightwards arrow">&#8594;</div>
+ <div class="character" data-entity="#8595" title="downwards arrow">&#8595;</div>
+ <div class="character" data-entity="#8596" title="left right arrow">&#8596;</div>
+ <div class="character" data-entity="#8629" title="downwards arrow with corner leftwards">&#8629;</div>
+ <div class="character" data-entity="#8656" title="leftwards double arrow">&#8656;</div>
+ <div class="character" data-entity="#8657" title="upwards double arrow">&#8657;</div>
+ <div class="character" data-entity="#8658" title="rightwards double arrow">&#8658;</div>
+ <div class="character" data-entity="#8659" title="downwards double arrow">&#8659;</div>
+ <div class="character" data-entity="#8660" title="left right double arrow">&#8660;</div>
+ <div class="character" data-entity="#8704" title="for all">&#8704;</div>
+ <div class="character" data-entity="#8706" title="partial differential">&#8706;</div>
+ <div class="character" data-entity="#8707" title="there exists">&#8707;</div>
+ <div class="character" data-entity="#8709" title="empty set (null set/diameter)">&#8709;</div>
+ <div class="character" data-entity="#8711" title="nabla (backward difference)">&#8711;</div>
+ <div class="character" data-entity="#8712" title="element of">&#8712;</div>
+ <div class="character" data-entity="#8713" title="not an element of">&#8713;</div>
+ <div class="character" data-entity="#8715" title="contains as member">&#8715;</div>
+ <div class="character" data-entity="#8719" title="n-ary product (product sign)">&#8719;</div>
+ <div class="character" data-entity="#8721" title="n-ary sumation">&#8721;</div>
+ <div class="character" data-entity="#8722" title="minus sign">&#8722;</div>
+ <div class="character" data-entity="#8727" title="asterisk operator">&#8727;</div>
+ <div class="character" data-entity="#8730" title="square root (radical sign)">&#8730;</div>
+ <div class="character" data-entity="#8733" title="proportional to">&#8733;</div>
+ <div class="character" data-entity="#8734" title="infinity">&#8734;</div>
+ <div class="character" data-entity="#8736" title="angle">&#8736;</div>
+ <div class="character" data-entity="#8743" title="logical and (wedge)">&#8743;</div>
+ <div class="character" data-entity="#8744" title="logical or (vee)">&#8744;</div>
+ <div class="character" data-entity="#8745" title="intersection (cap)">&#8745;</div>
+ <div class="character" data-entity="#8746" title="union (cup)">&#8746;</div>
+ <div class="character" data-entity="#8747" title="integral">&#8747;</div>
+ <div class="character" data-entity="#8756" title="therefore">&#8756;</div>
+ <div class="character" data-entity="#8764" title="tilde operator (varies with/similar to)">&#8764;</div>
+ <div class="character" data-entity="#8773" title="approximately equal to">&#8773;</div>
+ <div class="character" data-entity="#8776" title="almost equal to (asymptotic to)">&#8776;</div>
+ <div class="character" data-entity="#8800" title="not equal to">&#8800;</div>
+ <div class="character" data-entity="#8801" title="identical to">&#8801;</div>
+ <div class="character" data-entity="#8804" title="less-than or equal to">&#8804;</div>
+ <div class="character" data-entity="#8805" title="greater-than or equal to">&#8805;</div>
+ <div class="character" data-entity="#8834" title="subset of">&#8834;</div>
+ <div class="character" data-entity="#8835" title="superset of">&#8835;</div>
+ <div class="character" data-entity="#8836" title="not a subset of">&#8836;</div>
+ <div class="character" data-entity="#8838" title="subset of or equal to">&#8838;</div>
+ <div class="character" data-entity="#8839" title="superset of or equal to">&#8839;</div>
+ <div class="character" data-entity="#8853" title="circled plus (direct sum)">&#8853;</div>
+ <div class="character" data-entity="#8855" title="circled times (vector product)">&#8855;</div>
+ <div class="character" data-entity="#8869" title="up tack (orthogonal to/perpendicular)">&#8869;</div>
+ <div class="character" data-entity="#8901" title="dot operator">&#8901;</div>
+ <div class="character" data-entity="#8968" title="left ceiling (apl upstile)">&#8968;</div>
+ <div class="character" data-entity="#8969" title="right ceiling">&#8969;</div>
+ <div class="character" data-entity="#8970" title="left floor (apl downstile)">&#8970;</div>
+ <div class="character" data-entity="#8971" title="right floor">&#8971;</div>
+ <div class="character" data-entity="#9001" title="left-pointing angle bracket (bra)">&#9001;</div>
+ <div class="character" data-entity="#9002" title="right-pointing angle bracket (ket)">&#9002;</div>
+ <div class="character" data-entity="#9674" title="lozenge">&#9674;</div>
+ <div class="character" data-entity="#9824" title="black spade suit">&#9824;</div>
+ <div class="character" data-entity="#9827" title="black club suit (shamrock)">&#9827;</div>
+ <div class="character" data-entity="#9829" title="black heart suit (valentine)">&#9829;</div>
+ <div class="character" data-entity="#9830" title="black diamond suit">&#9830;</div>
+ <div class="character" data-entity="#x2603" title="snowman">&#x2603;</div>
+ </div>
+ </div>
+</form>
View
252 app/views/mercury/modals/character.html.haml
@@ -1,252 +0,0 @@
-%form#mercury_insertCharacter{ style: 'width:456px' }
-
- .mercury-modal-pane-container
- .mercury-modal-pane
-
- .character{ data: {entity: "#34"}, title: "quotation mark (APL quote)" } &#34;
- .character{ data: {entity: "#38"}, title: "ampersand" } &#38;
- .character{ data: {entity: "#60"}, title: "less-than sign" } &#60;
- .character{ data: {entity: "#62"}, title: "greater-than sign" } &#62;
- .character{ data: {entity: "#710"}, title: "modifier letter circumflex accent" } &#710;
- .character{ data: {entity: "#732"}, title: "small tilde" } &#732;
- .character{ data: {entity: "#160"}, title: "non-breaking space" } &#160;
- .character{ data: {entity: "#8194"}, title: "en space" } &#8194;
- .character{ data: {entity: "#8195"}, title: "em space" } &#8195;
- .character{ data: {entity: "#8201"}, title: "thin space" } &#8201;
- .character{ data: {entity: "#8211"}, title: "en dash" } &#8211;
- .character{ data: {entity: "#8212"}, title: "em dash" } &#8212;
- .character{ data: {entity: "#8216"}, title: "left single quotation mark" } &#8216;
- .character{ data: {entity: "#8217"}, title: "right single quotation mark" } &#8217;
- .character{ data: {entity: "#8218"}, title: "single low-9 quotation mark" } &#8218;
- .character{ data: {entity: "#8220"}, title: "left double quotation mark" } &#8220;
- .character{ data: {entity: "#8221"}, title: "right double quotation mark" } &#8221;
- .character{ data: {entity: "#8222"}, title: "double low-9 quotation mark" } &#8222;
- .character{ data: {entity: "#8224"}, title: "dagger" } &#8224;
- .character{ data: {entity: "#8225"}, title: "double dagger" } &#8225;
- .character{ data: {entity: "#8240"}, title: "per mille sign" } &#8240;
- .character{ data: {entity: "#8249"}, title: "single left-pointing angle quotation mark" } &#8249;
- .character{ data: {entity: "#8250"}, title: "single right-pointing angle quotation mark" } &#8250;
- .character{ data: {entity: "#161"}, title: "inverted exclamation mark" } &#161;
- .character{ data: {entity: "#162"}, title: "cent sign" } &#162;
- .character{ data: {entity: "#163"}, title: "pound sign" } &#163;
- .character{ data: {entity: "#164"}, title: "currency sign" } &#164;
- .character{ data: {entity: "#165"}, title: "yen sign" } &#165;
- .character{ data: {entity: "#166"}, title: "broken bar" } &#166;
- .character{ data: {entity: "#167"}, title: "section sign" } &#167;
- .character{ data: {entity: "#168"}, title: "spacing diaeresis" } &#168;
- .character{ data: {entity: "#169"}, title: "copyright sign" } &#169;
- .character{ data: {entity: "#170"}, title: "feminine ordinal indicator" } &#170;
- .character{ data: {entity: "#186"}, title: "masculine ordinal indicator" } &#186;
- .character{ data: {entity: "#171"}, title: "left pointing guillemet" } &#171;
- .character{ data: {entity: "#172"}, title: "not sign" } &#172;
- .character{ data: {entity: "#174"}, title: "registered trade mark sign" } &#174;
- .character{ data: {entity: "#175"}, title: "spacing macron" } &#175;
- .character{ data: {entity: "#176"}, title: "degree sign" } &#176;
- .character{ data: {entity: "#177"}, title: "plus-or-minus sign" } &#177;
- .character{ data: {entity: "#185"}, title: "superscript one" } &#185;
- .character{ data: {entity: "#178"}, title: "superscript digit two" } &#178;
- .character{ data: {entity: "#179"}, title: "superscript digit three" } &#179;
- .character{ data: {entity: "#180"}, title: "acute accent" } &#180;
- .character{ data: {entity: "#181"}, title: "micro sign" } &#181;
- .character{ data: {entity: "#182"}, title: "pilcrow sign" } &#182;
- .character{ data: {entity: "#183"}, title: "middle dot" } &#183;
- .character{ data: {entity: "#184"}, title: "cedilla" } &#184;
- .character{ data: {entity: "#187"}, title: "right-pointing double angle quotation mark" } &#187;
- .character{ data: {entity: "#188"}, title: "fraction one quarter" } &#188;
- .character{ data: {entity: "#189"}, title: "fraction one half" } &#189;
- .character{ data: {entity: "#190"}, title: "fraction three quarters" } &#190;
- .character{ data: {entity: "#191"}, title: "inverted question mark" } &#191;
- .character{ data: {entity: "#215"}, title: "multiplication sign" } &#215;
- .character{ data: {entity: "#247"}, title: "division sign" } &#247;
- .character{ data: {entity: "#192"}, title: "latin capital letter A with grave" } &#192;
- .character{ data: {entity: "#224"}, title: "latin small letter a with grave" } &#224;
- .character{ data: {entity: "#193"}, title: "latin capital letter A with acute" } &#193;
- .character{ data: {entity: "#225"}, title: "latin small letter a with acute" } &#225;
- .character{ data: {entity: "#194"}, title: "latin capital letter A with circumflex" } &#194;
- .character{ data: {entity: "#226"}, title: "latin small letter a with circumflex" } &#226;
- .character{ data: {entity: "#195"}, title: "latin capital letter A with tilde" } &#195;
- .character{ data: {entity: "#227"}, title: "latin small letter a with tilde" } &#227;
- .character{ data: {entity: "#196"}, title: "latin capital letter A with diaeresis" } &#196;
- .character{ data: {entity: "#228"}, title: "latin small letter a with diaeresis" } &#228;
- .character{ data: {entity: "#197"}, title: "latin capital letter A with ring above" } &#197;
- .character{ data: {entity: "#229"}, title: "latin small letter a with ring above" } &#229;
- .character{ data: {entity: "#200"}, title: "latin capital letter E with grave" } &#200;
- .character{ data: {entity: "#232"}, title: "latin small letter e with grave" } &#232;
- .character{ data: {entity: "#201"}, title: "latin capital letter E with acute" } &#201;
- .character{ data: {entity: "#233"}, title: "latin small letter e with acute" } &#233;
- .character{ data: {entity: "#202"}, title: "latin capital letter E with circumflex" } &#202;
- .character{ data: {entity: "#234"}, title: "latin small letter e with circumflex" } &#234;
- .character{ data: {entity: "#203"}, title: "latin capital letter E with diaeresis" } &#203;
- .character{ data: {entity: "#235"}, title: "latin small letter e with diaeresis" } &#235;
- .character{ data: {entity: "#204"}, title: "latin capital letter I with grave" } &#204;
- .character{ data: {entity: "#236"}, title: "latin small letter i with grave" } &#236;
- .character{ data: {entity: "#205"}, title: "latin capital letter I with acute" } &#205;
- .character{ data: {entity: "#237"}, title: "latin small letter i with acute" } &#237;
- .character{ data: {entity: "#206"}, title: "latin capital letter I with circumflex" } &#206;
- .character{ data: {entity: "#238"}, title: "latin small letter i with circumflex" } &#238;
- .character{ data: {entity: "#207"}, title: "latin capital letter I with diaeresis" } &#207;
- .character{ data: {entity: "#239"}, title: "latin small letter i with diaeresis" } &#239;
- .character{ data: {entity: "#210"}, title: "latin capital letter O with grave" } &#210;
- .character{ data: {entity: "#242"}, title: "latin small letter o with grave" } &#242;
- .character{ data: {entity: "#211"}, title: "latin capital letter O with acute" } &#211;
- .character{ data: {entity: "#243"}, title: "latin small letter o with acute" } &#243;
- .character{ data: {entity: "#212"}, title: "latin capital letter O with circumflex" } &#212;
- .character{ data: {entity: "#244"}, title: "latin small letter o with circumflex" } &#244;
- .character{ data: {entity: "#213"}, title: "latin capital letter O with tilde" } &#213;
- .character{ data: {entity: "#245"}, title: "latin small letter o with tilde" } &#245;
- .character{ data: {entity: "#214"}, title: "latin capital letter O with diaeresis" } &#214;
- .character{ data: {entity: "#246"}, title: "latin small letter o with diaeresis" } &#246;
- .character{ data: {entity: "#216"}, title: "latin capital letter O with stroke" } &#216;
- .character{ data: {entity: "#248"}, title: "latin small letter o with stroke" } &#248;
- .character{ data: {entity: "#217"}, title: "latin capital letter U with grave" } &#217;
- .character{ data: {entity: "#249"}, title: "latin small letter u with grave" } &#249;
- .character{ data: {entity: "#218"}, title: "latin capital letter U with acute" } &#218;
- .character{ data: {entity: "#250"}, title: "latin small letter u with acute" } &#250;
- .character{ data: {entity: "#219"}, title: "latin capital letter U with circumflex" } &#219;
- .character{ data: {entity: "#251"}, title: "latin small letter u with circumflex" } &#251;
- .character{ data: {entity: "#220"}, title: "latin capital letter U with diaeresis" } &#220;
- .character{ data: {entity: "#252"}, title: "latin small letter u with diaeresis" } &#252;
- .character{ data: {entity: "#221"}, title: "latin capital letter Y with acute" } &#221;
- .character{ data: {entity: "#253"}, title: "latin small letter y with acute" } &#253;
- .character{ data: {entity: "#376"}, title: "latin capital letter Y with diaeresis" } &#376;
- .character{ data: {entity: "#255"}, title: "latin small letter y with diaeresis" } &#255;
- .character{ data: {entity: "#198"}, title: "latin capital ligature AE" } &#198;
- .character{ data: {entity: "#230"}, title: "latin small ligature ae" } &#230;
- .character{ data: {entity: "#338"}, title: "latin capital ligature OE" } &#338;
- .character{ data: {entity: "#339"}, title: "latin small ligature oe" } &#339;
- .character{ data: {entity: "#352"}, title: "latin capital letter S with caron" } &#352;
- .character{ data: {entity: "#353"}, title: "latin small letter s with caron" } &#353;
- .character{ data: {entity: "#199"}, title: "latin capital letter C with cedilla" } &#199;
- .character{ data: {entity: "#231"}, title: "latin small letter c with cedilla" } &#231;
- .character{ data: {entity: "#208"}, title: "latin capital letter ETH" } &#208;
- .character{ data: {entity: "#240"}, title: "latin small letter eth" } &#240;
- .character{ data: {entity: "#209"}, title: "latin capital letter N with tilde" } &#209;
- .character{ data: {entity: "#241"}, title: "latin small letter n with tilde" } &#241;
- .character{ data: {entity: "#222"}, title: "latin capital letter THORN" } &#222;
- .character{ data: {entity: "#254"}, title: "latin small letter thorn" } &#254;
- .character{ data: {entity: "#223"}, title: "latin small letter sharp s (ess-zed)" } &#223;
- .character{ data: {entity: "#402"}, title: "latin small f with hook (function)" } &#402;
- .character{ data: {entity: "#913"}, title: "greek capital letter alpha" } &#913;
- .character{ data: {entity: "#914"}, title: "greek capital letter beta" } &#914;
- .character{ data: {entity: "#915"}, title: "greek capital letter gamma" } &#915;
- .character{ data: {entity: "#916"}, title: "greek capital letter delta" } &#916;
- .character{ data: {entity: "#917"}, title: "greek capital letter epsilon" } &#917;
- .character{ data: {entity: "#918"}, title: "greek capital letter zeta" } &#918;
- .character{ data: {entity: "#919"}, title: "greek capital letter eta" } &#919;
- .character{ data: {entity: "#920"}, title: "greek capital letter theta" } &#920;
- .character{ data: {entity: "#921"}, title: "greek capital letter iota" } &#921;
- .character{ data: {entity: "#922"}, title: "greek capital letter kappa" } &#922;
- .character{ data: {entity: "#923"}, title: "greek capital letter lambda" } &#923;
- .character{ data: {entity: "#924"}, title: "greek capital letter mu" } &#924;
- .character{ data: {entity: "#925"}, title: "greek capital letter nu" } &#925;
- .character{ data: {entity: "#926"}, title: "greek capital letter xi" } &#926;
- .character{ data: {entity: "#927"}, title: "greek capital letter omicron" } &#927;
- .character{ data: {entity: "#928"}, title: "greek capital letter pi" } &#928;
- .character{ data: {entity: "#929"}, title: "greek capital letter rho" } &#929;
- .character{ data: {entity: "#931"}, title: "greek capital letter sigma" } &#931;
- .character{ data: {entity: "#932"}, title: "greek capital letter tau" } &#932;
- .character{ data: {entity: "#933"}, title: "greek capital letter upsilon" } &#933;
- .character{ data: {entity: "#934"}, title: "greek capital letter phi" } &#934;
- .character{ data: {entity: "#935"}, title: "greek capital letter chi" } &#935;
- .character{ data: {entity: "#936"}, title: "greek capital letter psi" } &#936;
- .character{ data: {entity: "#937"}, title: "greek capital letter omega" } &#937;
- .character{ data: {entity: "#945"}, title: "greek small letter alpha" } &#945;
- .character{ data: {entity: "#946"}, title: "greek small letter beta" } &#946;
- .character{ data: {entity: "#947"}, title: "greek small letter gamma" } &#947;
- .character{ data: {entity: "#948"}, title: "greek small letter delta" } &#948;
- .character{ data: {entity: "#949"}, title: "greek small letter epsilon" } &#949;
- .character{ data: {entity: "#950"}, title: "greek small letter zeta" } &#950;
- .character{ data: {entity: "#951"}, title: "greek small letter eta" } &#951;
- .character{ data: {entity: "#952"}, title: "greek small letter theta" } &#952;
- .character{ data: {entity: "#953"}, title: "greek small letter iota" } &#953;
- .character{ data: {entity: "#954"}, title: "greek small letter kappa" } &#954;
- .character{ data: {entity: "#955"}, title: "greek small letter lambda" } &#955;
- .character{ data: {entity: "#956"}, title: "greek small letter mu" } &#956;
- .character{ data: {entity: "#957"}, title: "greek small letter nu" } &#957;
- .character{ data: {entity: "#958"}, title: "greek small letter xi" } &#958;
- .character{ data: {entity: "#959"}, title: "greek small letter omicron" } &#959;
- .character{ data: {entity: "#960"}, title: "greek small letter pi" } &#960;
- .character{ data: {entity: "#961"}, title: "greek small letter rho" } &#961;
- .character{ data: {entity: "#962"}, title: "greek small letter final sigma" } &#962;
- .character{ data: {entity: "#963"}, title: "greek small letter sigma" } &#963;
- .character{ data: {entity: "#964"}, title: "greek small letter tau" } &#964;
- .character{ data: {entity: "#965"}, title: "greek small letter upsilon" } &#965;
- .character{ data: {entity: "#966"}, title: "greek small letter phi" } &#966;
- .character{ data: {entity: "#967"}, title: "greek small letter chi" } &#967;
- .character{ data: {entity: "#968"}, title: "greek small letter psi" } &#968;
- .character{ data: {entity: "#969"}, title: "greek small letter omega" } &#969;
- .character{ data: {entity: "#977"}, title: "greek small letter theta symbol" } &#977;
- .character{ data: {entity: "#978"}, title: "greek upsilon with hook symbol" } &#978;
- .character{ data: {entity: "#982"}, title: "greek pi symbol" } &#982;
- .character{ data: {entity: "#8226"}, title: "bullet (black small circle)" } &#8226;
- .character{ data: {entity: "#8230"}, title: "horizontal ellipsis" } &#8230;
- .character{ data: {entity: "#8242"}, title: "prime (minutes/feet)" } &#8242;
- .character{ data: {entity: "#8243"}, title: "double prime (seconds/inches)" } &#8243;
- .character{ data: {entity: "#8254"}, title: "overline" } &#8254;
- .character{ data: {entity: "#8260"}, title: "fraction slash" } &#8260;
- .character{ data: {entity: "#8472"}, title: "Weierstrass p" } &#8472;
- .character{ data: {entity: "#8465"}, title: "imaginary part" } &#8465;
- .character{ data: {entity: "#8476"}, title: "real part symbol" } &#8476;
- .character{ data: {entity: "#8482"}, title: "trade mark sign" } &#8482;
- .character{ data: {entity: "#8501"}, title: "first transfinite cardinal" } &#8501;
- .character{ data: {entity: "#8592"}, title: "leftwards arrow" } &#8592;
- .character{ data: {entity: "#8593"}, title: "upwards arrow" } &#8593;
- .character{ data: {entity: "#8594"}, title: "rightwards arrow" } &#8594;
- .character{ data: {entity: "#8595"}, title: "downwards arrow" } &#8595;
- .character{ data: {entity: "#8596"}, title: "left right arrow" } &#8596;
- .character{ data: {entity: "#8629"}, title: "downwards arrow with corner leftwards" } &#8629;
- .character{ data: {entity: "#8656"}, title: "leftwards double arrow" } &#8656;
- .character{ data: {entity: "#8657"}, title: "upwards double arrow" } &#8657;
- .character{ data: {entity: "#8658"}, title: "rightwards double arrow" } &#8658;
- .character{ data: {entity: "#8659"}, title: "downwards double arrow" } &#8659;
- .character{ data: {entity: "#8660"}, title: "left right double arrow" } &#8660;
- .character{ data: {entity: "#8704"}, title: "for all" } &#8704;
- .character{ data: {entity: "#8706"}, title: "partial differential" } &#8706;
- .character{ data: {entity: "#8707"}, title: "there exists" } &#8707;
- .character{ data: {entity: "#8709"}, title: "empty set (null set/diameter)" } &#8709;
- .character{ data: {entity: "#8711"}, title: "nabla (backward difference)" } &#8711;
- .character{ data: {entity: "#8712"}, title: "element of" } &#8712;
- .character{ data: {entity: "#8713"}, title: "not an element of" } &#8713;
- .character{ data: {entity: "#8715"}, title: "contains as member" } &#8715;
- .character{ data: {entity: "#8719"}, title: "n-ary product (product sign)" } &#8719;
- .character{ data: {entity: "#8721"}, title: "n-ary sumation" } &#8721;
- .character{ data: {entity: "#8722"}, title: "minus sign" } &#8722;
- .character{ data: {entity: "#8727"}, title: "asterisk operator" } &#8727;
- .character{ data: {entity: "#8730"}, title: "square root (radical sign)" } &#8730;
- .character{ data: {entity: "#8733"}, title: "proportional to" } &#8733;
- .character{ data: {entity: "#8734"}, title: "infinity" } &#8734;
- .character{ data: {entity: "#8736"}, title: "angle" } &#8736;
- .character{ data: {entity: "#8743"}, title: "logical and (wedge)" } &#8743;
- .character{ data: {entity: "#8744"}, title: "logical or (vee)" } &#8744;
- .character{ data: {entity: "#8745"}, title: "intersection (cap)" } &#8745;
- .character{ data: {entity: "#8746"}, title: "union (cup)" } &#8746;
- .character{ data: {entity: "#8747"}, title: "integral" } &#8747;
- .character{ data: {entity: "#8756"}, title: "therefore" } &#8756;
- .character{ data: {entity: "#8764"}, title: "tilde operator (varies with/similar to)" } &#8764;
- .character{ data: {entity: "#8773"}, title: "approximately equal to" } &#8773;
- .character{ data: {entity: "#8776"}, title: "almost equal to (asymptotic to)" } &#8776;
- .character{ data: {entity: "#8800"}, title: "not equal to" } &#8800;
- .character{ data: {entity: "#8801"}, title: "identical to" } &#8801;
- .character{ data: {entity: "#8804"}, title: "less-than or equal to" } &#8804;
- .character{ data: {entity: "#8805"}, title: "greater-than or equal to" } &#8805;
- .character{ data: {entity: "#8834"}, title: "subset of" } &#8834;
- .character{ data: {entity: "#8835"}, title: "superset of" } &#8835;
- .character{ data: {entity: "#8836"}, title: "not a subset of" } &#8836;
- .character{ data: {entity: "#8838"}, title: "subset of or equal to" } &#8838;
- .character{ data: {entity: "#8839"}, title: "superset of or equal to" } &#8839;
- .character{ data: {entity: "#8853"}, title: "circled plus (direct sum)" } &#8853;
- .character{ data: {entity: "#8855"}, title: "circled times (vector product)" } &#8855;
- .character{ data: {entity: "#8869"}, title: "up tack (orthogonal to/perpendicular)" } &#8869;
- .character{ data: {entity: "#8901"}, title: "dot operator" } &#8901;
- .character{ data: {entity: "#8968"}, title: "left ceiling (apl upstile)" } &#8968;
- .character{ data: {entity: "#8969"}, title: "right ceiling" } &#8969;
- .character{ data: {entity: "#8970"}, title: "left floor (apl downstile)" } &#8970;
- .character{ data: {entity: "#8971"}, title: "right floor" } &#8971;
- .character{ data: {entity: "#9001"}, title: "left-pointing angle bracket (bra)" } &#9001;
- .character{ data: {entity: "#9002"}, title: "right-pointing angle bracket (ket)" } &#9002;
- .character{ data: {entity: "#9674"}, title: "lozenge" } &#9674;
- .character{ data: {entity: "#9824"}, title: "black spade suit" } &#9824;
- .character{ data: {entity: "#9827"}, title: "black club suit (shamrock)" } &#9827;
- .character{ data: {entity: "#9829"}, title: "black heart suit (valentine)" } &#9829;
- .character{ data: {entity: "#9830"}, title: "black diamond suit" } &#9830;
- .character{ data: {entity: "#x2603"}, title: "snowman" } &#x2603;
View
11 app/views/mercury/modals/htmleditor.html.erb
@@ -0,0 +1,11 @@
+<%= semantic_form_for 'htmlEditor', { :html => { :id => 'mercury_htmlEditor', :style => 'width:650px' } } do |f| %>
+
+ <textarea class="mercury-modal-pane-container" rows="5"></textarea>
+
+ <div class="mercury-modal-controls">
+ <%= f.buttons do %>
+ <%= f.commit_button 'Save and Replace' %>
+ <% end %>
+ </div>
+
+<% end %>
View
8 app/views/mercury/modals/htmleditor.html.haml
@@ -1,8 +0,0 @@
-= semantic_form_for 'htmlEditor', { html: { id: 'mercury_htmlEditor', style: 'width:650px' } } do |f|
-
- %textarea.mercury-modal-pane-container{ rows: '5' }
-
- .mercury-modal-controls
-
- = f.buttons do
- = f.commit_button 'Save and Replace'
View
40 app/views/mercury/modals/link.html.erb
@@ -0,0 +1,40 @@
+<%= semantic_form_for 'link', { :html => { :id => 'mercury_link', style: 'width:600px' } } do |f| %>
+
+ <div class="mercury-modal-pane-container">
+ <div class="mercury-modal-pane">
+ <%= f.inputs :id => 'link_text_container' do %>
+ <%= f.input :text, :required => false, :label => 'Link Content' %>
+ <% end %>
+
+ <%= f.inputs 'Standard Links' do %>
+ <%= f.input :external_url, :required => false, :input_html => { :class => 'selectable' },
+ :label => '<input name="link_type" type="radio" value="external_url" checked="checked"/>URL'.html_safe %>
+ <% end %>
+
+ <%= f.inputs 'Index / Bookmark Links' do %>
+ <%= f.input :existing_bookmark, :as => :select, :required => false, :input_html => { :class => 'selectable' }, :include_blank => false,
+ :collection => [],
+ :label => '<input name="link_type" type="radio" value="existing_bookmark"/>Existing Links'.html_safe %>
+ <%= f.input :new_bookmark, :required => false, :input_html => { :class => 'selectable' },
+ :label => '<input name="link_type" type="radio" value="new_bookmark"/>Bookmark'.html_safe %>
+ <% end %>
+
+ <%= f.inputs 'Options' do %>
+ <%= f.input :target, :as => :select, :required => false, :include_blank => 'Self (the same window or tab)',
+ :collection => [['Blank (a new window or tab)', '_blank'], ['Top (removes any frames)', '_top'], ['Popup Window (javascript new window popup)', 'popup']],
+ :label => 'Link Target' %>
+ <div id="popup_options" class="link-target-options" style="display:none">
+ <%= f.input :popup_width, required: false, label: 'Popup Width' %>
+ <%= f.input :popup_height, required: false, label: 'Popup Height' %>
+ </div>
+ <% end %>
+ </div>
+ </div>
+
+ <div class="mercury-modal-controls">
+ <%= f.buttons do %>
+ <%= f.commit_button 'Insert Link' %>
+ <% end %>
+ </div>
+
+<% end %>
View
31 app/views/mercury/modals/link.html.haml
@@ -1,31 +0,0 @@
-= semantic_form_for 'link', { html: { id: 'mercury_link', style: 'width:600px' } } do |f|
-
- .mercury-modal-pane-container
- .mercury-modal-pane
-
- = f.inputs id: 'link_text_container' do
- = f.input :text, required: false, label: 'Link Content'
-
- = f.inputs 'Standard Links' do
- = f.input :external_url, required: false, input_html: { class: 'selectable' },
- label: '<input name="link_type" type="radio" value="external_url" checked="checked"/>URL'.html_safe
-
- = f.inputs 'Index / Bookmark Links' do
- = f.input :existing_bookmark, as: :select, required: false, input_html: { class: 'selectable' }, collection: [], include_blank: false,
- label: '<input name="link_type" type="radio" value="existing_bookmark"/>Existing Links'.html_safe
- = f.input :new_bookmark, required: false, input_html: { class: 'selectable' },
- label: '<input name="link_type" type="radio" value="new_bookmark"/>Bookmark'.html_safe
-
- = f.inputs 'Options' do
- = f.input :target, as: :select, required: false, label: 'Link Target',
- include_blank: 'Self (the same window or tab)',
- collection: [['Blank (a new window or tab)', '_blank'], ['Top (removes any frames)', '_top'], ['Popup Window (javascript new window popup)', 'popup']]
-
- #popup_options.link-target-options{ style: 'display:none' }
- = f.input :popup_width, required: false, label: 'Popup Width'
- = f.input :popup_height, required: false, label: 'Popup Height'
-
- .mercury-modal-controls
-
- = f.buttons do
- = f.commit_button 'Insert Link'
View
43 app/views/mercury/modals/media.html.erb
@@ -0,0 +1,43 @@
+<%= semantic_form_for 'media', { :html => { :id => 'mercury_media', :style => 'width:600px' } } do |f| %>
+
+ <div class="mercury-modal-pane-container">
+ <div class="mercury-modal-pane">
+ <%= f.inputs 'Images' do %>
+ <%= f.input :image_url, :required => false, :input_html => { :class => 'selectable' },
+ :label => '<input name="media_type" type="radio" value="image_url" checked="checked"/>URL'.html_safe %>
+ <% end %>
+
+ <%= f.inputs 'Videos' do %>
+ <%= f.input :youtube_url, :required => false, :input_html => { :class => 'selectable' },
+ :label => '<input name="media_type" type="radio" value="youtube_url"/>YouTube Share URL'.html_safe %>
+ <%= f.input :vimeo_url, :required => false, :input_html => { :class => 'selectable' },
+ :label => '<input name="media_type" type="radio" value="vimeo_url"/>Vimeo URL'.html_safe %>
+ <% end %>
+
+ <%= f.inputs 'Options' do %>
+ <div id="image_url" class="media-options">
+ <%= f.input :image_alignment, :as => :select, :required => false, :include_blank => 'None',
+ :collection => [['Left', 'left'], ['Right', 'right'], ['Top', 'top'], ['Middle', 'middle'], ['Bottom', 'bottom'], ['Absolute Middle', 'absmiddle'], ['Absolute Bottom', 'absbottom']],
+ :label => 'Alignment' %>
+ </div>
+
+ <div id="youtube_url" class="media-options" style="display:none">
+ <%= f.input :youtube_width, :required => false, :label => 'Width', :input_html => { :value => '560' } %>
+ <%= f.input :youtube_height, :required => false, :label => 'Height', :input_html => { :value => '349' } %>
+ </div>
+
+ <div id="vimeo_url" class="media-options" style="display:none">
+ <%= f.input :vimeo_width, :required => false, :label => 'Width', :input_html => { :value => '400' } %>
+ <%= f.input :vimeo_height, :required => false, :label => 'Height', :input_html => { :value => '225' } %>
+ </div>
+ <% end %>
+ </div>
+ </div>
+
+ <div class="mercury-modal-controls">
+ <%= f.buttons do %>
+ <%= f.commit_button 'Insert Media' %>
+ <% end %>
+ </div>
+
+<% end %>
View
33 app/views/mercury/modals/media.html.haml
@@ -1,33 +0,0 @@
-= semantic_form_for 'media', { html: { id: 'mercury_media', style: 'width:600px' } } do |f|
-
- .mercury-modal-pane-container
- .mercury-modal-pane
-
- = f.inputs 'Images' do
- = f.input :image_url, required: false, input_html: { class: 'selectable' },
- label: '<input name="media_type" type="radio" value="image_url" checked="checked"/>URL'.html_safe
-
- = f.inputs 'Videos' do
- = f.input :youtube_url, required: false, input_html: { class: 'selectable' },
- label: '<input name="media_type" type="radio" value="youtube_url"/>YouTube Share URL'.html_safe
- = f.input :vimeo_url, required: false, input_html: { class: 'selectable' },
- label: '<input name="media_type" type="radio" value="vimeo_url"/>Vimeo URL'.html_safe
-
- = f.inputs 'Options' do
-
- #image_url.media-options
- = f.input :image_alignment, as: :select, required: false, label: 'Alignment', include_blank: 'None',
- collection: [['Left', 'left'], ['Right', 'right'], ['Top', 'top'], ['Middle', 'middle'], ['Bottom', 'bottom'], ['Absolute Middle', 'absmiddle'], ['Absolute Bottom', 'absbottom']]
-
- #youtube_url.media-options{ :style => 'display:none' }
- = f.input :youtube_width, required: false, label: 'Width', input_html: { value: '560' }
- = f.input :youtube_height, required: false, label: 'Height', input_html: { value: '349' }
-
- #vimeo_url.media-options{ :style => 'display:none' }
- = f.input :vimeo_width, required: false, label: 'Width', input_html: { value: '400' }
- = f.input :vimeo_height, required: false, label: 'Height', input_html: { value: '225' }
-
- .mercury-modal-controls
-
- = f.buttons do
- = f.commit_button 'Insert Media'
View
5 app/views/mercury/modals/sanitizer.html.erb
@@ -0,0 +1,5 @@
+<div id="mercury_sanitizer" style="width:450px">
+ <div class="information">It looks like you've pasted directly from Microsoft Office!<br/><br/>Sadly though, your browser wasn't able to properly handle what you pasted. But that's ok, because I've sanitized it for you!</div>
+ <textarea rows="20" wrap="off"></textarea>
+ <strong>You can just copy and paste the sanitized content that appears above.</strong>
+</div>
View
4 app/views/mercury/modals/sanitizer.html.haml
@@ -1,4 +0,0 @@
-#mercury_sanitizer{ style: 'width:450px' }
- .information It looks like you've pasted directly from Microsoft Office!<br/><br/>Sadly though, your browser wasn't able to properly handle what you pasted. But that's ok, because I've sanitized it for you!
- %textarea{ rows: '20', wrap: 'off' }
- %strong You can just copy and paste the sanitized content that appears above.
View
66 app/views/mercury/modals/table.html.erb
@@ -0,0 +1,66 @@
+<%= semantic_form_for 'table', { :html => { :id => 'mercury_table', :style => 'width:700px' } } do |f| %>
+
+ <div class="mercury-modal-pane-container">
+ <div class="mercury-modal-pane">
+
+ <div id="table_display">
+ <table border="1" cellspacing="0">
+ <tr>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+ </table>
+ </div>
+
+ <div id="table_options">
+ <%= f.inputs do %>
+ <li id="table_rows_input" class="select input optional">
+ <label for="table_rows">Rows</label>
+ <input type="button" class="action" value="Add Before" name="insertRowBefore"/>
+ <input type="button" class="action" value="Add After" name="insertRowAfter"/>
+ <input type="button" class="action" value="Remove" name="deleteRow"/>
+ </li>
+ <li id="table_columns_input" class="select input optional">
+ <label for="table_rows">Rows</label>
+ <input type="button" class="action" value="Add Before" name="insertColumnBefore"/>
+ <input type="button" class="action" value="Add After" name="insertColumnAfter"/>
+ <input type="button" class="action" value="Remove" name="deleteColumn"/>
+ </li>
+ <hr/>
+ <li id="table_row_adjust_input" class="select input optional">
+ <label for="table_row_adjust">Row Span</label>
+ <input type="button" class="action" value="+" name="increaseRowspan"/>
+ <input type="button" class="action" value="-" name="decreaseRowspan"/>
+ </li>
+ <li id="table_column_adjust_input" class="select input optional">
+ <label for="table_column_adjust">Column Span</label>
+ <input type="button" class="action" value="+" name="increaseColspan"/>
+ <input type="button" class="action" value="-" name="decreaseColspan"/>
+ </li>
+ <% end %>
+
+
+ <%= f.inputs 'Options' do %>
+ <%= f.input :alignment, :as => :select, :required => false, :include_blank => 'None',
+ :collection => [['Left', 'left'], ['Right', 'right']] %>
+ <%= f.input :border, :required => false, :input_html => { :value => 1 } %>
+ <%= f.input :spacing, :required => false, :input_html => { :value => 0 } %>
+ <% end %>
+ </div>
+
+ </div>
+ </div>
+
+ <div class="mercury-modal-controls">
+ <%= f.buttons do %>
+ <%= f.commit_button 'Insert Table' %>
+ <% end %>
+ </div>
+
+<% end %>
View
49 app/views/mercury/modals/table.html.haml
@@ -1,49 +0,0 @@
-= semantic_form_for 'table', { html: { id: 'mercury_table', style: 'width:700px' } } do |f|
-
- .mercury-modal-pane-container
- .mercury-modal-pane
-
- #table_display
-
- %table{ border: 1, cellspacing: 0 }
- %tr
- %td &nbsp;
- %td &nbsp;
- %td &nbsp;
- %tr
- %td &nbsp;
- %td &nbsp;
- %td &nbsp;
-
- #table_options
- = f.inputs do
- %li{ class: "select input optional", id: "table_rows_input" }
- %label{ for: "table_rows" } Rows
- %input{ type: 'button', name: 'insertRowBefore', class: 'action', value: 'Add Before' }/
- %input{ type: 'button', name: 'insertRowAfter', class: 'action', value: 'Add After' }/
- %input{ type: 'button', name: 'deleteRow', class: 'action', value: 'Remove' }/
- %li{ class: "select input optional", id: "table_columns_input" }
- %label{ for: "table_columns" } Columns
- %input{ type: 'button', name: 'insertColumnBefore', class: 'action', value: 'Add Before' }/
- %input{ type: 'button', name: 'insertColumnAfter', class: 'action', value: 'Add After' }/
- %input{ type: 'button', name: 'deleteColumn', class: 'action', value: 'Remove' }/
- %hr
- %li{ class: "select input optional", id: "table_row_adjust_input" }
- %label{ for: "table_row_adjust" } Row Span
- %input{ type: 'button', name: 'increaseRowspan', class: 'action', value: '+' }/
- %input{ type: 'button', name: 'decreaseRowspan', class: 'action', value: '-' }/
- %li{ class: "select input optional", id: "table_column_adjust_input" }
- %label{ for: "table_column_adjust" } Column Span
- %input{ type: 'button', name: 'increaseColspan', class: 'action', value: '+' }/
- %input{ type: 'button', name: 'decreaseColspan', class: 'action', value: '-' }/
-
- = f.inputs 'Options' do
- = f.input :alignment, as: :select, required: false, include_blank: 'None',
- collection: [['Left', 'left'], ['Right', 'right']]
- = f.input :border, required: false, input_html: { value: 1 }
- = f.input :spacing, required: false, input_html: { value: 0 }
-
- .mercury-modal-controls
-
- = f.buttons do
- = f.commit_button 'Insert Table'
View
73 app/views/mercury/palettes/backcolor.html.erb
@@ -0,0 +1,73 @@
+<div class="mercury-color-picker">
+ <div class="picker" style="background:#FFFFFF"></div>
+ <div class="picker" style="background:#FFCCCC"></div>
+ <div class="picker" style="background:#FFCC99"></div>
+ <div class="picker" style="background:#FFFF99"></div>
+ <div class="picker" style="background:#FFFFCC"></div>
+ <div class="picker" style="background:#99FF99"></div>
+ <div class="picker" style="background:#99FFFF"></div>
+ <div class="picker" style="background:#CCFFFF"></div>
+ <div class="picker" style="background:#CCCCFF"></div>
+ <div class="picker" style="background:#FFCCFF"></div>
+ <div class="picker" style="background:#CCCCCC"></div>
+ <div class="picker" style="background:#FF6666"></div>
+ <div class="picker" style="background:#FF9966"></div>
+ <div class="picker" style="background:#FFFF66"></div>
+ <div class="picker" style="background:#FFFF33"></div>
+ <div class="picker" style="background:#66FF99"></div>
+ <div class="picker" style="background:#33FFFF"></div>
+ <div class="picker" style="background:#66FFFF"></div>
+ <div class="picker" style="background:#9999FF"></div>
+ <div class="picker" style="background:#FF99FF"></div>
+ <div class="picker" style="background:#C0C0C0"></div>
+ <div class="picker" style="background:#FF0000"></div>
+ <div class="picker" style="background:#FF9900"></div>
+ <div class="picker" style="background:#FFCC66"></div>
+ <div class="picker" style="background:#FFFF00"></div>
+ <div class="picker" style="background:#33FF33"></div>
+ <div class="picker" style="background:#66CCCC"></div>
+ <div class="picker" style="background:#33CCFF"></div>
+ <div class="picker" style="background:#6666CC"></div>
+ <div class="picker" style="background:#CC66CC"></div>
+ <div class="picker" style="background:#999999"></div>
+ <div class="picker" style="background:#CC0000"></div>
+ <div class="picker" style="background:#FF6600"></div>
+ <div class="picker" style="background:#FFCC33"></div>
+ <div class="picker" style="background:#FFCC00"></div>
+ <div class="picker" style="background:#33CC00"></div>
+ <div class="picker" style="background:#00CCCC"></div>
+ <div class="picker" style="background:#3366FF"></div>
+ <div class="picker" style="background:#6633FF"></div>
+ <div class="picker" style="background:#CC33CC"></div>
+ <div class="picker" style="background:#666666"></div>
+ <div class="picker" style="background:#990000"></div>
+ <div class="picker" style="background:#CC6600"></div>
+ <div class="picker" style="background:#CC9933"></div>
+ <div class="picker" style="background:#999900"></div>
+ <div class="picker" style="background:#009900"></div>
+ <div class="picker" style="background:#339999"></div>
+ <div class="picker" style="background:#3333FF"></div>
+ <div class="picker" style="background:#6600CC"></div>
+ <div class="picker" style="background:#993399"></div>
+ <div class="picker" style="background:#333333"></div>
+ <div class="picker" style="background:#660000"></div>
+ <div class="picker" style="background:#993300"></div>
+ <div class="picker" style="background:#996633"></div>
+ <div class="picker" style="background:#666600"></div>
+ <div class="picker" style="background:#006600"></div>
+ <div class="picker" style="background:#336666"></div>
+ <div class="picker" style="background:#000099"></div>
+ <div class="picker" style="background:#333399"></div>
+ <div class="picker" style="background:#663366"></div>
+ <div class="picker" style="background:#000000"></div>
+ <div class="picker" style="background:#330000"></div>
+ <div class="picker" style="background:#663300"></div>
+ <div class="picker" style="background:#663333"></div>
+ <div class="picker" style="background:#333300"></div>
+ <div class="picker" style="background:#003300"></div>
+ <div class="picker" style="background:#003333"></div>
+ <div class="picker" style="background:#000066"></div>
+ <div class="picker" style="background:#330099"></div>
+ <div class="picker" style="background:#330033"></div>
+ <div class="last-picked">Last Color Picked</div>
+</div>
View
79 app/views/mercury/palettes/backcolor.html.haml
@@ -1,79 +0,0 @@
-.mercury-color-picker
- .picker{ style: "background:#FFFFFF" }
- .picker{ style: "background:#FFCCCC" }
- .picker{ style: "background:#FFCC99" }
- .picker{ style: "background:#FFFF99" }
- .picker{ style: "background:#FFFFCC" }
- .picker{ style: "background:#99FF99" }
- .picker{ style: "background:#99FFFF" }
- .picker{ style: "background:#CCFFFF" }
- .picker{ style: "background:#CCCCFF" }
- .picker{ style: "background:#FFCCFF" }
-
- .picker{ style: "background:#CCCCCC" }
- .picker{ style: "background:#FF6666" }
- .picker{ style: "background:#FF9966" }
- .picker{ style: "background:#FFFF66" }
- .picker{ style: "background:#FFFF33" }
- .picker{ style: "background:#66FF99" }
- .picker{ style: "background:#33FFFF" }
- .picker{ style: "background:#66FFFF" }
- .picker{ style: "background:#9999FF" }
- .picker{ style: "background:#FF99FF" }
-
- .picker{ style: "background:#C0C0C0" }
- .picker{ style: "background:#FF0000" }
- .picker{ style: "background:#FF9900" }
- .picker{ style: "background:#FFCC66" }
- .picker{ style: "background:#FFFF00" }
- .picker{ style: "background:#33FF33" }
- .picker{ style: "background:#66CCCC" }
- .picker{ style: "background:#33CCFF" }
- .picker{ style: "background:#6666CC" }
- .picker{ style: "background:#CC66CC" }
-
- .picker{ style: "background:#999999" }
- .picker{ style: "background:#CC0000" }
- .picker{ style: "background:#FF6600" }
- .picker{ style: "background:#FFCC33" }
- .picker{ style: "background:#FFCC00" }
- .picker{ style: "background:#33CC00" }
- .picker{ style: "background:#00CCCC" }
- .picker{ style: "background:#3366FF" }
- .picker{ style: "background:#6633FF" }
- .picker{ style: "background:#CC33CC" }
-
- .picker{ style: "background:#666666" }
- .picker{ style: "background:#990000" }
- .picker{ style: "background:#CC6600" }
- .picker{ style: "background:#CC9933" }
- .picker{ style: "background:#999900" }
- .picker{ style: "background:#009900" }
- .picker{ style: "background:#339999" }
- .picker{ style: "background:#3333FF" }
- .picker{ style: "background:#6600CC" }
- .picker{ style: "background:#993399" }
-
- .picker{ style: "background:#333333" }
- .picker{ style: "background:#660000" }
- .picker{ style: "background:#993300" }
- .picker{ style: "background:#996633" }
- .picker{ style: "background:#666600" }
- .picker{ style: "background:#006600" }
- .picker{ style: "background:#336666" }
- .picker{ style: "background:#000099" }
- .picker{ style: "background:#333399" }
- .picker{ style: "background:#663366" }
-
- .picker{ style: "background:#000000" }
- .picker{ style: "background:#330000" }
- .picker{ style: "background:#663300" }
- .picker{ style: "background:#663333" }
- .picker{ style: "background:#333300" }
- .picker{ style: "background:#003300" }
- .picker{ style: "background:#003333" }
- .picker{ style: "background:#000066" }
- .picker{ style: "background:#330099" }
- .picker{ style: "background:#330033" }
-
- .last-picked Last Color Picked
View
73 app/views/mercury/palettes/forecolor.html.erb
@@ -0,0 +1,73 @@
+<div class="mercury-color-picker">
+ <div class="picker" style="background:#FFFFFF"></div>
+ <div class="picker" style="background:#FFCCCC"></div>
+ <div class="picker" style="background:#FFCC99"></div>
+ <div class="picker" style="background:#FFFF99"></div>
+ <div class="picker" style="background:#FFFFCC"></div>
+ <div class="picker" style="background:#99FF99"></div>
+ <div class="picker" style="background:#99FFFF"></div>
+ <div class="picker" style="background:#CCFFFF"></div>
+ <div class="picker" style="background:#CCCCFF"></div>
+ <div class="picker" style="background:#FFCCFF"></div>
+ <div class="picker" style="background:#CCCCCC"></div>
+ <div class="picker" style="background:#FF6666"></div>
+ <div class="picker" style="background:#FF9966"></div>
+ <div class="picker" style="background:#FFFF66"></div>
+ <div class="picker" style="background:#FFFF33"></div>
+ <div class="picker" style="background:#66FF99"></div>
+ <div class="picker" style="background:#33FFFF"></div>
+ <div class="picker" style="background:#66FFFF"></div>
+ <div class="picker" style="background:#9999FF"></div>
+ <div class="picker" style="background:#FF99FF"></div>
+ <div class="picker" style="background:#C0C0C0"></div>
+ <div class="picker" style="background:#FF0000"></div>
+ <div class="picker" style="background:#FF9900"></div>
+ <div class="picker" style="background:#FFCC66"></div>
+ <div class="picker" style="background:#FFFF00"></div>
+ <div class="picker" style="background:#33FF33"></div>
+ <div class="picker" style="background:#66CCCC"></div>
+ <div class="picker" style="background:#33CCFF"></div>
+ <div class="picker" style="background:#6666CC"></div>
+ <div class="picker" style="background:#CC66CC"></div>
+ <div class="picker" style="background:#999999"></div>
+ <div class="picker" style="background:#CC0000"></div>
+ <div class="picker" style="background:#FF6600"></div>
+ <div class="picker" style="background:#FFCC33"></div>
+ <div class="picker" style="background:#FFCC00"></div>
+ <div class="picker" style="background:#33CC00"></div>
+ <div class="picker" style="background:#00CCCC"></div>
+ <div class="picker" style="background:#3366FF"></div>
+ <div class="picker" style="background:#6633FF"></div>
+ <div class="picker" style="background:#CC33CC"></div>
+ <div class="picker" style="background:#666666"></div>
+ <div class="picker" style="background:#990000"></div>
+ <div class="picker" style="background:#CC6600"></div>
+ <div class="picker" style="background:#CC9933"></div>
+ <div class="picker" style="background:#999900"></div>
+ <div class="picker" style="background:#009900"></div>
+ <div class="picker" style="background:#339999"></div>
+ <div class="picker" style="background:#3333FF"></div>
+ <div class="picker" style="background:#6600CC"></div>
+ <div class="picker" style="background:#993399"></div>
+ <div class="picker" style="background:#333333"></div>
+ <div class="picker" style="background:#660000"></div>
+ <div class="picker" style="background:#993300"></div>
+ <div class="picker" style="background:#996633"></div>
+ <div class="picker" style="background:#666600"></div>
+ <div class="picker" style="background:#006600"></div>
+ <div class="picker" style="background:#336666"></div>
+ <div class="picker" style="background:#000099"></div>
+ <div class="picker" style="background:#333399"></div>
+ <div class="picker" style="background:#663366"></div>
+ <div class="picker" style="background:#000000"></div>
+ <div class="picker" style="background:#330000"></div>
+ <div class="picker" style="background:#663300"></div>
+ <div class="picker" style="background:#663333"></div>
+ <div class="picker" style="background:#333300"></div>
+ <div class="picker" style="background:#003300"></div>
+ <div class="picker" style="background:#003333"></div>
+ <div class="picker" style="background:#000066"></div>
+ <div class="picker" style="background:#330099"></div>
+ <div class="picker" style="background:#330033"></div>
+ <div class="last-picked">Last Color Picked</div>
+</div>
View
79 app/views/mercury/palettes/forecolor.html.haml
@@ -1,79 +0,0 @@
-.mercury-color-picker
- .picker{ style: "background:#FFFFFF" }
- .picker{ style: "background:#FFCCCC" }
- .picker{ style: "background:#FFCC99" }
- .picker{ style: "background:#FFFF99" }
- .picker{ style: "background:#FFFFCC" }
- .picker{ style: "background:#99FF99" }
- .picker{ style: "background:#99FFFF" }
- .picker{ style: "background:#CCFFFF" }
- .picker{ style: "background:#CCCCFF" }
- .picker{ style: "background:#FFCCFF" }
-
- .picker{ style: "background:#CCCCCC" }
- .picker{ style: "background:#FF6666" }
- .picker{ style: "background:#FF9966" }
- .picker{ style: "background:#FFFF66" }
- .picker{ style: "background:#FFFF33" }
- .picker{ style: "background:#66FF99" }
- .picker{ style: "background:#33FFFF" }
- .picker{ style: "background:#66FFFF" }
- .picker{ style: "background:#9999FF" }
- .picker{ style: "background:#FF99FF" }
-
- .picker{ style: "background:#C0C0C0" }
- .picker{ style: "background:#FF0000" }
- .picker{ style: "background:#FF9900" }
- .picker{ style: "background:#FFCC66" }
- .picker{ style: "background:#FFFF00" }
- .picker{ style: "background:#33FF33" }
- .picker{ style: "background:#66CCCC" }
- .picker{ style: "background:#33CCFF" }
- .picker{ style: "background:#6666CC" }
- .picker{ style: "background:#CC66CC" }
-
- .picker{ style: "background:#999999" }
- .picker{ style: "background:#CC0000" }
- .picker{ style: "background:#FF6600" }
- .picker{ style: "background:#FFCC33" }
- .picker{ style: "background:#FFCC00" }
- .picker{ style: "background:#33CC00" }
- .picker{ style: "background:#00CCCC" }
- .picker{ style: "background:#3366FF" }
- .picker{ style: "background:#6633FF" }
- .picker{ style: "background:#CC33CC" }
-
- .picker{ style: "background:#666666" }
- .picker{ style: "background:#990000" }
- .picker{ style: "background:#CC6600" }
- .picker{ style: "background:#CC9933" }
- .picker{ style: "background:#999900" }
- .picker{ style: "background:#009900" }
- .picker{ style: "background:#339999" }
- .picker{ style: "background:#3333FF" }
- .picker{ style: "background:#6600CC" }
- .picker{ style: "background:#993399" }
-
- .picker{ style: "background:#333333" }
- .picker{ style: "background:#660000" }
- .picker{ style: "background:#993300" }
- .picker{ style: "background:#996633" }
- .picker{ style: "background:#666600" }
- .picker{ style: "background:#006600" }
- .picker{ style: "background:#336666" }
- .picker{ style: "background:#000099" }
- .picker{ style: "background:#333399" }
- .picker{ style: "background:#663366" }
-
- .picker{ style: "background:#000000" }
- .picker{ style: "background:#330000" }
- .picker{ style: "background:#663300" }
- .picker{ style: "background:#663333" }
- .picker{ style: "background:#333300" }
- .picker{ style: "background:#003300" }
- .picker{ style: "background:#003333" }
- .picker{ style: "background:#000066" }
- .picker{ style: "background:#330099" }
- .picker{ style: "background:#330033" }
-
- .last-picked Last Color Picked
View
0 app/views/mercury/panels/notes.html.haml → app/views/mercury/panels/history.html.erb
File renamed without changes.
View
0 app/views/mercury/panels/history.html.haml → app/views/mercury/panels/notes.html.erb
File renamed without changes.
View
12 app/views/mercury/panels/snippets.html.erb
@@ -0,0 +1,12 @@
+<div class="mercury-snippet-panel">
+ <div class="filter">
+ <input class="filter" type="text">
+ </div>
+ <ul>
+ <li data-filter="example-snippet">
+ <img alt="Snippet Name" data-snippet="example" src="/assets/mercury/default-snippet.png"/>
+ <h4>Snippet Name</h4>
+ <div class="description">A one to two line long description of what this snippet does.</div>
+ </li>
+ </ul>
+</div>
View
10 app/views/mercury/panels/snippets.html.haml
@@ -1,10 +0,0 @@
-.mercury-snippet-panel
-
- .filter
- %input.filter{ :type => 'text' }
-
- %ul
- %li{ 'data-filter' => "example-snippet" }
- = image_tag('mercury/default-snippet.png', 'data-snippet' => 'example' )
- %h4 Snippet Name
- .description A one to two line long description of what this snippet does.
View
11 app/views/mercury/selects/formatblock.html.erb
@@ -0,0 +1,11 @@
+<div class="mercury-select-options">
+ <h1 data-tag="h1">Heading 1 &lt;h1&gt;</h1>
+ <h2 data-tag="h2">Heading 2 &lt;h2&gt;</h2>
+ <h3 data-tag="h3">Heading 3 &lt;h3&gt;</h3>
+ <h4 data-tag="h4">Heading 4 &lt;h4&gt;</h4>
+ <h5 data-tag="h5">Heading 5 &lt;h5&gt;</h5>
+ <h6 data-tag="h6">Heading 6 &lt;h6&gt;</h6>
+ <div data-tag="p">Paragraph &lt;p&gt;</div>
+ <div data-tag="blockquote">Blockquote &lt;blockquote&gt;</div>
+ <div data-tag="pre">Formatted &lt;pre&gt;</div>
+</div>
View
10 app/views/mercury/selects/formatblock.html.haml
@@ -1,10 +0,0 @@
-.mercury-select-options
- %h1{ data: {tag: "h1"} } Heading 1 &lt;h1&gt;
- %h2{ data: {tag: "h2"} } Heading 2 &lt;h2&gt;
- %h3{ data: {tag: "h3"} } Heading 3 &lt;h3&gt;
- %h4{ data: {tag: "h4"} } Heading 4 &lt;h4&gt;
- %h5{ data: {tag: "h5"} } Heading 5 &lt;h5&gt;
- %h6{ data: {tag: "h6"} } Heading 6 &lt;h6&gt;
- %div{ data: {tag: "p"} } Paragraph &lt;p&gt;
- %div{ data: {tag: "blockquote"} } Blockquote &lt;blockquote&gt;
- %div{ data: {tag: "pre"} } Formatted &lt;pre&gt;
View
5 app/views/mercury/selects/style.html.erb
@@ -0,0 +1,5 @@
+<div class="mercury-select-options">
+ <div class="red" data-class="red">Red text</div>
+ <div class="large-bold" data-class="large-bold">Large bold text</div>
+ <div class="blue" data-class="blue">Blue background</div>
+</div>
View
4 app/views/mercury/selects/style.html.haml
@@ -1,4 +0,0 @@
-.mercury-select-options
- .red{ data: {class: "red"} } Red text
- .large-bold{ data: {class: "large-bold"} } Large bold text
- .blue{ data: {class: "blue"} } Blue background
View
1 app/views/mercury/snippets/example.html.erb
@@ -0,0 +1 @@
+<strong><%= params[:options][:first_name] %></strong> likes<%= params[:options][:favorite_beer] %>
View
2 app/views/mercury/snippets/example.html.haml
@@ -1,2 +0,0 @@
-%strong= params[:options][:first_name]
-= " likes #{params[:options][:favorite_beer]}"
View
23 app/views/mercury/snippets/example_options.html.erb
@@ -0,0 +1,23 @@
+<% @options = params[:options] || {} %>
+<%= semantic_form_for 'options', { :html => { :style => 'width:600px' } } do |f| %>
+
+ <div class="mercury-modal-pane-container">
+ <div class="mercury-modal-pane">
+ <%= f.inputs do %>
+ <%= f.input :first_name, :required => false, :label => 'First Name',
+ :input_html => {:value => @options[:first_name] || 'First Name'} %>
+ <% end %>
+ <%= f.inputs 'Options' do %>
+ <%= f.input :favorite_beer, :required => false, :label => 'Favorite Beer',
+ :input_html => {:value => @options[:favorite_beer] || 'PBR'} %>
+ <% end %>
+ </div>
+ </div>
+
+ <div class="mercury-modal-controls">
+ <%= f.buttons do %>
+ <%= f.commit_button 'Insert Snippet' %>
+ <% end %>
+ </div>
+
+<% end %>
View
18 app/views/mercury/snippets/example_options.html.haml
@@ -1,18 +0,0 @@
-- @options = params[:options] || {}
-= semantic_form_for 'options', { html: { style: 'width:600px' } } do |f|
-
- .mercury-modal-pane-container
- .mercury-modal-pane
-
- = f.inputs do
- = f.input :first_name, required: false, label: 'First Name',
- input_html: {value: @options[:first_name] || 'First Name'}
-
- = f.inputs 'Options' do
- = f.input :favorite_beer, required: false, label: 'Favorite Beer',
- input_html: {value: @options[:favorite_beer] || 'PBR'}
-
- .mercury-modal-controls
-
- = f.buttons do
- = f.commit_button 'Insert Snippet'
View
2 config/application.rb
@@ -11,6 +11,8 @@ class Application < Rails::Application
require 'mercury-rails'
require "#{root}/lib/mercury-rails"
+ config.secret_token = 'a3d5cd98078f032a81a26868464e582207929ed489825cc2259c1c92e86782698ee37e50d7de9c0d300900a1f523a2f3d153b90c104415ebd6b77dcabef7aae5'
+
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
View
7 config/initializers/secret_token.rb
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Your secret key for verifying the integrity of signed cookies.
-# If you change this key, all old signed cookies will become invalid!
-# Make sure the secret is at least 30 characters and all random,
-# no regular words or you'll be exposed to dictionary attacks.
-Mercury::Application.config.secret_token = 'a3d5cd98078f032a81a26868464e582207929ed489825cc2259c1c92e86782698ee37e50d7de9c0d300900a1f523a2f3d153b90c104415ebd6b77dcabef7aae5' if defined?(Mercury::Application)
View
2 config/routes.rb
@@ -10,6 +10,6 @@
end
if defined?(Mercury::Application)
- root to: "application#show"
+ root :to => "application#show"
end
end

0 comments on commit fda1545

Please sign in to comment.
Something went wrong with that request. Please try again.