milksteak 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -14
- data/.rspec +2 -0
- data/Gemfile +1 -1
- data/Guardfile +8 -0
- data/Rakefile +0 -1
- data/Readme.md +37 -0
- data/lib/helpers.rb +0 -0
- data/lib/milksteak/cms.rb +17 -0
- data/lib/milksteak/version.rb +1 -1
- data/lib/milksteak.rb +52 -1
- data/lib/models/page.rb +73 -0
- data/lib/models/user.rb +5 -0
- data/lib/public/milksteak/codemirror2/keymap/emacs.js +29 -0
- data/lib/public/milksteak/codemirror2/keymap/vim.js +347 -0
- data/lib/public/milksteak/codemirror2/lib/codemirror.css +110 -0
- data/lib/public/milksteak/codemirror2/lib/codemirror.js +2887 -0
- data/lib/public/milksteak/codemirror2/lib/util/dialog.css +23 -0
- data/lib/public/milksteak/codemirror2/lib/util/dialog.js +63 -0
- data/lib/public/milksteak/codemirror2/lib/util/foldcode.js +186 -0
- data/lib/public/milksteak/codemirror2/lib/util/formatting.js +294 -0
- data/lib/public/milksteak/codemirror2/lib/util/javascript-hint.js +132 -0
- data/lib/public/milksteak/codemirror2/lib/util/match-highlighter.js +44 -0
- data/lib/public/milksteak/codemirror2/lib/util/overlay.js +51 -0
- data/lib/public/milksteak/codemirror2/lib/util/runmode.js +49 -0
- data/lib/public/milksteak/codemirror2/lib/util/search.js +114 -0
- data/lib/public/milksteak/codemirror2/lib/util/searchcursor.js +117 -0
- data/lib/public/milksteak/codemirror2/lib/util/simple-hint.css +16 -0
- data/lib/public/milksteak/codemirror2/lib/util/simple-hint.js +66 -0
- data/lib/public/milksteak/codemirror2/mode/clike/clike.js +234 -0
- data/lib/public/milksteak/codemirror2/mode/clike/index.html +101 -0
- data/lib/public/milksteak/codemirror2/mode/clojure/clojure.js +207 -0
- data/lib/public/milksteak/codemirror2/mode/clojure/index.html +66 -0
- data/lib/public/milksteak/codemirror2/mode/coffeescript/LICENSE +22 -0
- data/lib/public/milksteak/codemirror2/mode/coffeescript/coffeescript.js +341 -0
- data/lib/public/milksteak/codemirror2/mode/coffeescript/index.html +721 -0
- data/lib/public/milksteak/codemirror2/mode/css/css.js +124 -0
- data/lib/public/milksteak/codemirror2/mode/css/index.html +55 -0
- data/lib/public/milksteak/codemirror2/mode/diff/diff.css +3 -0
- data/lib/public/milksteak/codemirror2/mode/diff/diff.js +13 -0
- data/lib/public/milksteak/codemirror2/mode/diff/index.html +99 -0
- data/lib/public/milksteak/codemirror2/mode/ecl/ecl.js +203 -0
- data/lib/public/milksteak/codemirror2/mode/ecl/index.html +42 -0
- data/lib/public/milksteak/codemirror2/mode/gfm/gfm.js +108 -0
- data/lib/public/milksteak/codemirror2/mode/gfm/index.html +47 -0
- data/lib/public/milksteak/codemirror2/mode/go/go.js +170 -0
- data/lib/public/milksteak/codemirror2/mode/go/index.html +72 -0
- data/lib/public/milksteak/codemirror2/mode/groovy/groovy.js +210 -0
- data/lib/public/milksteak/codemirror2/mode/groovy/index.html +71 -0
- data/lib/public/milksteak/codemirror2/mode/haskell/haskell.js +242 -0
- data/lib/public/milksteak/codemirror2/mode/haskell/index.html +60 -0
- data/lib/public/milksteak/codemirror2/mode/htmlembedded/htmlembedded.js +68 -0
- data/lib/public/milksteak/codemirror2/mode/htmlembedded/index.html +49 -0
- data/lib/public/milksteak/codemirror2/mode/htmlmixed/htmlmixed.js +83 -0
- data/lib/public/milksteak/codemirror2/mode/htmlmixed/index.html +51 -0
- data/lib/public/milksteak/codemirror2/mode/javascript/index.html +77 -0
- data/lib/public/milksteak/codemirror2/mode/javascript/javascript.js +360 -0
- data/lib/public/milksteak/codemirror2/mode/jinja2/index.html +37 -0
- data/lib/public/milksteak/codemirror2/mode/jinja2/jinja2.js +42 -0
- data/lib/public/milksteak/codemirror2/mode/less/index.html +577 -0
- data/lib/public/milksteak/codemirror2/mode/less/less.js +186 -0
- data/lib/public/milksteak/codemirror2/mode/lua/index.html +72 -0
- data/lib/public/milksteak/codemirror2/mode/lua/lua.js +140 -0
- data/lib/public/milksteak/codemirror2/mode/markdown/index.html +339 -0
- data/lib/public/milksteak/codemirror2/mode/markdown/markdown.js +276 -0
- data/lib/public/milksteak/codemirror2/mode/mysql/index.html +41 -0
- data/lib/public/milksteak/codemirror2/mode/mysql/mysql.js +188 -0
- data/lib/public/milksteak/codemirror2/mode/ntriples/index.html +32 -0
- data/lib/public/milksteak/codemirror2/mode/ntriples/ntriples.js +172 -0
- data/lib/public/milksteak/codemirror2/mode/pascal/LICENSE +7 -0
- data/lib/public/milksteak/codemirror2/mode/pascal/index.html +48 -0
- data/lib/public/milksteak/codemirror2/mode/pascal/pascal.js +94 -0
- data/lib/public/milksteak/codemirror2/mode/perl/LICENSE +19 -0
- data/lib/public/milksteak/codemirror2/mode/perl/index.html +62 -0
- data/lib/public/milksteak/codemirror2/mode/perl/perl.js +816 -0
- data/lib/public/milksteak/codemirror2/mode/php/index.html +48 -0
- data/lib/public/milksteak/codemirror2/mode/php/php.js +150 -0
- data/lib/public/milksteak/codemirror2/mode/plsql/index.html +62 -0
- data/lib/public/milksteak/codemirror2/mode/plsql/plsql.js +217 -0
- data/lib/public/milksteak/codemirror2/mode/properties/index.html +40 -0
- data/lib/public/milksteak/codemirror2/mode/properties/properties.css +3 -0
- data/lib/public/milksteak/codemirror2/mode/properties/properties.js +57 -0
- data/lib/public/milksteak/codemirror2/mode/python/LICENSE.txt +21 -0
- data/lib/public/milksteak/codemirror2/mode/python/index.html +122 -0
- data/lib/public/milksteak/codemirror2/mode/python/python.js +340 -0
- data/lib/public/milksteak/codemirror2/mode/r/LICENSE +24 -0
- data/lib/public/milksteak/codemirror2/mode/r/index.html +73 -0
- data/lib/public/milksteak/codemirror2/mode/r/r.js +141 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/changes/changes.js +19 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/changes/index.html +53 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/spec/index.html +99 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/spec/spec.css +5 -0
- data/lib/public/milksteak/codemirror2/mode/rpm/spec/spec.js +66 -0
- data/lib/public/milksteak/codemirror2/mode/rst/index.html +525 -0
- data/lib/public/milksteak/codemirror2/mode/rst/rst.js +326 -0
- data/lib/public/milksteak/codemirror2/mode/ruby/LICENSE +24 -0
- data/lib/public/milksteak/codemirror2/mode/ruby/index.html +171 -0
- data/lib/public/milksteak/codemirror2/mode/ruby/ruby.js +200 -0
- data/lib/public/milksteak/codemirror2/mode/rust/index.html +48 -0
- data/lib/public/milksteak/codemirror2/mode/rust/rust.js +432 -0
- data/lib/public/milksteak/codemirror2/mode/scheme/index.html +64 -0
- data/lib/public/milksteak/codemirror2/mode/scheme/scheme.js +202 -0
- data/lib/public/milksteak/codemirror2/mode/smalltalk/index.html +55 -0
- data/lib/public/milksteak/codemirror2/mode/smalltalk/smalltalk.js +139 -0
- data/lib/public/milksteak/codemirror2/mode/sparql/index.html +40 -0
- data/lib/public/milksteak/codemirror2/mode/sparql/sparql.js +143 -0
- data/lib/public/milksteak/codemirror2/mode/stex/index.html +95 -0
- data/lib/public/milksteak/codemirror2/mode/stex/stex.js +167 -0
- data/lib/public/milksteak/codemirror2/mode/tiddlywiki/index.html +183 -0
- data/lib/public/milksteak/codemirror2/mode/tiddlywiki/tiddlywiki.css +21 -0
- data/lib/public/milksteak/codemirror2/mode/tiddlywiki/tiddlywiki.js +374 -0
- data/lib/public/milksteak/codemirror2/mode/velocity/index.html +103 -0
- data/lib/public/milksteak/codemirror2/mode/velocity/velocity.js +146 -0
- data/lib/public/milksteak/codemirror2/mode/verilog/index.html +210 -0
- data/lib/public/milksteak/codemirror2/mode/verilog/verilog.js +194 -0
- data/lib/public/milksteak/codemirror2/mode/xml/index.html +45 -0
- data/lib/public/milksteak/codemirror2/mode/xml/xml.js +267 -0
- data/lib/public/milksteak/codemirror2/mode/xmlpure/index.html +59 -0
- data/lib/public/milksteak/codemirror2/mode/xmlpure/xmlpure.js +490 -0
- data/lib/public/milksteak/codemirror2/mode/yaml/index.html +67 -0
- data/lib/public/milksteak/codemirror2/mode/yaml/yaml.js +95 -0
- data/lib/public/milksteak/codemirror2/theme/cobalt.css +18 -0
- data/lib/public/milksteak/codemirror2/theme/eclipse.css +25 -0
- data/lib/public/milksteak/codemirror2/theme/elegant.css +10 -0
- data/lib/public/milksteak/codemirror2/theme/monokai.css +28 -0
- data/lib/public/milksteak/codemirror2/theme/neat.css +9 -0
- data/lib/public/milksteak/codemirror2/theme/night.css +21 -0
- data/lib/public/milksteak/codemirror2/theme/rubyblue.css +21 -0
- data/lib/public/milksteak/css/bootstrap-responsive.css +567 -0
- data/lib/public/milksteak/css/bootstrap-responsive.min.css +3 -0
- data/lib/public/milksteak/css/bootstrap.css +3365 -0
- data/lib/public/milksteak/css/bootstrap.min.css +610 -0
- data/lib/public/milksteak/css/calendrical.css +69 -0
- data/lib/public/milksteak/css/prettify.css +52 -0
- data/lib/public/milksteak/css/style.css +8 -0
- data/lib/public/milksteak/img/glyphicons-halflings-white.png +0 -0
- data/lib/public/milksteak/img/glyphicons-halflings.png +0 -0
- data/lib/public/milksteak/img/spinner.gif +0 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.asp +44 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.aspx +31 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.cf +19 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.jsp +49 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.php +43 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.pl +102 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.py +25 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree.rb +61 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree_huck.lasso +36 -0
- data/lib/public/milksteak/jqueryFileTree/connectors/jqueryFileTree_sabourdin.lasso +48 -0
- data/lib/public/milksteak/jqueryFileTree/images/application.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/code.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/css.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/db.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/directory.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/doc.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/file.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/film.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/flash.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/folder_open.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/html.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/java.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/linux.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/music.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/pdf.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/php.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/picture.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/ppt.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/psd.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/ruby.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/script.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/spinner.gif +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/txt.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/xls.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/images/zip.png +0 -0
- data/lib/public/milksteak/jqueryFileTree/jqueryFileTree.css +91 -0
- data/lib/public/milksteak/jqueryFileTree/jqueryFileTree.js +95 -0
- data/lib/public/milksteak/js/app.js +0 -0
- data/lib/public/milksteak/js/backbone.js +1290 -0
- data/lib/public/milksteak/js/bootstrap-alert.js +91 -0
- data/lib/public/milksteak/js/bootstrap-button.js +98 -0
- data/lib/public/milksteak/js/bootstrap-carousel.js +154 -0
- data/lib/public/milksteak/js/bootstrap-collapse.js +136 -0
- data/lib/public/milksteak/js/bootstrap-dropdown.js +92 -0
- data/lib/public/milksteak/js/bootstrap-modal.js +209 -0
- data/lib/public/milksteak/js/bootstrap-popover.js +95 -0
- data/lib/public/milksteak/js/bootstrap-scrollspy.js +125 -0
- data/lib/public/milksteak/js/bootstrap-tab.js +130 -0
- data/lib/public/milksteak/js/bootstrap-tooltip.js +270 -0
- data/lib/public/milksteak/js/bootstrap-transition.js +51 -0
- data/lib/public/milksteak/js/bootstrap-typeahead.js +271 -0
- data/lib/public/milksteak/js/bootstrap.js +1722 -0
- data/lib/public/milksteak/js/bootstrap.min.js +1 -0
- data/lib/public/milksteak/js/jquery-ui.min.js +15 -0
- data/lib/public/milksteak/js/jquery.calendrical.js +490 -0
- data/lib/public/milksteak/js/jquery.easing.js +146 -0
- data/lib/public/milksteak/js/jquery.js +9252 -0
- data/lib/public/milksteak/js/mustache.js +536 -0
- data/lib/public/milksteak/js/prettify.js +28 -0
- data/lib/public/milksteak/js/underscore.js +999 -0
- data/lib/public/milksteak/markitup/.DS_Store +0 -0
- data/lib/public/milksteak/markitup/jquery.markitup.js +593 -0
- data/lib/public/milksteak/markitup/sets/default/images/bold.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/clean.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/image.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/italic.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/link.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/list-bullet.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/list-numeric.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/picture.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/preview.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/images/stroke.png +0 -0
- data/lib/public/milksteak/markitup/sets/default/set.js +30 -0
- data/lib/public/milksteak/markitup/sets/default/style.css +34 -0
- data/lib/public/milksteak/markitup/sets/textile/images/bold.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/code.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h1.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h2.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h3.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h4.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h5.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/h6.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/italic.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/link.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/list-bullet.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/list-numeric.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/paragraph.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/picture.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/preview.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/quotes.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/images/stroke.png +0 -0
- data/lib/public/milksteak/markitup/sets/textile/set.js +33 -0
- data/lib/public/milksteak/markitup/sets/textile/style.css +60 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-container.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-bbcode.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-dotclear.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-html.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-json.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-markdown.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-textile.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-wiki.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor-xml.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/bg-editor.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/handle.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/menu.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/images/submenu.png +0 -0
- data/lib/public/milksteak/markitup/skins/markitup/style.css +147 -0
- data/lib/public/milksteak/markitup/skins/simple/images/handle.png +0 -0
- data/lib/public/milksteak/markitup/skins/simple/images/menu.png +0 -0
- data/lib/public/milksteak/markitup/skins/simple/images/submenu.png +0 -0
- data/lib/public/milksteak/markitup/skins/simple/style.css +118 -0
- data/lib/public/milksteak/markitup/templates/preview.css +5 -0
- data/lib/public/milksteak/markitup/templates/preview.html +11 -0
- data/lib/public/milksteak/uploadify-v2.1.4/cancel.png +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/check.php +35 -0
- data/lib/public/milksteak/uploadify-v2.1.4/expressInstall.swf +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/jquery-1.4.2.min.js +154 -0
- data/lib/public/milksteak/uploadify-v2.1.4/jquery.uploadify.v2.1.4.js +296 -0
- data/lib/public/milksteak/uploadify-v2.1.4/jquery.uploadify.v2.1.4.min.js +26 -0
- data/lib/public/milksteak/uploadify-v2.1.4/swfobject.js +4 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.allglyphs.swf +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.css +53 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.fla +0 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.php +46 -0
- data/lib/public/milksteak/uploadify-v2.1.4/uploadify.swf +0 -0
- data/lib/public/milksteak/wmd/Markdown.Converter.js +1332 -0
- data/lib/public/milksteak/wmd/Markdown.Editor.js +2160 -0
- data/lib/public/milksteak/wmd/Markdown.Sanitizer.js +108 -0
- data/lib/public/milksteak/wmd/wmd-buttons.png +0 -0
- data/lib/public/milksteak/wmd/wmd.css +103 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-blockquote.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h1.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h2.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h3.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h4.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h5.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-h6.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-p.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/lbl-pre.png +0 -0
- data/lib/public/milksteak/wymeditor/iframe/default/wymiframe.css +90 -0
- data/lib/public/milksteak/wymeditor/iframe/default/wymiframe.html +26 -0
- data/lib/public/milksteak/wymeditor/jquery.wymeditor.js +4688 -0
- data/lib/public/milksteak/wymeditor/jquery.wymeditor.min.js +1 -0
- data/lib/public/milksteak/wymeditor/jquery.wymeditor.pack.js +1 -0
- data/lib/public/milksteak/wymeditor/lang/bg.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/ca.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/cs.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/cy.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/de.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/en.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/es.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/fa.js +46 -0
- data/lib/public/milksteak/wymeditor/lang/fi.js +44 -0
- data/lib/public/milksteak/wymeditor/lang/fr.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/gl.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/he.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/hr.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/hu.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/it.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/nb.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/nl.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/nn.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/pl.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/pt-br.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/pt.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/ru.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/sv.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/tr.js +45 -0
- data/lib/public/milksteak/wymeditor/lang/zh_cn.js +47 -0
- data/lib/public/milksteak/wymeditor/plugins/embed/jquery.wymeditor.embed.js +52 -0
- data/lib/public/milksteak/wymeditor/plugins/fullscreen/icon_fullscreen.gif +0 -0
- data/lib/public/milksteak/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js +127 -0
- data/lib/public/milksteak/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +57 -0
- data/lib/public/milksteak/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
- data/lib/public/milksteak/wymeditor/plugins/resizable/readme.txt +124 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/README +19 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +82 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/tidy.php +36 -0
- data/lib/public/milksteak/wymeditor/plugins/tidy/wand.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/compact/icons.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/compact/skin.css +134 -0
- data/lib/public/milksteak/wymeditor/skins/compact/skin.js +35 -0
- data/lib/public/milksteak/wymeditor/skins/default/icons.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/default/skin.css +133 -0
- data/lib/public/milksteak/wymeditor/skins/default/skin.js +40 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/skin.css +131 -0
- data/lib/public/milksteak/wymeditor/skins/minimal/skin.js +30 -0
- data/lib/public/milksteak/wymeditor/skins/silver/COPYING +674 -0
- data/lib/public/milksteak/wymeditor/skins/silver/README +27 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/lib/public/milksteak/wymeditor/skins/silver/skin.css +297 -0
- data/lib/public/milksteak/wymeditor/skins/silver/skin.js +61 -0
- data/lib/public/milksteak/wymeditor/skins/twopanels/icons.png +0 -0
- data/lib/public/milksteak/wymeditor/skins/twopanels/skin.css +134 -0
- data/lib/public/milksteak/wymeditor/skins/twopanels/skin.js +39 -0
- data/lib/public/milksteak/wymeditor/skins/wymeditor_icon.png +0 -0
- data/lib/views/layouts/admin.erb +8 -0
- data/lib/views/login.erb +1 -0
- data/milksteak.gemspec +30 -13
- data/spec/fixtures/pages/sample_page.yml +5 -0
- data/spec/lib/milksteak/cms_spec.rb +12 -0
- data/spec/models/page_spec.rb +58 -0
- data/spec/spec_helper.rb +19 -0
- metadata +429 -10
- data/LICENSE +0 -22
- data/README.md +0 -29
@@ -0,0 +1,27 @@
|
|
1
|
+
/**
|
2
|
+
* @version Alpha 0.1 2008-05-10 23:28:43 $
|
3
|
+
* @package Silver skin for WYMeditor
|
4
|
+
* @copyright Copyright (C) 2008 Scott Edwin Lewis. All rights reserved.
|
5
|
+
* @license GNU/GPL, see COPYING
|
6
|
+
* Silver skin for WYMeditor is free software and is licensed under the
|
7
|
+
* GNU General Public License. See COPYING for copyright notices and details.
|
8
|
+
*/
|
9
|
+
|
10
|
+
Adds custom buttons and color palette to the WYMeditor XHTML Editor.
|
11
|
+
|
12
|
+
INSTALLATION:
|
13
|
+
|
14
|
+
1. Copy the entire /silver/ directory to /wymeditor/skins/
|
15
|
+
2. Initialize the WYMeditor 'skin' option as below:
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
jQuery(function() {
|
19
|
+
|
20
|
+
jQuery('.wymeditor').wymeditor({
|
21
|
+
skin: 'silver'
|
22
|
+
});
|
23
|
+
|
24
|
+
});
|
25
|
+
</script>
|
26
|
+
|
27
|
+
That's it. You're done.
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,297 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
+
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
+
* and GPL (GPL-license.txt) licenses.
|
6
|
+
*
|
7
|
+
* For further information visit:
|
8
|
+
* http://www.wymeditor.org/
|
9
|
+
*
|
10
|
+
* File Name:
|
11
|
+
* screen.css
|
12
|
+
* main stylesheet for the default WYMeditor skin
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Daniel Reszka (d.reszka a-t wymeditor dotorg)
|
17
|
+
* Scott Edwin Lewis
|
18
|
+
*/
|
19
|
+
|
20
|
+
/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
|
21
|
+
.wym_skin_silver p, .wym_skin_silver h2, .wym_skin_silver h3,
|
22
|
+
.wym_skin_silver ul, .wym_skin_silver li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
|
23
|
+
|
24
|
+
|
25
|
+
/*HIDDEN BY DEFAULT*/
|
26
|
+
.wym_skin_silver .wym_area_left { display: none; }
|
27
|
+
.wym_skin_silver .wym_area_right { display: block; }
|
28
|
+
|
29
|
+
|
30
|
+
/*TYPO*/
|
31
|
+
.wym_skin_silver { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; }
|
32
|
+
.wym_skin_silver h2 { font-size: 110%; /* = 11px */}
|
33
|
+
.wym_skin_silver h3 { font-size: 100%; /* = 10px */}
|
34
|
+
.wym_skin_silver li { font-size: 100%; /* = 10px */}
|
35
|
+
|
36
|
+
|
37
|
+
/*WYM_BOX*/
|
38
|
+
.wym_skin_silver { border: 1px solid gray; background: #f2f2f2; padding: 0px; margin: 0px;}
|
39
|
+
|
40
|
+
/*auto-clear the wym_box*/
|
41
|
+
.wym_skin_silver:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
42
|
+
* html .wym_skin_silver { height: 1%;}
|
43
|
+
|
44
|
+
|
45
|
+
/*WYM_HTML*/
|
46
|
+
.wym_skin_silver .wym_html { width: 98%;}
|
47
|
+
.wym_skin_silver .wym_html textarea { width: 100%; height: 200px; border: 1px solid gray; background: white; }
|
48
|
+
|
49
|
+
|
50
|
+
/*WYM_IFRAME*/
|
51
|
+
.wym_skin_silver .wym_iframe { width: 98%;}
|
52
|
+
.wym_skin_silver .wym_iframe iframe { width: 100%; height: 200px; border: 1px solid gray; background: white }
|
53
|
+
|
54
|
+
|
55
|
+
/*AREAS*/
|
56
|
+
.wym_skin_silver .wym_area_left { width: 150px; float: left;}
|
57
|
+
.wym_skin_silver .wym_area_right { width: 150px; float: right;}
|
58
|
+
.wym_skin_silver .wym_area_bottom { height: 1%; clear: both;}
|
59
|
+
* html .wym_skin_silver .wym_area_main { height: 1%;}
|
60
|
+
* html .wym_skin_silver .wym_area_top { height: 1%;}
|
61
|
+
*+html .wym_skin_silver .wym_area_top { height: 1%;}
|
62
|
+
|
63
|
+
/*SECTIONS SYSTEM*/
|
64
|
+
|
65
|
+
/*common defaults for all sections*/
|
66
|
+
.wym_skin_silver .wym_section { margin-bottom: 5px; }
|
67
|
+
.wym_skin_silver .wym_section h2,
|
68
|
+
.wym_skin_silver .wym_section h3 { padding: 1px 3px; margin: 0; cursor: pointer; }
|
69
|
+
.wym_skin_silver .wym_section a { padding: 5px 0px 0px 10px; display: block; text-decoration: none; color: black; }
|
70
|
+
.wym_skin_silver .wym_section a:hover { /*background-color: #DDD;*/}
|
71
|
+
/*hide section titles by default*/
|
72
|
+
.wym_skin_silver .wym_section h2 { display: none; }
|
73
|
+
/*disable any margin-collapse*/
|
74
|
+
.wym_skin_silver .wym_section { padding-top: 1px; padding-bottom: 1px; }
|
75
|
+
/*auto-clear sections*/
|
76
|
+
.wym_skin_silver .wym_section ul:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; padding: 0px; }
|
77
|
+
* html .wym_skin_silver .wym_section ul { height: 1%;}
|
78
|
+
.wym_skin_silver .wym_section li {}
|
79
|
+
|
80
|
+
/*option: add this class to a section to make it render as a panel*/
|
81
|
+
.wym_skin_silver .wym_panel { }
|
82
|
+
.wym_skin_silver .wym_panel h2 { display: block; font-size: 11px; }
|
83
|
+
|
84
|
+
/*option: add this class to a section to make it render as a dropdown menu*/
|
85
|
+
.wym_skin_silver .wym_dropdown h2 { display: block; font-size: 11px;}
|
86
|
+
.wym_skin_silver .wym_dropdown ul { position: absolute; background: white; padding: 0px;}
|
87
|
+
.wym_skin_silver .wym_dropdown:hover ul,
|
88
|
+
.wym_skin_silver .wym_dropdown.hover ul { cursor: pointer;}
|
89
|
+
.wym_skin_silver .wym_dropdown ul li a {/*border-bottom: 1px solid #AAA;*/}
|
90
|
+
|
91
|
+
/*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
|
92
|
+
.wym_skin_silver .wym_buttons li { float:left;}
|
93
|
+
.wym_skin_silver .wym_buttons a { width: 20px; height: 20px; overflow: hidden; padding: 2px; text-decoration: none !important; border: 1px solid #666; }
|
94
|
+
.wym_skin_silver .wym_buttons a:hover { text-decoration: none !important; border: 1px solid #000;}
|
95
|
+
/*image replacements*/
|
96
|
+
.wym_skin_silver .wym_buttons li a { background: url(images/icons.silver.gif) no-repeat; text-indent: -9999px;}
|
97
|
+
.wym_skin_silver .wym_buttons li.wym_tools_strong a { background-position: 0 -384px;}
|
98
|
+
.wym_skin_silver .wym_buttons li.wym_tools_emphasis a { background-position: 0 -24px;}
|
99
|
+
.wym_skin_silver .wym_buttons li.wym_tools_superscript a { background-position: 0 -432px;}
|
100
|
+
.wym_skin_silver .wym_buttons li.wym_tools_subscript a { background-position: 0 -456px;}
|
101
|
+
.wym_skin_silver .wym_buttons li.wym_tools_ordered_list a { background-position: 0 -48px;}
|
102
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
|
103
|
+
.wym_skin_silver .wym_buttons li.wym_tools_indent a { background-position: 0 -600px;}
|
104
|
+
.wym_skin_silver .wym_buttons li.wym_tools_outdent a { background-position: 0 -624px;}
|
105
|
+
.wym_skin_silver .wym_buttons li.wym_tools_undo a { background-position: 0 -504px;}
|
106
|
+
.wym_skin_silver .wym_buttons li.wym_tools_redo a { background-position: 0 -528px;}
|
107
|
+
.wym_skin_silver .wym_buttons li.wym_tools_link a { background-position: 0 -96px;}
|
108
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unlink a { background-position: 0 -168px;}
|
109
|
+
.wym_skin_silver .wym_buttons li.wym_tools_image a { background-position: 0 -120px;}
|
110
|
+
.wym_skin_silver .wym_buttons li.wym_tools_table a { background-position: 0 -144px;}
|
111
|
+
.wym_skin_silver .wym_buttons li.wym_tools_paste a { background-position: 0 -552px;}
|
112
|
+
.wym_skin_silver .wym_buttons li.wym_tools_html a { background-position: 0 -192px;}
|
113
|
+
.wym_skin_silver .wym_buttons li.wym_tools_preview a { background-position: 0 -408px;}
|
114
|
+
.wym_skin_silver .wym_buttons li.wym_tools_gadget a { background-position: 0 -576px;}
|
115
|
+
|
116
|
+
.wym_skin_silver .wym_buttons li.wym_tools_strong a:hover { background-position: -24px -384px;}
|
117
|
+
.wym_skin_silver .wym_buttons li.wym_tools_emphasis a:hover { background-position: -24px -24px;}
|
118
|
+
.wym_skin_silver .wym_buttons li.wym_tools_superscript a:hover { background-position: -24px -432px;}
|
119
|
+
.wym_skin_silver .wym_buttons li.wym_tools_subscript a:hover { background-position: -24px -456px;}
|
120
|
+
.wym_skin_silver .wym_buttons li.wym_tools_ordered_list a:hover { background-position: -24px -48px;}
|
121
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unordered_list a:hover{ background-position: -24px -72px;}
|
122
|
+
.wym_skin_silver .wym_buttons li.wym_tools_indent a:hover { background-position: -24px -600px;}
|
123
|
+
.wym_skin_silver .wym_buttons li.wym_tools_outdent a:hover { background-position: -24px -624px;}
|
124
|
+
.wym_skin_silver .wym_buttons li.wym_tools_undo a:hover { background-position: -24px -504px;}
|
125
|
+
.wym_skin_silver .wym_buttons li.wym_tools_redo a:hover { background-position: -24px -528px;}
|
126
|
+
.wym_skin_silver .wym_buttons li.wym_tools_link a:hover { background-position: -24px -96px;}
|
127
|
+
.wym_skin_silver .wym_buttons li.wym_tools_unlink a:hover { background-position: -24px -168px;}
|
128
|
+
.wym_skin_silver .wym_buttons li.wym_tools_image a:hover { background-position: -24px -120px;}
|
129
|
+
.wym_skin_silver .wym_buttons li.wym_tools_table a:hover { background-position: -24px -144px;}
|
130
|
+
.wym_skin_silver .wym_buttons li.wym_tools_paste a:hover { background-position: -24px -552px;}
|
131
|
+
.wym_skin_silver .wym_buttons li.wym_tools_html a:hover { background-position: -24px -192px;}
|
132
|
+
.wym_skin_silver .wym_buttons li.wym_tools_preview a:hover { background-position: -24px -408px;}
|
133
|
+
.wym_skin_silver .wym_buttons li.wym_tools_gadget a:hover { background-position: -24px -576px;}
|
134
|
+
|
135
|
+
/*DECORATION*/
|
136
|
+
.wym_skin_silver .wym_section h2 { background: #ddd; border: none;}
|
137
|
+
.wym_skin_silver .wym_section h2 span { color: gray;}
|
138
|
+
.wym_skin_silver .wym_panel { padding: 0; border: solid gray; border-width: 0px;}
|
139
|
+
.wym_skin_silver .wym_panel ul { margin: 2px 0 5px; }
|
140
|
+
.wym_skin_silver .wym_dropdown { padding: 0; border: none; }
|
141
|
+
.wym_skin_silver .wym_dropdown ul { border: none; margin-left: -1px; padding: 0px;}
|
142
|
+
|
143
|
+
/*DIALOGS*/
|
144
|
+
.wym_dialog div.row { margin-bottom: 5px;}
|
145
|
+
.wym_dialog div.row input { margin-right: 5px;}
|
146
|
+
.wym_dialog div.row label { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
|
147
|
+
.wym_dialog div.row-indent { padding-left: 160px; }
|
148
|
+
/*autoclearing*/
|
149
|
+
.wym_dialog div.row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
150
|
+
.wym_dialog div.row { display: inline-block; }
|
151
|
+
/* Hides from IE-mac \*/
|
152
|
+
* html .wym_dialog div.row { height: 1%; }
|
153
|
+
.wym_dialog div.row { display: block; }
|
154
|
+
/* End hide from IE-mac */
|
155
|
+
|
156
|
+
/*WYMEDITOR_LINK*/
|
157
|
+
a.wym_wymeditor_link
|
158
|
+
{
|
159
|
+
text-indent: -9999px;
|
160
|
+
float: right;
|
161
|
+
display: block;
|
162
|
+
width: 50px;
|
163
|
+
height: 15px;
|
164
|
+
background: url(../wymeditor_icon.png);
|
165
|
+
background-position: 1px 1px;
|
166
|
+
background-repeat: no-repeat;
|
167
|
+
overflow: hidden;
|
168
|
+
text-decoration: none;
|
169
|
+
padding: 1px !important;
|
170
|
+
border: 1px solid #333 !important;
|
171
|
+
background-color: #FFF !important;
|
172
|
+
}
|
173
|
+
|
174
|
+
.wym_box
|
175
|
+
{
|
176
|
+
padding: 0px !important;
|
177
|
+
margin: 0px;
|
178
|
+
}
|
179
|
+
.wym_inner
|
180
|
+
{
|
181
|
+
border-left: 1px solid #FFF;
|
182
|
+
border-top: 1px solid #FFF;
|
183
|
+
border-right: 1px solid #FFF;
|
184
|
+
border-bottom: 1px solid #FFF;
|
185
|
+
padding: 5px;
|
186
|
+
background-color: #B8C1C4;
|
187
|
+
height: auto;
|
188
|
+
}
|
189
|
+
|
190
|
+
.clear {clear: both;}
|
191
|
+
|
192
|
+
div.wym_dropdown
|
193
|
+
{
|
194
|
+
cursor: pointer;
|
195
|
+
width: 138px !important;
|
196
|
+
margin: 0px 4px 10px 0px !important;
|
197
|
+
padding: 0px;
|
198
|
+
z-index: 1001;
|
199
|
+
display: block;
|
200
|
+
border: 1px solid red;
|
201
|
+
}
|
202
|
+
|
203
|
+
div.wym_dropdown ul
|
204
|
+
{
|
205
|
+
display: none;
|
206
|
+
width: 124px;
|
207
|
+
padding: 0px !important;
|
208
|
+
margin: 0px !important;
|
209
|
+
list-style-type: none;
|
210
|
+
list-style-image: none;
|
211
|
+
z-index: 1002;
|
212
|
+
position: absolute;
|
213
|
+
border-top: 1px solid #AAA;
|
214
|
+
}
|
215
|
+
|
216
|
+
div.wym_dropdown ul li
|
217
|
+
{
|
218
|
+
width: 146px;
|
219
|
+
height: 20px;
|
220
|
+
padding: 0px !important;
|
221
|
+
margin: 0px;
|
222
|
+
border: 1px solid #777;
|
223
|
+
border-top: none;
|
224
|
+
background: #DDD;
|
225
|
+
list-style-image: none;
|
226
|
+
}
|
227
|
+
|
228
|
+
div.wym_dropdown h2
|
229
|
+
{
|
230
|
+
width: 138px;
|
231
|
+
height: 16px;
|
232
|
+
color: #000 !important;
|
233
|
+
background-image: url(images/bg.selector.silver.gif) !important;
|
234
|
+
background-position: 0px -18px;
|
235
|
+
background-repeat: no-repeat;
|
236
|
+
border: none;
|
237
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
238
|
+
font-size: 12px !important;
|
239
|
+
font-weight: bold !important;
|
240
|
+
padding: 2px 0px 0px 10px !important;
|
241
|
+
margin: 0px !important;
|
242
|
+
}
|
243
|
+
|
244
|
+
.wym_skin_silver .wym_panel h2
|
245
|
+
{
|
246
|
+
width: 138px;
|
247
|
+
height: 16px;
|
248
|
+
color: #000 !important;
|
249
|
+
background-image: url(images/bg.header.gif) !important;
|
250
|
+
background-position: 0px 0px;
|
251
|
+
background-repeat: no-repeat;
|
252
|
+
border: none;
|
253
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
254
|
+
font-size: 12px !important;
|
255
|
+
font-weight: bold !important;
|
256
|
+
padding: 2px 0px 0px 10px !important;
|
257
|
+
margin: 0px !important;
|
258
|
+
}
|
259
|
+
|
260
|
+
.wym_skin_silver .wym_panel ul
|
261
|
+
{
|
262
|
+
margin-top: 0px !important;
|
263
|
+
}
|
264
|
+
|
265
|
+
.wym_skin_silver .wym_panel ul li
|
266
|
+
{
|
267
|
+
width: 146px;
|
268
|
+
height: 20px;
|
269
|
+
padding: 0px !important;
|
270
|
+
margin: 0px;
|
271
|
+
border: 1px solid #777;
|
272
|
+
border-top: none;
|
273
|
+
background: #DDD;
|
274
|
+
list-style-image: none;
|
275
|
+
}
|
276
|
+
|
277
|
+
.wym_skin_silver .wym_panel a,
|
278
|
+
div.wym_dropdown a
|
279
|
+
{
|
280
|
+
text-decoration: none;
|
281
|
+
font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
|
282
|
+
font-size: 12px;
|
283
|
+
padding: 5px 0px 0px 10px !important;
|
284
|
+
display: block;
|
285
|
+
width: 136px;
|
286
|
+
height: 15px;
|
287
|
+
color: #000;
|
288
|
+
text-align: left !important;
|
289
|
+
margin-left: 0px !important;
|
290
|
+
}
|
291
|
+
|
292
|
+
div.wym_dropdown a:hover,
|
293
|
+
.wym_skin_silver .wym_panel a:hover
|
294
|
+
{
|
295
|
+
background: #BBB;
|
296
|
+
border-bottom: none !important;
|
297
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
/* This file is part of the Silver skin for WYMeditor by Scott Edwin Lewis */
|
2
|
+
|
3
|
+
jQuery.fn.selectify = function() {
|
4
|
+
return this.each(function() {
|
5
|
+
jQuery(this).hover(
|
6
|
+
function() {
|
7
|
+
jQuery("h2", this).css("background-position", "0px -18px");
|
8
|
+
jQuery("ul", this).fadeIn("fast");
|
9
|
+
},
|
10
|
+
function() {
|
11
|
+
jQuery("h2", this).css("background-position", "");
|
12
|
+
jQuery("ul", this).fadeOut("fast");
|
13
|
+
}
|
14
|
+
);
|
15
|
+
});
|
16
|
+
};
|
17
|
+
|
18
|
+
WYMeditor.SKINS['silver'] = {
|
19
|
+
|
20
|
+
init: function(wym) {
|
21
|
+
|
22
|
+
//add some elements to improve the rendering
|
23
|
+
jQuery(wym._box)
|
24
|
+
.append('<div class="clear"></div>')
|
25
|
+
.wrapInner('<div class="wym_inner"></div>');
|
26
|
+
|
27
|
+
//render following sections as panels
|
28
|
+
jQuery(wym._box).find(wym._options.classesSelector)
|
29
|
+
.addClass("wym_panel");
|
30
|
+
|
31
|
+
//render following sections as buttons
|
32
|
+
jQuery(wym._box).find(wym._options.toolsSelector)
|
33
|
+
.addClass("wym_buttons");
|
34
|
+
|
35
|
+
//render following sections as dropdown menus
|
36
|
+
jQuery(wym._box).find(wym._options.containersSelector)
|
37
|
+
.addClass("wym_dropdown")
|
38
|
+
.selectify();
|
39
|
+
|
40
|
+
// auto add some margin to the main area sides if left area
|
41
|
+
// or right area are not empty (if they contain sections)
|
42
|
+
jQuery(wym._box).find("div.wym_area_right ul")
|
43
|
+
.parents("div.wym_area_right").show()
|
44
|
+
.parents(wym._options.boxSelector)
|
45
|
+
.find("div.wym_area_main")
|
46
|
+
.css({"margin-right": "155px"});
|
47
|
+
|
48
|
+
jQuery(wym._box).find("div.wym_area_left ul")
|
49
|
+
.parents("div.wym_area_left").show()
|
50
|
+
.parents(wym._options.boxSelector)
|
51
|
+
.find("div.wym_area_main")
|
52
|
+
.css({"margin-left": "155px"});
|
53
|
+
|
54
|
+
//make hover work under IE < 7
|
55
|
+
jQuery(wym._box).find(".wym_section").hover(function(){
|
56
|
+
jQuery(this).addClass("hover");
|
57
|
+
},function(){
|
58
|
+
jQuery(this).removeClass("hover");
|
59
|
+
});
|
60
|
+
}
|
61
|
+
};
|
Binary file
|
@@ -0,0 +1,134 @@
|
|
1
|
+
/*
|
2
|
+
* WYMeditor : what you see is What You Mean web-based editor
|
3
|
+
* Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
|
4
|
+
* Dual licensed under the MIT (MIT-license.txt)
|
5
|
+
* and GPL (GPL-license.txt) licenses.
|
6
|
+
*
|
7
|
+
* For further information visit:
|
8
|
+
* http://www.wymeditor.org/
|
9
|
+
*
|
10
|
+
* File Name:
|
11
|
+
* screen.css
|
12
|
+
* main stylesheet for the WYMeditor skin
|
13
|
+
* See the documentation for more info.
|
14
|
+
*
|
15
|
+
* File Authors:
|
16
|
+
* Daniel Reszka (d.reszka a-t wymeditor dotorg)
|
17
|
+
* Jean-Francois Hovinne
|
18
|
+
*/
|
19
|
+
|
20
|
+
/*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/
|
21
|
+
.wym_skin_twopanels p, .wym_skin_twopanels h2, .wym_skin_twopanels h3,
|
22
|
+
.wym_skin_twopanels ul, .wym_skin_twopanels li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; }
|
23
|
+
|
24
|
+
|
25
|
+
/*HIDDEN BY DEFAULT*/
|
26
|
+
.wym_skin_twopanels .wym_area_left { display: block; }
|
27
|
+
.wym_skin_twopanels .wym_area_right { display: block; }
|
28
|
+
|
29
|
+
|
30
|
+
/*TYPO*/
|
31
|
+
.wym_skin_twopanels { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; }
|
32
|
+
.wym_skin_twopanels h2 { font-size: 110%; /* = 11px */}
|
33
|
+
.wym_skin_twopanels h3 { font-size: 100%; /* = 10px */}
|
34
|
+
.wym_skin_twopanels li { font-size: 100%; /* = 10px */}
|
35
|
+
|
36
|
+
|
37
|
+
/*WYM_BOX*/
|
38
|
+
.wym_skin_twopanels { border: 1px solid gray; background: #f2f2f2; padding: 5px}
|
39
|
+
|
40
|
+
/*auto-clear the wym_box*/
|
41
|
+
.wym_skin_twopanels:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
42
|
+
* html .wym_skin_twopanels { height: 1%;}
|
43
|
+
|
44
|
+
|
45
|
+
/*WYM_HTML*/
|
46
|
+
.wym_skin_twopanels .wym_html { width: 98%;}
|
47
|
+
.wym_skin_twopanels .wym_html textarea { width: 100%; height: 200px; border: 1px solid gray; background: white; }
|
48
|
+
|
49
|
+
|
50
|
+
/*WYM_IFRAME*/
|
51
|
+
.wym_skin_twopanels .wym_iframe { width: 98%;}
|
52
|
+
.wym_skin_twopanels .wym_iframe iframe { width: 100%; height: 200px; border: 1px solid gray; background: white }
|
53
|
+
|
54
|
+
|
55
|
+
/*AREAS*/
|
56
|
+
.wym_skin_twopanels .wym_area_left { width: 100px; float: left;}
|
57
|
+
.wym_skin_twopanels .wym_area_right { width: 150px; float: right;}
|
58
|
+
.wym_skin_twopanels .wym_area_bottom { height: 1%; clear: both;}
|
59
|
+
* html .wym_skin_twopanels .wym_area_main { height: 1%;}
|
60
|
+
* html .wym_skin_twopanels .wym_area_top { height: 1%;}
|
61
|
+
*+html .wym_skin_twopanels .wym_area_top { height: 1%;}
|
62
|
+
|
63
|
+
/*SECTIONS SYSTEM*/
|
64
|
+
|
65
|
+
/*common defaults for all sections*/
|
66
|
+
.wym_skin_twopanels .wym_section { margin-bottom: 5px; }
|
67
|
+
.wym_skin_twopanels .wym_section h2,
|
68
|
+
.wym_skin_twopanels .wym_section h3 { padding: 1px 3px; margin: 0; }
|
69
|
+
.wym_skin_twopanels .wym_section a { padding: 0 3px; display: block; text-decoration: none; color: black; }
|
70
|
+
.wym_skin_twopanels .wym_section a:hover { background-color: yellow; }
|
71
|
+
/*hide section titles by default*/
|
72
|
+
.wym_skin_twopanels .wym_section h2 { display: none; }
|
73
|
+
/*disable any margin-collapse*/
|
74
|
+
.wym_skin_twopanels .wym_section { padding-top: 1px; padding-bottom: 1px; }
|
75
|
+
/*auto-clear sections*/
|
76
|
+
.wym_skin_twopanels .wym_section ul:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
77
|
+
* html .wym_skin_twopanels .wym_section ul { height: 1%;}
|
78
|
+
|
79
|
+
/*option: add this class to a section to make it render as a panel*/
|
80
|
+
.wym_skin_twopanels .wym_panel { }
|
81
|
+
.wym_skin_twopanels .wym_panel h2 { display: block; }
|
82
|
+
|
83
|
+
/*option: add this class to a section to make it render as a dropdown menu*/
|
84
|
+
.wym_skin_twopanels .wym_dropdown h2 { display: block; }
|
85
|
+
.wym_skin_twopanels .wym_dropdown ul { display: none; position: absolute; background: white; }
|
86
|
+
.wym_skin_twopanels .wym_dropdown:hover ul,
|
87
|
+
.wym_skin_twopanels .wym_dropdown.hover ul { display: block; }
|
88
|
+
|
89
|
+
/*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/
|
90
|
+
.wym_skin_twopanels .wym_buttons li { float:left;}
|
91
|
+
.wym_skin_twopanels .wym_buttons a { width: 20px; height: 20px; overflow: hidden; padding: 2px }
|
92
|
+
/*image replacements*/
|
93
|
+
.wym_skin_twopanels .wym_buttons li a { background: url(icons.png) no-repeat; text-indent: -9999px;}
|
94
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_strong a { background-position: 0 -382px;}
|
95
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_emphasis a { background-position: 0 -22px;}
|
96
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_superscript a { background-position: 0 -430px;}
|
97
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_subscript a { background-position: 0 -454px;}
|
98
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_ordered_list a { background-position: 0 -48px;}
|
99
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;}
|
100
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_indent a { background-position: 0 -574px;}
|
101
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_outdent a { background-position: 0 -598px;}
|
102
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_undo a { background-position: 0 -502px;}
|
103
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_redo a { background-position: 0 -526px;}
|
104
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_link a { background-position: 0 -96px;}
|
105
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_unlink a { background-position: 0 -168px;}
|
106
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_image a { background-position: 0 -121px;}
|
107
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_table a { background-position: 0 -144px;}
|
108
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_paste a { background-position: 0 -552px;}
|
109
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_html a { background-position: 0 -193px;}
|
110
|
+
.wym_skin_twopanels .wym_buttons li.wym_tools_preview a { background-position: 0 -408px;}
|
111
|
+
|
112
|
+
/*DECORATION*/
|
113
|
+
.wym_skin_twopanels .wym_section h2 { background: #ddd; border: solid gray; border-width: 0 0 1px;}
|
114
|
+
.wym_skin_twopanels .wym_section h2 span { color: gray;}
|
115
|
+
.wym_skin_twopanels .wym_panel { padding: 0; border: solid gray; border-width: 1px; background: white;}
|
116
|
+
.wym_skin_twopanels .wym_panel ul { margin: 2px 0 5px; }
|
117
|
+
.wym_skin_twopanels .wym_dropdown { padding: 0; border: solid gray; border-width: 1px 1px 0 1px; }
|
118
|
+
.wym_skin_twopanels .wym_dropdown ul { border: solid gray; border-width: 0 1px 1px 1px; margin-left: -1px; padding: 5px 10px 5px 3px;}
|
119
|
+
|
120
|
+
/*DIALOGS*/
|
121
|
+
.wym_dialog div.row { margin-bottom: 5px;}
|
122
|
+
.wym_dialog div.row input { margin-right: 5px;}
|
123
|
+
.wym_dialog div.row label { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; }
|
124
|
+
.wym_dialog div.row-indent { padding-left: 160px; }
|
125
|
+
/*autoclearing*/
|
126
|
+
.wym_dialog div.row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
127
|
+
.wym_dialog div.row { display: inline-block; }
|
128
|
+
/* Hides from IE-mac \*/
|
129
|
+
* html .wym_dialog div.row { height: 1%; }
|
130
|
+
.wym_dialog div.row { display: block; }
|
131
|
+
/* End hide from IE-mac */
|
132
|
+
|
133
|
+
/*WYMEDITOR_LINK*/
|
134
|
+
a.wym_wymeditor_link { text-indent: -9999px; float: right; display: block; width: 50px; height: 15px; background: url(../wymeditor_icon.png); overflow: hidden; text-decoration: none; }
|
@@ -0,0 +1,39 @@
|
|
1
|
+
WYMeditor.SKINS['twopanels'] = {
|
2
|
+
|
3
|
+
init: function(wym) {
|
4
|
+
|
5
|
+
//move the containers panel to the left area
|
6
|
+
jQuery(wym._box).find(wym._options.containersSelector)
|
7
|
+
.appendTo("div.wym_area_left");
|
8
|
+
|
9
|
+
//render following sections as panels
|
10
|
+
jQuery(wym._box).find(wym._options.classesSelector + ', '
|
11
|
+
+ wym._options.containersSelector)
|
12
|
+
.addClass("wym_panel");
|
13
|
+
|
14
|
+
//render following sections as buttons
|
15
|
+
jQuery(wym._box).find(wym._options.toolsSelector)
|
16
|
+
.addClass("wym_buttons");
|
17
|
+
|
18
|
+
// auto add some margin to the main area sides if left area
|
19
|
+
// or right area are not empty (if they contain sections)
|
20
|
+
jQuery(wym._box).find("div.wym_area_right ul")
|
21
|
+
.parents("div.wym_area_right").show()
|
22
|
+
.parents(wym._options.boxSelector)
|
23
|
+
.find("div.wym_area_main")
|
24
|
+
.css({"margin-right": "155px"});
|
25
|
+
|
26
|
+
jQuery(wym._box).find("div.wym_area_left ul")
|
27
|
+
.parents("div.wym_area_left").show()
|
28
|
+
.parents(wym._options.boxSelector)
|
29
|
+
.find("div.wym_area_main")
|
30
|
+
.css({"margin-left": "115px"});
|
31
|
+
|
32
|
+
//make hover work under IE < 7
|
33
|
+
jQuery(wym._box).find(".wym_section").hover(function(){
|
34
|
+
jQuery(this).addClass("hover");
|
35
|
+
},function(){
|
36
|
+
jQuery(this).removeClass("hover");
|
37
|
+
});
|
38
|
+
}
|
39
|
+
};
|
Binary file
|
data/lib/views/login.erb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<%= Milksteak::User %>
|
data/milksteak.gemspec
CHANGED
@@ -1,17 +1,34 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "milksteak/version"
|
4
|
+
require "milksteak/cms"
|
3
5
|
|
4
|
-
Gem::Specification.new do |
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "milksteak"
|
8
|
+
s.version = Milksteak::VERSION
|
9
|
+
s.authors = ["Bryan Thompson"]
|
10
|
+
s.email = ["bryan.thompson@firespring.com"]
|
11
|
+
s.homepage = ""
|
12
|
+
s.summary = %q{the cms that doesn't give a damn}
|
13
|
+
s.description = %q{really. it's just simple.}
|
10
14
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
s.rubyforge_project = "milksteak"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
# specify any dependencies here; for example:
|
23
|
+
s.add_development_dependency "rspec"
|
24
|
+
s.add_development_dependency "guard-rspec"
|
25
|
+
s.add_development_dependency "webmock"
|
26
|
+
s.add_development_dependency "rack-test"
|
27
|
+
|
28
|
+
#going to a simple flat-file storage for now
|
29
|
+
#s.add_runtime_dependency "tonic-cms"
|
30
|
+
|
31
|
+
s.add_runtime_dependency "liquid"
|
32
|
+
s.add_runtime_dependency "BlueCloth"
|
33
|
+
s.add_runtime_dependency "sinatra"
|
17
34
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "../../spec_helper.rb")
|
2
|
+
|
3
|
+
describe Milksteak do
|
4
|
+
it "should have milk_root settings" do
|
5
|
+
Milksteak::Admin.milk_root.should_not be_nil
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should get /" do
|
9
|
+
get "/milksteak"
|
10
|
+
last_response.status.should == 200
|
11
|
+
end
|
12
|
+
end
|