integral 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/logo.png +0 -0
- data/app/assets/javascripts/ckeditor/my_config.js.erb +26 -18
- data/app/assets/javascripts/ckeditor/plugins/autoembed/lang/lv.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/autoembed/plugin.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +14 -14
- data/app/assets/javascripts/ckeditor/plugins/autogrow/samples/autogrow.html +8 -8
- data/app/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/autoformat.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/searchcode.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/icons/uncommentselectedrange.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/images/autocomplete.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/images/autoformat.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/images/commentselectedrange.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/images/searchcode.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/images/uncommentselectedrange.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/beautify.min.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -6
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.handlebars.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.twig.min.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/lang/bg.js +7 -7
- data/app/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +231 -217
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/darcula.css +46 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/gruvbox-dark.css +34 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/idea.css +42 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +1 -1
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/lucario.css +37 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +5 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/oceanic-next.css +44 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/shadowfox.css +52 -0
- data/app/assets/javascripts/ckeditor/plugins/codemirror/theme/ssms.css +16 -0
- data/app/assets/javascripts/ckeditor/plugins/embedbase/lang/ar.js +15 -0
- data/app/assets/javascripts/ckeditor/plugins/embedbase/lang/lv.js +15 -0
- data/app/assets/javascripts/ckeditor/plugins/embedbase/plugin.js +1 -1
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/copywidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/editwidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/copywidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/editwidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/removewidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/hidpi/widget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/removewidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/icons/widget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/foundation-callout/plugin.js +86 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/dev/assets/image1.jpg +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/dev/assets/image2.jpg +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/dev/contents.css +35 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/dev/image2.html +339 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/dialogs/image2.js +553 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/icons/hidpi/image.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/icons/image.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/af.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ar.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/az.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/bg.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/bn.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/bs.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ca.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/cs.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/cy.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/da.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/de-ch.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/de.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/el.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/en-au.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/en-ca.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/en-gb.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/en.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/eo.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/es-mx.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/es.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/et.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/eu.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/fa.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/fi.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/fo.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/fr-ca.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/fr.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/gl.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/gu.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/he.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/hi.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/hr.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/hu.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/id.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/is.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/it.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ja.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ka.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/km.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ko.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ku.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/lt.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/lv.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/mk.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/mn.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ms.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/nb.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/nl.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/no.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/oc.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/pl.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/pt-br.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/pt.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ro.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ru.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/si.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/sk.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/sl.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/sq.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/sr-latn.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/sr.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/sv.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/th.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/tr.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/tt.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/ug.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/uk.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/vi.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/zh-cn.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/lang/zh.js +21 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/plugin.js +1720 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/samples/assets/image1.jpg +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/samples/assets/image2.jpg +0 -0
- data/app/assets/javascripts/ckeditor/plugins/image2/samples/image2.html +68 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/copywidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/editwidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/copywidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/editwidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/removewidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/hidpi/widget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/removewidget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/icons/widget.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/integral-card/plugin.js +86 -0
- data/app/assets/javascripts/ckeditor/plugins/integralrecentposts/dialogs/integralrecentposts.js +40 -0
- data/app/assets/javascripts/ckeditor/plugins/integralrecentposts/plugin.js +32 -0
- data/app/assets/javascripts/ckeditor/plugins/lineutils/dev/dnd.html +4 -4
- data/app/assets/javascripts/ckeditor/plugins/lineutils/dev/magicfinger.html +4 -4
- data/app/assets/javascripts/ckeditor/plugins/lineutils/plugin.js +7 -7
- data/app/assets/javascripts/ckeditor/plugins/linkballoon/README.md +5 -0
- data/app/assets/javascripts/ckeditor/plugins/linkballoon/assets/demo.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/linkballoon/plugin.js +25 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/az.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/bg.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/ca.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/cs.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/da.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/de-ch.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/de.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/en-au.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/en.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/eo.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/es-mx.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/es.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/et.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/eu.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/fa.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/fr.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/gl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/hr.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/hu.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/id.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/it.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/ja.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/km.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/ko.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/ku.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/lv.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/nb.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/nl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/oc.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/pl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/pt-br.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/pt.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/ro.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/ru.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/sk.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/sq.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/sv.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/tr.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/ug.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/uk.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/zh-cn.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/notification/lang/zh.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/notification/plugin.js +794 -784
- data/app/assets/javascripts/ckeditor/plugins/numericinput/LICENSE.md +363 -0
- data/app/assets/javascripts/ckeditor/plugins/numericinput/README.md +16 -0
- data/app/assets/javascripts/ckeditor/plugins/numericinput/plugin.js +354 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/README.md +50 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/icons/hidpi/openLink.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/icons/openLink.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/lang/bg.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/lang/de.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/lang/en.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/lang/pl.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/lang/ru.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/lang/uk.js +7 -0
- data/app/assets/javascripts/ckeditor/plugins/openlink/plugin.js +178 -0
- data/app/assets/javascripts/ckeditor/plugins/placeholder/dev/placeholder.html +5 -5
- data/app/assets/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/af.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ar.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/az.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/bg.js +5 -5
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ca.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/cs.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/cy.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/da.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/de-ch.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/de.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/el.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en-au.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en-gb.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/en.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/eo.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/es-mx.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/es.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/et.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/eu.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fa.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fi.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fr-ca.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/fr.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/gl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/he.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/hr.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/hu.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/id.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/it.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ja.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/km.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ko.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ku.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/lv.js +5 -5
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/nb.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/nl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/no.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/oc.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/pl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/pt-br.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/pt.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ro.js +12 -0
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ru.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/si.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sk.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sq.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/sv.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/th.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/tr.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/tt.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/ug.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/uk.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/vi.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/zh-cn.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/lang/zh.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/placeholder/plugin.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/placeholder/samples/placeholder.html +6 -6
- data/app/assets/javascripts/ckeditor/plugins/widget/dev/assets/simplebox/dialogs/simplebox.js +4 -4
- data/app/assets/javascripts/ckeditor/plugins/widget/dev/assets/simplebox/plugin.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/widget/dev/console.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/dev/nestedwidgets.html +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/dev/widgetstyles.html +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/af.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ar.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/az.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/bg.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ca.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/cs.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/cy.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/da.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/de-ch.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/de.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/el.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/en-au.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/en-gb.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/en.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/eo.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/es-mx.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/es.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/et.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/eu.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/fa.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/fi.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/fr.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/gl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/he.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/hr.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/hu.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/id.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/it.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ja.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/km.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ko.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ku.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/lv.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/nb.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/nl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/no.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/oc.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/pl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/pt-br.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/pt.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ro.js +8 -0
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ru.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/sk.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/sl.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/sq.js +3 -3
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/sv.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/tr.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/tt.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/ug.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/uk.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/vi.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/zh-cn.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/lang/zh.js +2 -2
- data/app/assets/javascripts/ckeditor/plugins/widget/plugin.js +235 -64
- data/app/assets/javascripts/ckeditor/plugins/widgetselection/plugin.js +6 -11
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ar.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/bg.js +17 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ca.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/cs.js +15 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/da.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/de.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/el.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/en.js +5 -1
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/es.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/eu.js +17 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/fa.js +13 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/fi.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/fr.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/he.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/hr.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/hu.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/it.js +4 -3
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ja.js +5 -5
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ko.js +16 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/nl.js +3 -2
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/no.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/pl.js +4 -3
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/pt-br.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/pt.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ro.js +15 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/ru.js +2 -1
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/sk.js +15 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/sv.js +5 -3
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/tr.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/uk.js +17 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/zh-cn.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/zh.js +14 -0
- data/app/assets/javascripts/ckeditor/plugins/wordcount/plugin.js +485 -302
- data/app/assets/javascripts/ckeditor/plugins/wordcount/samples/maxParagraphs.html +26 -0
- data/app/assets/javascripts/integral/backend.js +10 -14
- data/app/assets/javascripts/integral/frontend.js +0 -2
- data/app/assets/javascripts/integral/support/date_picker.coffee +54 -59
- data/app/assets/javascripts/integral/support/grid.coffee +11 -4
- data/app/assets/javascripts/integral/support/remote_form.coffee +13 -9
- data/app/assets/stylesheets/integral/frontend.sass +0 -1
- data/app/controllers/integral/application_controller.rb +3 -2
- data/app/controllers/integral/backend/activities_controller.rb +1 -1
- data/app/controllers/integral/backend/base_controller.rb +160 -24
- data/app/controllers/integral/backend/images_controller.rb +16 -49
- data/app/controllers/integral/backend/lists_controller.rb +15 -85
- data/app/controllers/integral/backend/pages_controller.rb +13 -116
- data/app/controllers/integral/backend/posts_controller.rb +21 -108
- data/app/controllers/integral/backend/settings_controller.rb +5 -10
- data/app/controllers/integral/backend/static_pages_controller.rb +4 -0
- data/app/controllers/integral/backend/users_controller.rb +23 -66
- data/app/controllers/integral/pages_controller.rb +2 -2
- data/app/controllers/integral/posts_controller.rb +2 -6
- data/app/decorators/integral/image_decorator.rb +1 -1
- data/app/decorators/integral/list_decorator.rb +1 -1
- data/app/decorators/integral/page_decorator.rb +1 -1
- data/app/decorators/integral/paginating_decorator.rb +6 -0
- data/app/decorators/integral/post_decorator.rb +34 -1
- data/app/decorators/integral/user_decorator.rb +1 -1
- data/app/decorators/integral/version_decorator.rb +1 -1
- data/app/helpers/integral/application_helper.rb +7 -0
- data/app/helpers/integral/blog_helper.rb +29 -0
- data/app/helpers/integral/social_helper.rb +0 -23
- data/app/models/integral/list.rb +1 -2
- data/app/models/integral/page.rb +1 -1
- data/app/models/integral/post.rb +1 -1
- data/app/models/integral/user.rb +6 -0
- data/app/policies/integral/base_policy.rb +1 -1
- data/app/views/devise/sessions/new.haml +2 -2
- data/app/views/integral/backend/images/_form.haml +8 -8
- data/app/views/integral/backend/images/edit.haml +10 -2
- data/app/views/integral/backend/lists/_child_fields.haml +1 -1
- data/app/views/integral/backend/lists/_form.haml +1 -1
- data/app/views/integral/backend/lists/_item_container.haml +2 -2
- data/app/views/integral/backend/lists/_item_modal.haml +1 -1
- data/app/views/integral/backend/lists/_list_item_fields.haml +4 -3
- data/app/views/integral/backend/lists/edit.haml +15 -1
- data/app/views/integral/backend/pages/_form.haml +3 -3
- data/app/views/integral/backend/pages/activities.haml +2 -2
- data/app/views/integral/backend/pages/activity.haml +1 -1
- data/app/views/integral/backend/pages/edit.haml +20 -0
- data/app/views/integral/backend/posts/_form.haml +9 -5
- data/app/views/integral/backend/posts/activities.haml +2 -2
- data/app/views/integral/backend/posts/activity.haml +1 -1
- data/app/views/integral/backend/posts/edit.haml +8 -3
- data/app/views/integral/backend/settings/sections/_social.haml +1 -3
- data/app/views/integral/backend/users/_form.haml +4 -4
- data/app/views/integral/backend/users/edit.haml +1 -1
- data/app/views/integral/backend/users/show.haml +7 -7
- data/app/views/integral/posts/index.haml +2 -1
- data/app/views/integral/posts/templates/default.haml +1 -2
- data/app/views/integral/shared/_share_modal.haml +0 -3
- data/app/views/integral/shared/_social_list_items.haml +6 -12
- data/config/locales/en.yml +23 -12
- data/lib/generators/templates/app.yml +0 -1
- data/lib/integral/engine.rb +1 -0
- data/lib/integral/router.rb +3 -1
- data/lib/integral/version.rb +1 -1
- data/public/integral/ckeditor_demo_content.html +0 -13
- metadata +186 -12
- data/app/assets/javascripts/ckeditor/plugins/wordcount/lang/jp.js +0 -13
- data/app/assets/javascripts/integral/support/date_picker/picker.date.js +0 -1435
- data/app/assets/javascripts/integral/support/date_picker/picker.js +0 -1132
- data/app/assets/stylesheets/integral/support/date-picker.scss +0 -16
- data/app/assets/stylesheets/integral/support/date_picker/_default.date.scss +0 -452
- data/app/assets/stylesheets/integral/support/date_picker/_default.scss +0 -201
- data/app/assets/stylesheets/integral/support/date_picker/materialize_clockpicker.sass +0 -220
- data/app/views/integral/backend/pages/edit.html.haml +0 -15
data/app/models/integral/post.rb
CHANGED
@@ -36,7 +36,7 @@ module Integral
|
|
36
36
|
alias featured_image image
|
37
37
|
|
38
38
|
# Scopes
|
39
|
-
scope :search, ->(query) { where('lower(title) LIKE ?', "%#{query.downcase}%") }
|
39
|
+
scope :search, ->(query) { where('lower(title) LIKE ? OR lower(slug) LIKE ?', "%#{query.downcase}%", "%#{query.downcase}%") }
|
40
40
|
|
41
41
|
# @return [Array] containing available human readable statuses against there numeric value
|
42
42
|
def self.available_statuses(opts = { reverse: false })
|
data/app/models/integral/user.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
.input-group
|
4
4
|
%span.input-group-label
|
5
5
|
= icon('envelope')
|
6
|
-
= f.input :email, autofocus: true, input_html: { class: 'input-group-field' }, label: false
|
6
|
+
= f.input :email, autofocus: true, input_html: { class: 'input-group-field', value: Rails.env.development? ? Integral::User.first&.email : nil }, label: false
|
7
7
|
|
8
8
|
.input-group
|
9
9
|
%span.input-group-label
|
10
10
|
= icon('key')
|
11
|
-
= f.input :password, input_html: { class: 'input-group-field', 'data-character-counter' => 'false' }, label: false
|
11
|
+
= f.input :password, input_html: { class: 'input-group-field', 'data-character-counter' => 'false', value: Rails.env.development? ? 'password' : nil }, label: false
|
12
12
|
= f.input :remember_me, as: :boolean
|
13
13
|
|
14
14
|
.form-actions
|
@@ -1,7 +1,7 @@
|
|
1
|
-
- @
|
1
|
+
- @resource ||= Integral::Image.new
|
2
2
|
- form_path ||= backend_img_index_url
|
3
3
|
|
4
|
-
= simple_form_for @
|
4
|
+
= simple_form_for @resource, validate: true, multipart: true, authenticity_token: true, url: form_path do |f|
|
5
5
|
= f.input :lock_version, as: :hidden
|
6
6
|
.grid-x.grid-padding-x
|
7
7
|
.cell.medium-8
|
@@ -19,23 +19,23 @@
|
|
19
19
|
.cell
|
20
20
|
.card
|
21
21
|
.card-section
|
22
|
-
- if @
|
23
|
-
= image_tag @
|
24
|
-
- if !@
|
22
|
+
- if @resource.persisted?
|
23
|
+
= image_tag @resource.url
|
24
|
+
- if !@resource.persisted? || Integral.editable_persisted_images
|
25
25
|
= f.input :file, :wrapper_html => { :class => "file-field" }, validate: { presence: true }, input_html: { accept: "image/*" }
|
26
26
|
- else
|
27
27
|
= f.input :file, as: :string, label: false, disabled: true
|
28
|
-
- if @
|
28
|
+
- if @resource.persisted?
|
29
29
|
.cell
|
30
30
|
.grid-x.grid-padding-x
|
31
31
|
.cell.medium-6
|
32
32
|
.card
|
33
33
|
.card-section
|
34
|
-
= f.input :dimensions, readonly: true, input_html: { value: @
|
34
|
+
= f.input :dimensions, readonly: true, input_html: { value: @resource.dimensions }
|
35
35
|
.cell.medium-6
|
36
36
|
.card
|
37
37
|
.card-section
|
38
|
-
= f.input :file_size, as: :string, readonly: true, input_html: { value: number_to_human_size(@
|
38
|
+
= f.input :file_size, as: :string, readonly: true, input_html: { value: number_to_human_size(@resource.file_size) }
|
39
39
|
|
40
40
|
.cell
|
41
41
|
= f.button :button
|
@@ -1,3 +1,11 @@
|
|
1
|
-
= content_for :title, t('.title', name: @
|
2
|
-
|
1
|
+
= content_for :title, t('.title', name: @resource.title)
|
2
|
+
|
3
|
+
-# = content_for :actionbar do
|
4
|
+
-# %ul.menu.horizontal
|
5
|
+
-# - if policy(Integral::Version).manager?
|
6
|
+
-# %li
|
7
|
+
-# = link_to activities_backend_page_url(@resource.id), class: 'button white' do
|
8
|
+
-# = icon('history')
|
9
|
+
-# = t('integral.navigation.activity')
|
3
10
|
|
11
|
+
= render 'form'
|
@@ -10,7 +10,7 @@
|
|
10
10
|
= icon('list', class: 'identifier')
|
11
11
|
.data
|
12
12
|
%span.title= formatted_item.title
|
13
|
-
%span.url= formatted_item.url
|
13
|
+
%span.url= CGI.unescape(formatted_item.url)
|
14
14
|
.actions
|
15
15
|
= icon('edit', class: 'action', 'data-open' => "list-item-modal-#{f.object.id}", class: 'modal-trigger')
|
16
16
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= simple_form_for [:backend, @
|
1
|
+
= simple_form_for [:backend, @resource], validate: true, html: { class: 'are-you-sure', 'data-confirm-dirty-form' => true, id: :list_form } do |f|
|
2
2
|
= f.input :lock_version, as: :hidden
|
3
3
|
.grid-x.grid-padding-x
|
4
4
|
.cell.medium-8
|
@@ -1,7 +1,7 @@
|
|
1
1
|
-# TODO - Use this partial to DRY up views.
|
2
2
|
-# Currently causes a stackoverflow
|
3
3
|
- formatted_item = Integral::ListItemRenderer.new(f.object)
|
4
|
-
- children_allowed ||= @
|
4
|
+
- children_allowed ||= @resource.children?
|
5
5
|
|
6
6
|
.list-item-container
|
7
7
|
.list-item{ 'data-persisted' => "#{f.object.persisted?}" }
|
@@ -10,7 +10,7 @@
|
|
10
10
|
= icon('list', class: 'identifier')
|
11
11
|
.data
|
12
12
|
%span.title= formatted_item.title
|
13
|
-
%span.url= formatted_item.url
|
13
|
+
%span.url= CGI.unescape(formatted_item.url)
|
14
14
|
.actions
|
15
15
|
= icon('edit', class: 'action', 'data-open' => "list-item-modal-#{f.object.id}", class: 'modal-trigger')
|
16
16
|
|
@@ -1,6 +1,7 @@
|
|
1
|
+
-# TODO: Tidy up this duplication also present in the child_fields partial - Attempted but was causing stack level issues
|
1
2
|
-# = render 'item_container', f: f
|
2
3
|
- formatted_item = Integral::ListItemRenderer.new(f.object)
|
3
|
-
- children_allowed ||= @
|
4
|
+
- children_allowed ||= @resource.children?
|
4
5
|
|
5
6
|
.list-item-container
|
6
7
|
= f.input :priority, as: :hidden, input_html: { class: 'priority-field' }
|
@@ -10,9 +11,9 @@
|
|
10
11
|
= icon('list', class: 'identifier')
|
11
12
|
.data
|
12
13
|
%span.title= formatted_item.title
|
13
|
-
%span.url= formatted_item.url
|
14
|
+
%span.url= CGI.unescape(formatted_item.url)
|
14
15
|
.actions
|
15
|
-
= icon('edit',
|
16
|
+
= icon('edit', 'data-open' => "list-item-modal-#{f.object.id}", class: 'modal-trigger')
|
16
17
|
|
17
18
|
- if children_allowed
|
18
19
|
.add-children
|
@@ -1,4 +1,18 @@
|
|
1
|
-
=
|
1
|
+
= content_for :actionbar do
|
2
|
+
%ul.menu.horizontal
|
3
|
+
- if policy(Integral::List).duplicate?
|
4
|
+
%li
|
5
|
+
= link_to duplicate_backend_list_url(@resource.id), class: 'button white', method: :post, data: { confirm: t('integral.actions.confirmation.clone') } do
|
6
|
+
= icon('history')
|
7
|
+
= t('integral.actions.clone')
|
8
|
+
|
9
|
+
-# - if policy(Integral::Version).manager?
|
10
|
+
-# %li
|
11
|
+
-# = link_to activities_backend_list_url(@resource.id), class: 'button white' do
|
12
|
+
-# = icon('history')
|
13
|
+
-# = t('integral.navigation.activity')
|
14
|
+
|
15
|
+
= simple_form_for [:backend, @resource], validate: true, html: { class: 'are-you-sure', 'data-confirm-dirty-form' => true, 'data-list-item-limit' => @resource.list_item_limit, id: :list_form } do |f|
|
2
16
|
= f.input :lock_version, as: :hidden
|
3
17
|
.grid-x.grid-padding-x
|
4
18
|
.cell.medium-6.flex-container
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= simple_form_for [:backend, @
|
1
|
+
= simple_form_for [:backend, @resource], validate: true, html: { id: 'resource_form', class: 'are-you-sure', 'data-confirm-dirty-form' => true } do |f|
|
2
2
|
= f.input :lock_version, as: :hidden
|
3
3
|
.grid-x.grid-padding-x
|
4
4
|
.cell.small-12.medium-8.large-9
|
@@ -18,7 +18,7 @@
|
|
18
18
|
.cell
|
19
19
|
.card
|
20
20
|
.card-section
|
21
|
-
= f.input :body, as: :ckeditor, input_html: { id: '
|
21
|
+
= f.input :body, as: :ckeditor, input_html: { id: 'resource_body_editor', ckeditor: { language: current_user.locale }, data: { 'ckeditor-class' => @resource.template } }
|
22
22
|
|
23
23
|
.cell.small-12.medium-4.large-3
|
24
24
|
.grid-y
|
@@ -38,7 +38,7 @@
|
|
38
38
|
.cell
|
39
39
|
.card
|
40
40
|
.card-section
|
41
|
-
= f.association :parent, collection: @
|
41
|
+
= f.association :parent, collection: @resource.available_parents.map {|p| [p.title, p.id]}, include_blank: true
|
42
42
|
.cell
|
43
43
|
.card.initial-overflow
|
44
44
|
.card-section
|
@@ -1,2 +1,2 @@
|
|
1
|
-
- content_for :title, t('.title', title: @
|
2
|
-
= render partial: 'integral/backend/activities/shared/listing', locals: { form_url: activities_backend_page_url(@
|
1
|
+
- content_for :title, t('.title', title: @resource.title)
|
2
|
+
= render partial: 'integral/backend/activities/shared/listing', locals: { form_url: activities_backend_page_url(@resource.id) }
|
@@ -1 +1 @@
|
|
1
|
-
= render partial: 'integral/backend/activities/shared/log', locals: { record: @
|
1
|
+
= render partial: 'integral/backend/activities/shared/log', locals: { record: @resource }
|
@@ -0,0 +1,20 @@
|
|
1
|
+
= content_for :title, t('.title', title: @resource.title)
|
2
|
+
|
3
|
+
= content_for :actionbar do
|
4
|
+
%ul.menu.horizontal
|
5
|
+
%li
|
6
|
+
= link_to @resource.path, class: 'button white' do
|
7
|
+
= icon('eye')
|
8
|
+
= t('integral.actions.view')
|
9
|
+
- if policy(Integral::Page).duplicate?
|
10
|
+
%li
|
11
|
+
= link_to duplicate_backend_page_url(@resource.id), class: 'button white', method: :post, data: { confirm: t('integral.actions.confirmation.clone') } do
|
12
|
+
= icon('history')
|
13
|
+
= t('integral.actions.clone')
|
14
|
+
- if policy(Integral::Version).manager?
|
15
|
+
%li
|
16
|
+
= link_to activities_backend_page_url(@resource.id), class: 'button white' do
|
17
|
+
= icon('history')
|
18
|
+
= t('integral.navigation.activity')
|
19
|
+
|
20
|
+
= render 'form'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= simple_form_for [:backend, @
|
1
|
+
= simple_form_for [:backend, @resource], validate: true, html: { id: 'resource_form', class: 'are-you-sure', 'data-confirm-dirty-form' => true } do |f|
|
2
2
|
= f.input :lock_version, as: :hidden
|
3
3
|
.grid-x.grid-padding-x
|
4
4
|
.cell.small-12.medium-9
|
@@ -6,7 +6,7 @@
|
|
6
6
|
.cell
|
7
7
|
.card
|
8
8
|
.card-section
|
9
|
-
= f.input :title
|
9
|
+
= f.input :title, input_html: { id: 'resource_title' }
|
10
10
|
.cell
|
11
11
|
.card
|
12
12
|
.card-section
|
@@ -14,11 +14,11 @@
|
|
14
14
|
.cell
|
15
15
|
.card
|
16
16
|
.card-section
|
17
|
-
= f.input :slug, input_html: { data: { slugify: '#
|
17
|
+
= f.input :slug, input_html: { data: { slugify: '#resource_title' }}
|
18
18
|
.cell
|
19
19
|
.card
|
20
20
|
.card-section
|
21
|
-
= f.input :body, as: :ckeditor, input_html: { id: '
|
21
|
+
= f.input :body, as: :ckeditor, input_html: { id: 'resource_body_editor', ckeditor: { language: current_user.locale }, data: { 'ckeditor-class' => 'integral-post' } }
|
22
22
|
|
23
23
|
.cell.small-12.medium-3
|
24
24
|
.grid-y
|
@@ -36,8 +36,12 @@
|
|
36
36
|
.card-section
|
37
37
|
%h2= t('integral.records.attributes.tags')
|
38
38
|
%hr.dark
|
39
|
-
= f.input :tag_list, label: false, input_html: { value: @
|
39
|
+
= f.input :tag_list, label: false, input_html: { value: @resource.tag_list_on(@resource.tag_context).join(','), data: { role: "materialtags", typeahead: Integral::Post.tag_counts.collect(&:name).join(' ') } }
|
40
40
|
%label.small Seperate tags with spaces
|
41
|
+
.cell
|
42
|
+
.card
|
43
|
+
.card-section
|
44
|
+
= f.association :user
|
41
45
|
.cell
|
42
46
|
.card.initial-overflow
|
43
47
|
.card-section
|
@@ -1,3 +1,3 @@
|
|
1
|
-
- content_for :title, t('.title', title: @
|
1
|
+
- content_for :title, t('.title', title: @resource.title)
|
2
2
|
|
3
|
-
= render partial: 'integral/backend/activities/shared/listing', locals: { form_url: activities_backend_post_url(@
|
3
|
+
= render partial: 'integral/backend/activities/shared/listing', locals: { form_url: activities_backend_post_url(@resource.id) }
|
@@ -1 +1 @@
|
|
1
|
-
= render partial: 'integral/backend/activities/shared/log', locals: { record: @
|
1
|
+
= render partial: 'integral/backend/activities/shared/log', locals: { record: @resource }
|
@@ -1,14 +1,19 @@
|
|
1
|
-
= content_for :title, t('.title', name: @
|
1
|
+
= content_for :title, t('.title', name: @resource.title)
|
2
2
|
|
3
3
|
= content_for :actionbar do
|
4
4
|
%ul.menu.horizontal
|
5
5
|
%li
|
6
|
-
= link_to post_url(@
|
6
|
+
= link_to post_url(@resource), class: 'button white' do
|
7
7
|
= icon('eye')
|
8
8
|
= t('integral.actions.view')
|
9
|
+
- if policy(Integral::Post).duplicate?
|
10
|
+
%li
|
11
|
+
= link_to duplicate_backend_post_url(@resource.id), class: 'button white', method: :post, data: { confirm: t('integral.actions.confirmation.clone') } do
|
12
|
+
= icon('history')
|
13
|
+
= t('integral.actions.clone')
|
9
14
|
- if policy(Integral::Version).manager?
|
10
15
|
%li
|
11
|
-
= link_to activities_backend_post_url(@
|
16
|
+
= link_to activities_backend_post_url(@resource.id), class: 'button white' do
|
12
17
|
= icon('history')
|
13
18
|
= t('integral.navigation.activity')
|
14
19
|
|
@@ -5,12 +5,10 @@
|
|
5
5
|
.cell.medium-6
|
6
6
|
= render 'input', f: f, name: 'facebook_url'
|
7
7
|
.cell.medium-6
|
8
|
-
= render 'input', f: f, name: '
|
8
|
+
= render 'input', f: f, name: 'instagram_url'
|
9
9
|
.cell.medium-6
|
10
10
|
= render 'input', f: f, name: 'linkedin_url'
|
11
11
|
.cell.medium-6
|
12
12
|
= render 'input', f: f, name: 'youtube_url'
|
13
|
-
.cell.medium-6
|
14
|
-
= render 'input', f: f, name: 'linkedin_url'
|
15
13
|
.cell.medium-6
|
16
14
|
= render 'input', f: f, name: 'github_url'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= simple_form_for [:backend, @
|
1
|
+
= simple_form_for [:backend, @resource], validate: true, html: { id: 'user_form', class: 'are-you-sure' } do |f|
|
2
2
|
= f.input :lock_version, as: :hidden
|
3
3
|
.grid-x.grid-padding-x
|
4
4
|
.cell.small-12.medium-8.large-9
|
@@ -32,7 +32,7 @@
|
|
32
32
|
- if roles["#{object_name}#{role_type}"].present?
|
33
33
|
%td
|
34
34
|
%span.checkbox
|
35
|
-
= check_box_tag 'user[role_ids][]', roles["#{object_name}#{role_type}"], @
|
35
|
+
= check_box_tag 'user[role_ids][]', roles["#{object_name}#{role_type}"], @resource.role_ids.include?(roles["#{object_name}#{role_type}"]), id: "#{object_name}#{role_type}", class: 'filled-in'
|
36
36
|
= label_tag "#{object_name}#{role_type}", ' '.html_safe
|
37
37
|
- else
|
38
38
|
%td
|
@@ -44,8 +44,8 @@
|
|
44
44
|
.card-section
|
45
45
|
%h2= t('integral.records.attributes.avatar')
|
46
46
|
%hr.dark
|
47
|
-
- if @
|
48
|
-
= image_tag @
|
47
|
+
- if @resource.avatar.present?
|
48
|
+
= image_tag @resource.avatar.url(:medium)
|
49
49
|
= f.input :avatar, as: :string, disabled: true, label: false
|
50
50
|
= f.input :avatar, label: false
|
51
51
|
.cell
|
@@ -1,4 +1,4 @@
|
|
1
|
-
= content_for :title, t('.title', name: @
|
1
|
+
= content_for :title, t('.title', name: @resource.name)
|
2
2
|
.grid-x.grid-padding-x
|
3
3
|
.cell.small-12.medium-6
|
4
4
|
.grid-y
|
@@ -7,22 +7,22 @@
|
|
7
7
|
.card-section
|
8
8
|
.grid-x.grid-padding-x
|
9
9
|
.cell.medium-4
|
10
|
-
= image_tag @
|
10
|
+
= image_tag @resource.avatar.url(:small), class: :avatar
|
11
11
|
.cell.medium-8
|
12
|
-
= link_to edit_backend_user_url(@
|
12
|
+
= link_to edit_backend_user_url(@resource), class: :settings do
|
13
13
|
= icon('cog')
|
14
|
-
%h2= @
|
14
|
+
%h2= @resource.name
|
15
15
|
-# TODO: Implement title/position for Integral::User
|
16
16
|
-#%h3 Director
|
17
17
|
%p
|
18
18
|
= icon('envelope')
|
19
|
-
= @
|
19
|
+
= @resource.email
|
20
20
|
%p
|
21
21
|
= icon('calendar')
|
22
|
-
= t('.member_since', start_date: l(@
|
22
|
+
= t('.member_since', start_date: l(@resource.created_at))
|
23
23
|
|
24
24
|
.roles
|
25
|
-
- @
|
25
|
+
- @resource.roles.each do |role|
|
26
26
|
.label= role.label
|
27
27
|
-# .cell
|
28
28
|
-# .card
|
@@ -1,6 +1,7 @@
|
|
1
|
+
= render_posts_as_json_ld(@posts.decorate)
|
2
|
+
|
1
3
|
= render layout: 'integral/shared/blog_layout', locals: { title: t('.title'), subtitle: t('.subtitle'), image: image_url('integral/posts-hero-banner.jpg') } do
|
2
4
|
%ul.post-list
|
3
5
|
- @posts.decorate.each do |post|
|
4
6
|
%li= render partial: 'integral/posts/item', locals: { post: post }
|
5
7
|
= will_paginate @posts, renderer: FoundationPagination::Rails
|
6
|
-
|
@@ -1,3 +1,4 @@
|
|
1
|
+
= render_post_as_json_ld(@post)
|
1
2
|
= link_to 'Edit', edit_backend_post_url(@post.id), class: 'button primary button--edit-resource', data: { 'turbolinks' => 'false' } if current_user.present?
|
2
3
|
= link_to posts_url, class: 'view-all' do
|
3
4
|
= icon('list')
|
@@ -15,8 +16,6 @@
|
|
15
16
|
= icon('facebook')
|
16
17
|
= link_to twitter_share_url(message: @post.title), target: :blank do
|
17
18
|
= icon('twitter')
|
18
|
-
= link_to google_plus_share_url, target: :blank do
|
19
|
-
= icon('google-plus')
|
20
19
|
= link_to linkedin_share_url(message: @post.title), target: :blank do
|
21
20
|
= icon('linkedin')
|
22
21
|
|
@@ -8,9 +8,6 @@
|
|
8
8
|
= link_to twitter_share_url, class: 'button twitter' do
|
9
9
|
= icon('twitter')
|
10
10
|
Twitter
|
11
|
-
= link_to google_plus_share_url, class: 'button google-plus' do
|
12
|
-
= icon('google')
|
13
|
-
Google+
|
14
11
|
= link_to canonical_url, class: 'button copy-url hollow' do
|
15
12
|
= icon('copy')
|
16
13
|
%span= t('integral.actions.copy_url')
|
@@ -1,41 +1,35 @@
|
|
1
1
|
- if github_url.present?
|
2
2
|
%li
|
3
|
-
= link_to github_url do
|
3
|
+
= link_to github_url, target: :blank, rel: 'noopener' do
|
4
4
|
= icon('github')
|
5
5
|
%span Github
|
6
6
|
|
7
7
|
- if twitter_url.present?
|
8
8
|
%li
|
9
|
-
= link_to twitter_url do
|
9
|
+
= link_to twitter_url, target: :blank, rel: 'noopener' do
|
10
10
|
= icon('twitter')
|
11
11
|
%span Twitter
|
12
12
|
|
13
13
|
- if facebook_url.present?
|
14
14
|
%li
|
15
|
-
= link_to facebook_url do
|
15
|
+
= link_to facebook_url, target: :blank, rel: 'noopener' do
|
16
16
|
= icon('facebook')
|
17
17
|
%span Facebook
|
18
18
|
|
19
19
|
- if instagram_url.present?
|
20
20
|
%li
|
21
|
-
= link_to instagram_url do
|
21
|
+
= link_to instagram_url, target: :blank, rel: 'noopener' do
|
22
22
|
= icon('instagram')
|
23
23
|
%span Instagram
|
24
24
|
|
25
25
|
- if linkedin_url.present?
|
26
26
|
%li
|
27
|
-
= link_to linkedin_url do
|
27
|
+
= link_to linkedin_url, target: :blank, rel: 'noopener' do
|
28
28
|
= icon('linkedin')
|
29
29
|
%span Linkedin
|
30
30
|
|
31
31
|
- if youtube_url.present?
|
32
32
|
%li
|
33
|
-
= link_to youtube_url do
|
33
|
+
= link_to youtube_url, target: :blank, rel: 'noopener' do
|
34
34
|
= icon('youtube')
|
35
35
|
%span Youtube
|
36
|
-
|
37
|
-
- if google_plus_url.present?
|
38
|
-
%li
|
39
|
-
= link_to google_plus_url do
|
40
|
-
= icon('google-plus')
|
41
|
-
%span Google
|