HornsAndHooves-publify_core 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +102 -0
- data/MIT-LICENSE +21 -0
- data/README.md +9 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/fonts/open-sans-bold.woff +0 -0
- data/app/assets/fonts/open-sans.woff +0 -0
- data/app/assets/images/admin/loading.gif +0 -0
- data/app/assets/images/admin/typologo.gif +0 -0
- data/app/assets/images/calendar_date_select/calendar.gif +0 -0
- data/app/assets/images/close.gif +0 -0
- data/app/assets/images/closelabel.gif +0 -0
- data/app/assets/images/go.png +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/nextlabel.gif +0 -0
- data/app/assets/images/overlay.png +0 -0
- data/app/assets/images/powered.gif +0 -0
- data/app/assets/images/prevlabel.gif +0 -0
- data/app/assets/images/spinner-blue.gif +0 -0
- data/app/assets/images/spinner.gif +0 -0
- data/app/assets/images/thumb_blank.jpg +0 -0
- data/app/assets/javascripts/application.js +2 -0
- data/app/assets/javascripts/bootstrap/affix.js +164 -0
- data/app/assets/javascripts/bootstrap/alert.js +95 -0
- data/app/assets/javascripts/bootstrap/button.js +125 -0
- data/app/assets/javascripts/bootstrap/collapse.js +212 -0
- data/app/assets/javascripts/bootstrap/dropdown.js +165 -0
- data/app/assets/javascripts/bootstrap/modal.js +358 -0
- data/app/assets/javascripts/bootstrap/tab.js +155 -0
- data/app/assets/javascripts/bootstrap/transition.js +59 -0
- data/app/assets/javascripts/bootstrap-sprockets.js +8 -0
- data/app/assets/javascripts/cookies.js +60 -0
- data/app/assets/javascripts/datetimepicker.js +1470 -0
- data/app/assets/javascripts/lang/da_DK.js +17 -0
- data/app/assets/javascripts/lang/default.js +21 -0
- data/app/assets/javascripts/lang/en_US.js +21 -0
- data/app/assets/javascripts/lang/fr_FR.js +21 -0
- data/app/assets/javascripts/lang/nl_NL.js +21 -0
- data/app/assets/javascripts/lang/zh_TW.js +17 -0
- data/app/assets/javascripts/lightbox.js +350 -0
- data/app/assets/javascripts/observe.js +28 -0
- data/app/assets/javascripts/publify.js +11 -0
- data/app/assets/javascripts/publify_admin.js +104 -0
- data/app/assets/javascripts/quicktags.js +448 -0
- data/app/assets/javascripts/set-timeago-lang.js +3 -0
- data/app/assets/javascripts/sidebar.js +28 -0
- data/app/assets/javascripts/spinnable.js +5 -0
- data/app/assets/javascripts/tagmanager.js +481 -0
- data/app/assets/javascripts/typeahead.js +1139 -0
- data/app/assets/stylesheets/_bootstrap-compass.scss +9 -0
- data/app/assets/stylesheets/_bootstrap-mincer.scss +19 -0
- data/app/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
- data/app/assets/stylesheets/_bootstrap.scss +43 -0
- data/app/assets/stylesheets/accounts.css.scss +7 -0
- data/app/assets/stylesheets/administration_structure.css.scss +255 -0
- data/app/assets/stylesheets/bootstrap/_alerts.scss +73 -0
- data/app/assets/stylesheets/bootstrap/_button-groups.scss +242 -0
- data/app/assets/stylesheets/bootstrap/_buttons.scss +168 -0
- data/app/assets/stylesheets/bootstrap/_close.scss +37 -0
- data/app/assets/stylesheets/bootstrap/_code.scss +69 -0
- data/app/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
- data/app/assets/stylesheets/bootstrap/_dropdowns.scss +213 -0
- data/app/assets/stylesheets/bootstrap/_forms.scss +586 -0
- data/app/assets/stylesheets/bootstrap/_glyphicons.scss +307 -0
- data/app/assets/stylesheets/bootstrap/_grid.scss +94 -0
- data/app/assets/stylesheets/bootstrap/_labels.scss +66 -0
- data/app/assets/stylesheets/bootstrap/_media.scss +66 -0
- data/app/assets/stylesheets/bootstrap/_mixins.scss +37 -0
- data/app/assets/stylesheets/bootstrap/_modals.scss +150 -0
- data/app/assets/stylesheets/bootstrap/_navbar.scss +479 -0
- data/app/assets/stylesheets/bootstrap/_navs.scss +242 -0
- data/app/assets/stylesheets/bootstrap/_normalize.scss +427 -0
- data/app/assets/stylesheets/bootstrap/_pagination.scss +86 -0
- data/app/assets/stylesheets/bootstrap/_panels.scss +222 -0
- data/app/assets/stylesheets/bootstrap/_print.scss +99 -0
- data/app/assets/stylesheets/bootstrap/_scaffolding.scss +160 -0
- data/app/assets/stylesheets/bootstrap/_tables.scss +234 -0
- data/app/assets/stylesheets/bootstrap/_theme.scss +224 -0
- data/app/assets/stylesheets/bootstrap/_type.scss +296 -0
- data/app/assets/stylesheets/bootstrap/_utilities.scss +55 -0
- data/app/assets/stylesheets/bootstrap/_variables.scss +654 -0
- data/app/assets/stylesheets/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +15 -0
- data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +56 -0
- data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +82 -0
- data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +56 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/_image.scss +28 -0
- data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
- data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +20 -0
- data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +17 -0
- data/app/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/app/assets/stylesheets/coderay.css +135 -0
- data/app/assets/stylesheets/datetimepicker.css +306 -0
- data/app/assets/stylesheets/lightbox.css +63 -0
- data/app/assets/stylesheets/publify.css.scss +9 -0
- data/app/assets/stylesheets/publify_admin.css.scss +10 -0
- data/app/assets/stylesheets/rss.css +53 -0
- data/app/assets/stylesheets/sidebar_admin.css.scss +36 -0
- data/app/assets/stylesheets/tagmanager.css +102 -0
- data/app/assets/stylesheets/user-styles.css +29 -0
- data/app/controllers/accounts_controller.rb +4 -0
- data/app/controllers/admin/base_controller.rb +27 -0
- data/app/controllers/admin/content_controller.rb +194 -0
- data/app/controllers/admin/dashboard_controller.rb +33 -0
- data/app/controllers/admin/feedback_controller.rb +160 -0
- data/app/controllers/admin/notes_controller.rb +73 -0
- data/app/controllers/admin/pages_controller.rb +73 -0
- data/app/controllers/admin/post_types_controller.rb +57 -0
- data/app/controllers/admin/profiles_controller.rb +57 -0
- data/app/controllers/admin/redirects_controller.rb +51 -0
- data/app/controllers/admin/resources_controller.rb +36 -0
- data/app/controllers/admin/seo_controller.rb +46 -0
- data/app/controllers/admin/settings_controller.rb +53 -0
- data/app/controllers/admin/sidebar_controller.rb +67 -0
- data/app/controllers/admin/tags_controller.rb +55 -0
- data/app/controllers/admin/themes_controller.rb +31 -0
- data/app/controllers/admin/users_controller.rb +67 -0
- data/app/controllers/articles_controller.rb +215 -0
- data/app/controllers/authors_controller.rb +30 -0
- data/app/controllers/base_controller.rb +43 -0
- data/app/controllers/comments_controller.rb +67 -0
- data/app/controllers/content_controller.rb +24 -0
- data/app/controllers/feedback_controller.rb +13 -0
- data/app/controllers/notes_controller.rb +35 -0
- data/app/controllers/setup_controller.rb +61 -0
- data/app/controllers/tags_controller.rb +50 -0
- data/app/controllers/text_controller.rb +7 -0
- data/app/controllers/textfilter_controller.rb +5 -0
- data/app/controllers/theme_controller.rb +63 -0
- data/app/controllers/xml_controller.rb +20 -0
- data/app/helpers/admin/base_helper.rb +87 -0
- data/app/helpers/admin/feedback_helper.rb +53 -0
- data/app/helpers/articles_helper.rb +10 -0
- data/app/helpers/authors_helper.rb +30 -0
- data/app/helpers/base_helper.rb +257 -0
- data/app/helpers/blog_helper.rb +14 -0
- data/app/helpers/xml_helper.rb +18 -0
- data/app/jobs/application_job.rb +5 -0
- data/app/mailers/notification_mailer.rb +40 -0
- data/app/models/ability.rb +53 -0
- data/app/models/archives_sidebar.rb +45 -0
- data/app/models/article/factory.rb +64 -0
- data/app/models/article.rb +308 -0
- data/app/models/blog.rb +280 -0
- data/app/models/comment.rb +57 -0
- data/app/models/config_manager.rb +83 -0
- data/app/models/content.rb +118 -0
- data/app/models/content_base.rb +88 -0
- data/app/models/feedback.rb +250 -0
- data/app/models/meta_sidebar.rb +10 -0
- data/app/models/note.rb +152 -0
- data/app/models/page.rb +42 -0
- data/app/models/page_sidebar.rb +14 -0
- data/app/models/ping.rb +5 -0
- data/app/models/post_type.rb +16 -0
- data/app/models/redirect.rb +51 -0
- data/app/models/redirection.rb +6 -0
- data/app/models/resource.rb +12 -0
- data/app/models/search_sidebar.rb +9 -0
- data/app/models/sidebar.rb +142 -0
- data/app/models/static_sidebar.rb +22 -0
- data/app/models/tag.rb +71 -0
- data/app/models/tag_sidebar.rb +30 -0
- data/app/models/text_filter.rb +141 -0
- data/app/models/trackback.rb +46 -0
- data/app/models/trigger.rb +34 -0
- data/app/models/user.rb +142 -0
- data/app/services/title_builder.rb +88 -0
- data/app/uploaders/resource_uploader.rb +63 -0
- data/app/views/accounts/confirm.html.erb +7 -0
- data/app/views/admin/content/_article_list.html.erb +26 -0
- data/app/views/admin/content/_form.html.erb +145 -0
- data/app/views/admin/content/autosave.js.erb +5 -0
- data/app/views/admin/content/edit.html.erb +3 -0
- data/app/views/admin/content/index.html.erb +48 -0
- data/app/views/admin/content/index.js.erb +1 -0
- data/app/views/admin/content/new.html.erb +3 -0
- data/app/views/admin/dashboard/_comment.html.erb +18 -0
- data/app/views/admin/dashboard/_comments.html.erb +10 -0
- data/app/views/admin/dashboard/_drafts.html.erb +25 -0
- data/app/views/admin/dashboard/_overview.html.erb +21 -0
- data/app/views/admin/dashboard/_welcome.html.erb +28 -0
- data/app/views/admin/dashboard/index.html.erb +16 -0
- data/app/views/admin/feedback/_button.html.erb +19 -0
- data/app/views/admin/feedback/_feedback.html.erb +7 -0
- data/app/views/admin/feedback/_ham.html.erb +17 -0
- data/app/views/admin/feedback/_spam.html.erb +23 -0
- data/app/views/admin/feedback/article.html.erb +69 -0
- data/app/views/admin/feedback/edit.html.erb +48 -0
- data/app/views/admin/feedback/ham.js +1 -0
- data/app/views/admin/feedback/index.html.erb +53 -0
- data/app/views/admin/feedback/spam.js +1 -0
- data/app/views/admin/migrations/show.html.erb +39 -0
- data/app/views/admin/notes/_form.html.erb +37 -0
- data/app/views/admin/notes/_header.html.erb +6 -0
- data/app/views/admin/notes/_list.html.erb +13 -0
- data/app/views/admin/notes/_note.html.erb +14 -0
- data/app/views/admin/notes/edit.html.erb +11 -0
- data/app/views/admin/notes/index.html.erb +11 -0
- data/app/views/admin/notes/show.html.erb +14 -0
- data/app/views/admin/pages/_form.html.erb +101 -0
- data/app/views/admin/pages/_pages.html.erb +21 -0
- data/app/views/admin/pages/edit.html.erb +1 -0
- data/app/views/admin/pages/index.html.erb +17 -0
- data/app/views/admin/pages/new.html.erb +1 -0
- data/app/views/admin/post_types/_index_and_form.html.erb +65 -0
- data/app/views/admin/post_types/edit.html.erb +1 -0
- data/app/views/admin/post_types/index.html.erb +1 -0
- data/app/views/admin/profiles/index.html.erb +10 -0
- data/app/views/admin/redirects/_index_and_form.html.erb +68 -0
- data/app/views/admin/redirects/edit.html.erb +1 -0
- data/app/views/admin/redirects/index.html.erb +1 -0
- data/app/views/admin/resources/index.html.erb +72 -0
- data/app/views/admin/seo/_general.html.erb +104 -0
- data/app/views/admin/seo/_permalinks.html.erb +53 -0
- data/app/views/admin/seo/_titles.html.erb +209 -0
- data/app/views/admin/seo/show.html.erb +28 -0
- data/app/views/admin/settings/display.html.erb +101 -0
- data/app/views/admin/settings/feedback.html.erb +118 -0
- data/app/views/admin/settings/index.html.erb +73 -0
- data/app/views/admin/settings/write.html.erb +69 -0
- data/app/views/admin/shared/_edit.html.erb +4 -0
- data/app/views/admin/shared/_menu.html.erb +121 -0
- data/app/views/admin/shared/_twitter_alert.html.erb +3 -0
- data/app/views/admin/sidebar/_available.html.erb +6 -0
- data/app/views/admin/sidebar/_available.json.erb +6 -0
- data/app/views/admin/sidebar/_config.html.erb +27 -0
- data/app/views/admin/sidebar/_target.html.erb +9 -0
- data/app/views/admin/sidebar/_target_sidebar.html.erb +20 -0
- data/app/views/admin/sidebar/destroy.js.erb +1 -0
- data/app/views/admin/sidebar/index.html.erb +31 -0
- data/app/views/admin/sidebar/sortable.js.erb +3 -0
- data/app/views/admin/sidebar/update.js.erb +2 -0
- data/app/views/admin/tags/_index_and_form.html.erb +59 -0
- data/app/views/admin/tags/edit.html.erb +1 -0
- data/app/views/admin/tags/index.html.erb +1 -0
- data/app/views/admin/themes/index.html.erb +27 -0
- data/app/views/admin/users/_form.html.erb +215 -0
- data/app/views/admin/users/edit.html.erb +8 -0
- data/app/views/admin/users/index.html.erb +39 -0
- data/app/views/admin/users/new.html.erb +8 -0
- data/app/views/archives_sidebar/_content.html.erb +13 -0
- data/app/views/articles/_archives_article.html.erb +9 -0
- data/app/views/articles/_article.html.erb +9 -0
- data/app/views/articles/_article_author.html.erb +4 -0
- data/app/views/articles/_article_collection.html.erb +8 -0
- data/app/views/articles/_article_content.html.erb +5 -0
- data/app/views/articles/_article_excerpt.html.erb +15 -0
- data/app/views/articles/_article_links.html.erb +12 -0
- data/app/views/articles/_comment.html.erb +1 -0
- data/app/views/articles/_comment_errors.html.erb +2 -0
- data/app/views/articles/_comment_form.html.erb +48 -0
- data/app/views/articles/_comment_list.html.erb +5 -0
- data/app/views/articles/_comment_preview.html.erb +4 -0
- data/app/views/articles/_full_article_content.html.erb +4 -0
- data/app/views/articles/_password_form.html.erb +10 -0
- data/app/views/articles/_trackback.html.erb +6 -0
- data/app/views/articles/archives.html.erb +15 -0
- data/app/views/articles/comment.js.erb +5 -0
- data/app/views/articles/comment_failed.js.erb +3 -0
- data/app/views/articles/error.html.erb +3 -0
- data/app/views/articles/feedback_atom_feed.atom.builder +10 -0
- data/app/views/articles/feedback_rss_feed.rss.builder +21 -0
- data/app/views/articles/index.html.erb +1 -0
- data/app/views/articles/index_atom_feed.atom.builder +9 -0
- data/app/views/articles/index_rss_feed.rss.builder +20 -0
- data/app/views/articles/live_search.html.erb +10 -0
- data/app/views/articles/read.html.erb +43 -0
- data/app/views/articles/search.html.erb +8 -0
- data/app/views/articles/trackback.xml.builder +7 -0
- data/app/views/articles/view_page.html.erb +3 -0
- data/app/views/authors/show.html.erb +30 -0
- data/app/views/authors/show_atom_feed.atom.builder +9 -0
- data/app/views/authors/show_rss_feed.rss.builder +20 -0
- data/app/views/comments/_comment.html.erb +17 -0
- data/app/views/comments/preview.html.erb +1 -0
- data/app/views/comments/preview.js.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +11 -0
- data/app/views/devise/passwords/edit.html.erb +28 -0
- data/app/views/devise/passwords/new.html.erb +20 -0
- data/app/views/devise/registrations/new.html.erb +36 -0
- data/app/views/devise/sessions/new.html.erb +32 -0
- data/app/views/devise/shared/_links.html.erb +11 -0
- data/app/views/errors/404.html.erb +2 -0
- data/app/views/feedback/index.atom.builder +9 -0
- data/app/views/feedback/index.rss.builder +20 -0
- data/app/views/layouts/accounts.html.erb +33 -0
- data/app/views/layouts/administration.html.erb +37 -0
- data/app/views/layouts/default.html.erb +33 -0
- data/app/views/layouts/editor.html.erb +17 -0
- data/app/views/meta_sidebar/_content.html.erb +8 -0
- data/app/views/notes/_note.html.erb +16 -0
- data/app/views/notes/error.html.erb +3 -0
- data/app/views/notes/index.html.erb +15 -0
- data/app/views/notes/show.html.erb +5 -0
- data/app/views/notes/show_in_reply.html.erb +18 -0
- data/app/views/notification_mailer/_mail_footer.html.erb +5 -0
- data/app/views/notification_mailer/_mail_header.html.erb +3 -0
- data/app/views/notification_mailer/article.html.erb +7 -0
- data/app/views/notification_mailer/comment.html.erb +12 -0
- data/app/views/notification_mailer/notif_user.html.erb +9 -0
- data/app/views/page_sidebar/_content.html.erb +12 -0
- data/app/views/search_sidebar/_content.html.erb +10 -0
- data/app/views/settings/done.html.erb +2 -0
- data/app/views/settings/install.html.erb +12 -0
- data/app/views/setup/index.html.erb +17 -0
- data/app/views/shared/_atom_header.atom.builder +6 -0
- data/app/views/shared/_atom_item_article.atom.builder +36 -0
- data/app/views/shared/_atom_item_comment.atom.builder +10 -0
- data/app/views/shared/_atom_item_trackback.atom.builder +10 -0
- data/app/views/shared/_flash.erb +10 -0
- data/app/views/shared/_google_analytics.html.erb +8 -0
- data/app/views/shared/_page_header.html.erb +23 -0
- data/app/views/shared/_rss_item_article.rss.builder +32 -0
- data/app/views/shared/_rss_item_comment.rss.builder +9 -0
- data/app/views/shared/_rss_item_trackback.rss.builder +9 -0
- data/app/views/sidebar/_row.html.erb +1 -0
- data/app/views/sidebar/_sidebar.html.erb +5 -0
- data/app/views/sidebar/display_plugins.html.erb +5 -0
- data/app/views/sidebar/show.html.erb +1 -0
- data/app/views/static_sidebar/_content.html.erb +2 -0
- data/app/views/tag_sidebar/_content.html.erb +10 -0
- data/app/views/tags/index.html.erb +15 -0
- data/app/views/tags/show.html.erb +1 -0
- data/app/views/theme/static_view_test.html.erb +1 -0
- data/app/views/xml/_googlesitemap_item_article.googlesitemap.builder +7 -0
- data/app/views/xml/_googlesitemap_item_category.googlesitemap.builder +6 -0
- data/app/views/xml/_googlesitemap_item_page.googlesitemap.builder +6 -0
- data/app/views/xml/_googlesitemap_item_tag.googlesitemap.builder +6 -0
- data/app/views/xml/sitemap.googlesitemap.builder +9 -0
- data/config/i18n-tasks.yml +49 -0
- data/config/initializers/devise.rb +271 -0
- data/config/initializers/mime_types.rb +7 -0
- data/config/locales/da.yml +769 -0
- data/config/locales/de.yml +769 -0
- data/config/locales/en.yml +770 -0
- data/config/locales/es-MX.yml +769 -0
- data/config/locales/fr.yml +769 -0
- data/config/locales/he.yml +769 -0
- data/config/locales/it.yml +769 -0
- data/config/locales/ja.yml +769 -0
- data/config/locales/lt.yml +783 -0
- data/config/locales/nb-NO.yml +769 -0
- data/config/locales/nl.yml +769 -0
- data/config/locales/pl.yml +797 -0
- data/config/locales/pt-BR.yml +769 -0
- data/config/locales/ro.yml +782 -0
- data/config/locales/ru.yml +797 -0
- data/config/locales/sidebars.da.yml +20 -0
- data/config/locales/sidebars.de.yml +20 -0
- data/config/locales/sidebars.en.yml +20 -0
- data/config/locales/sidebars.es-MX.yml +20 -0
- data/config/locales/sidebars.fr.yml +20 -0
- data/config/locales/sidebars.he.yml +20 -0
- data/config/locales/sidebars.it.yml +20 -0
- data/config/locales/sidebars.ja.yml +20 -0
- data/config/locales/sidebars.lt.yml +20 -0
- data/config/locales/sidebars.nb-NO.yml +20 -0
- data/config/locales/sidebars.nl.yml +20 -0
- data/config/locales/sidebars.pl.yml +20 -0
- data/config/locales/sidebars.pt-BR.yml +20 -0
- data/config/locales/sidebars.ro.yml +20 -0
- data/config/locales/sidebars.ru.yml +20 -0
- data/config/locales/sidebars.zh-CN.yml +20 -0
- data/config/locales/sidebars.zh-TW.yml +20 -0
- data/config/locales/zh-CN.yml +768 -0
- data/config/locales/zh-TW.yml +769 -0
- data/config/routes.rb +174 -0
- data/db/migrate/113_initial_schema.rb +210 -0
- data/db/migrate/114_fixes_buggy_articles_and_notes.rb +56 -0
- data/db/migrate/115_drops_categories_for_tags.rb +37 -0
- data/db/migrate/20150207131657_add_missing_indexes.rb +23 -0
- data/db/migrate/20150807134129_simplify_redirect_relations.rb +45 -0
- data/db/migrate/20150808052637_add_blog_ids.rb +39 -0
- data/db/migrate/20150808191127_add_blog_id_to_redirects.rb +19 -0
- data/db/migrate/20150810094754_add_blog_id_to_tags.rb +19 -0
- data/db/migrate/20160108111120_add_devise_to_users.rb +57 -0
- data/db/migrate/20160108184201_move_last_connection_to_last_sign_in_at.rb +20 -0
- data/db/migrate/20160110094906_remove_profiles_rights.rb +18 -0
- data/db/migrate/20160605103918_replace_profile_id_with_string.rb +32 -0
- data/db/migrate/20160605154632_remove_profiles.rb +31 -0
- data/db/migrate/20160701061851_demand_blog_id_on_contents.rb +13 -0
- data/db/migrate/20160701062604_add_blog_id_to_resources.rb +32 -0
- data/db/migrate/20170528093024_move_resources_to_content.rb +9 -0
- data/db/migrate/20170528094923_move_tags_to_content.rb +10 -0
- data/db/migrate/20170528201606_remove_separate_published_flag.rb +9 -0
- data/db/migrate/20170605071626_remove_extra_state_columns_from_feedback.rb +10 -0
- data/db/migrate/20170702105201_remove_published_at_from_feedback.rb +9 -0
- data/db/migrate/20190208151235_add_text_filter_name_fields.rb +11 -0
- data/db/migrate/20190208152646_move_text_filter_to_name.rb +99 -0
- data/db/migrate/20190209155717_remove_text_filter_ids.rb +21 -0
- data/db/migrate/20190209160610_remove_text_filters.rb +19 -0
- data/db/seeds.rb +25 -0
- data/lib/email_notify.rb +28 -0
- data/lib/format.rb +9 -0
- data/lib/publify_core/engine.rb +31 -0
- data/lib/publify_core/lang.rb +9 -0
- data/lib/publify_core/testing_support/dns_mock.rb +15 -0
- data/lib/publify_core/testing_support/factories.rb +242 -0
- data/lib/publify_core/testing_support/feed_assertions.rb +48 -0
- data/lib/publify_core/testing_support/fixtures/exploit.svg +4 -0
- data/lib/publify_core/testing_support/fixtures/fakepng.png +1 -0
- data/lib/publify_core/testing_support/fixtures/otherfile.txt +1 -0
- data/lib/publify_core/testing_support/fixtures/testfile.png +0 -0
- data/lib/publify_core/testing_support/fixtures/testfile.txt +1 -0
- data/lib/publify_core/testing_support/upload_fixtures.rb +15 -0
- data/lib/publify_core/version.rb +5 -0
- data/lib/publify_core.rb +46 -0
- data/lib/publify_guid.rb +11 -0
- data/lib/publify_plugins.rb +77 -0
- data/lib/publify_textfilter_markdown.rb +57 -0
- data/lib/publify_textfilter_none.rb +16 -0
- data/lib/publify_textfilter_smartypants.rb +16 -0
- data/lib/publify_textfilter_textile.rb +23 -0
- data/lib/publify_textfilter_twitterfilter.rb +39 -0
- data/lib/publify_time.rb +34 -0
- data/lib/sidebar_field.rb +127 -0
- data/lib/sidebar_registry.rb +35 -0
- data/lib/spam_protection.rb +103 -0
- data/lib/tasks/i18n.rake +9 -0
- data/lib/tasks/manifest.rake +30 -0
- data/lib/tasks/publify_core_tasks.rake +6 -0
- data/lib/text_filter_plugin.rb +183 -0
- data/lib/theme.rb +72 -0
- data/lib/transforms.rb +47 -0
- data/themes/plain/about.markdown +4 -0
- data/themes/plain/javascripts/theme.js +0 -0
- data/themes/plain/preview.png +0 -0
- data/themes/plain/stylesheets/theme.css +57 -0
- metadata +1062 -0
@@ -0,0 +1,306 @@
|
|
1
|
+
.xdsoft_datetimepicker{
|
2
|
+
box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.506);
|
3
|
+
background: #FFFFFF;
|
4
|
+
border-bottom: 1px solid #BBBBBB;
|
5
|
+
border-left: 1px solid #CCCCCC;
|
6
|
+
border-right: 1px solid #CCCCCC;
|
7
|
+
border-top: 1px solid #CCCCCC;
|
8
|
+
color: #333333;
|
9
|
+
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
10
|
+
padding: 8px;
|
11
|
+
padding-left: 0px;
|
12
|
+
padding-top: 2px;
|
13
|
+
position: absolute;
|
14
|
+
z-index: 9999;
|
15
|
+
-moz-box-sizing: border-box;
|
16
|
+
box-sizing: border-box;
|
17
|
+
display:none;
|
18
|
+
}
|
19
|
+
|
20
|
+
.xdsoft_datetimepicker iframe {
|
21
|
+
position: absolute;
|
22
|
+
left: 0;
|
23
|
+
top: 0;
|
24
|
+
width: 75px;
|
25
|
+
height: 210px;
|
26
|
+
background: transparent;
|
27
|
+
border:none;
|
28
|
+
}
|
29
|
+
/*For IE8 or lower*/
|
30
|
+
.xdsoft_datetimepicker button {
|
31
|
+
border:none !important;
|
32
|
+
}
|
33
|
+
|
34
|
+
.xdsoft_noselect{
|
35
|
+
-webkit-touch-callout: none;
|
36
|
+
-webkit-user-select: none;
|
37
|
+
-khtml-user-select: none;
|
38
|
+
-moz-user-select: none;
|
39
|
+
-ms-user-select: none;
|
40
|
+
-o-user-select: none;
|
41
|
+
user-select: none;
|
42
|
+
}
|
43
|
+
.xdsoft_noselect::selection { background: transparent; }
|
44
|
+
.xdsoft_noselect::-moz-selection { background: transparent; }
|
45
|
+
.xdsoft_datetimepicker.xdsoft_inline{
|
46
|
+
display: inline-block;
|
47
|
+
position: static;
|
48
|
+
box-shadow: none;
|
49
|
+
}
|
50
|
+
.xdsoft_datetimepicker *{
|
51
|
+
-moz-box-sizing: border-box;
|
52
|
+
box-sizing: border-box;
|
53
|
+
padding:0px;
|
54
|
+
margin:0px;
|
55
|
+
}
|
56
|
+
.xdsoft_datetimepicker .xdsoft_datepicker, .xdsoft_datetimepicker .xdsoft_timepicker{
|
57
|
+
display:none;
|
58
|
+
}
|
59
|
+
.xdsoft_datetimepicker .xdsoft_datepicker.active, .xdsoft_datetimepicker .xdsoft_timepicker.active{
|
60
|
+
display:block;
|
61
|
+
}
|
62
|
+
.xdsoft_datetimepicker .xdsoft_datepicker{
|
63
|
+
width: 224px;
|
64
|
+
float:left;
|
65
|
+
margin-left:8px;
|
66
|
+
}
|
67
|
+
.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{
|
68
|
+
width: 256px;
|
69
|
+
}
|
70
|
+
.xdsoft_datetimepicker .xdsoft_timepicker{
|
71
|
+
width: 58px;
|
72
|
+
float:left;
|
73
|
+
text-align:center;
|
74
|
+
margin-left:8px;
|
75
|
+
margin-top:0px;
|
76
|
+
}
|
77
|
+
.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{
|
78
|
+
margin-top:8px;
|
79
|
+
margin-bottom:3px
|
80
|
+
}
|
81
|
+
.xdsoft_datetimepicker .xdsoft_mounthpicker{
|
82
|
+
position: relative;
|
83
|
+
text-align: center;
|
84
|
+
}
|
85
|
+
|
86
|
+
.xdsoft_datetimepicker .xdsoft_prev, .xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_today_button{
|
87
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAeCAYAAACsYQl4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozQjRCQjRGREU4MkNFMzExQjRDQkIyRDJDOTdBRUI1MCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCQjg0OUYyNTZDODAxMUUzQjMwM0IwMERBNUU0ODQ5NSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCQjg0OUYyNDZDODAxMUUzQjMwM0IwMERBNUU0ODQ5NSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkI5NzE3MjFBN0E2Q0UzMTFBQjJEQjgzMDk5RTNBNTdBIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjNCNEJCNEZERTgyQ0UzMTFCNENCQjJEMkM5N0FFQjUwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+aQvATgAAAfVJREFUeNrsmr1OwzAQxzGtkPjYEAuvVGAvfQIGRKADE49gdLwDDwBiZ2RhQUKwICQkWLsgFiRQuIBTucFJ/XFp4+hO+quqnZ4uvzj2nV2RpukCW/22yAgYNINmc7du7DcghCjrkqgOKjF1znpt6rZ0AGWQj7TvCU8d9UM+QAGDrhdyc2Bnc1WVVPBev9V8lBnY+rDwncWZThG4xk4lmxtJy2AHgoY/FySgbSBPwPZ8mEXbQx3aDERb0EbYAYFC7pcAtAvkMWwC0D3NX58S9D/YnoGC7nPWr3Dg9JTbtuHhDShBT8D2CBSK/iIEvVXxpuxSgh7DdgwUTL4iA92zmJb6lKB/YTsECmV+IgK947AGDIqgQ/LojsO135Hn51l2cWlov0JdGNrPUceueXRwilSVgkUyom9Rd6gbLfYTDeO+1v6orn0InTogYDGUkYLO3/wc9BdqqTCKP1Tfi+oTIaCBIL2TES+GTyruT9S61p6BHam+99DFEAgLFklYsIBHwSI9QY80H5ta+1rB/6ovaKihBJeEJbgLbBlQgl+j3lDPqA2tfQV1j3pVn8s+oKHGTSVJ+FqDLeR5bCqJ2E/BCycsoLZETXaKGs7rhKVt+9HZScrZNMi88V8P7LlDbvOZYaJVpMMmBCT4n0o8dTBoNgbdWPsRYACs3r7XyNfbnAAAAABJRU5ErkJggg==');
|
88
|
+
}
|
89
|
+
.xdsoft_datetimepicker .xdsoft_prev{
|
90
|
+
float: left;
|
91
|
+
background-position:-20px 0px;
|
92
|
+
}
|
93
|
+
.xdsoft_datetimepicker .xdsoft_today_button{
|
94
|
+
float: left;
|
95
|
+
background-position:-70px 0px;
|
96
|
+
margin-left:5px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.xdsoft_datetimepicker .xdsoft_next{
|
100
|
+
float: right;
|
101
|
+
background-position:0px 0px;
|
102
|
+
}
|
103
|
+
.xdsoft_datetimepicker .xdsoft_next:active,.xdsoft_datetimepicker .xdsoft_prev:active{
|
104
|
+
}
|
105
|
+
.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev ,.xdsoft_datetimepicker .xdsoft_today_button{
|
106
|
+
background-color: transparent;
|
107
|
+
background-repeat: no-repeat;
|
108
|
+
border: 0px none currentColor;
|
109
|
+
cursor: pointer;
|
110
|
+
display: block;
|
111
|
+
height: 30px;
|
112
|
+
opacity: 0.5;
|
113
|
+
outline: medium none currentColor;
|
114
|
+
overflow: hidden;
|
115
|
+
padding: 0px;
|
116
|
+
position: relative;
|
117
|
+
text-indent: 100%;
|
118
|
+
white-space: nowrap;
|
119
|
+
width: 20px;
|
120
|
+
}
|
121
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
|
122
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{
|
123
|
+
float:none;
|
124
|
+
background-position:-40px -15px;
|
125
|
+
height: 15px;
|
126
|
+
width: 30px;
|
127
|
+
display: block;
|
128
|
+
margin-left:14px;
|
129
|
+
margin-top:7px;
|
130
|
+
}
|
131
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{
|
132
|
+
background-position:-40px 0px;
|
133
|
+
margin-bottom:7px;
|
134
|
+
margin-top:0px;
|
135
|
+
}
|
136
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{
|
137
|
+
height:151px;
|
138
|
+
overflow:hidden;
|
139
|
+
border-bottom:1px solid #DDDDDD;
|
140
|
+
}
|
141
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div{
|
142
|
+
background: #F5F5F5;
|
143
|
+
border-top:1px solid #DDDDDD;
|
144
|
+
color: #666666;
|
145
|
+
font-size: 12px;
|
146
|
+
text-align: center;
|
147
|
+
border-collapse:collapse;
|
148
|
+
cursor:pointer;
|
149
|
+
border-bottom-width:0px;
|
150
|
+
height:25px;
|
151
|
+
line-height:25px;
|
152
|
+
}
|
153
|
+
|
154
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div > div:first-child{
|
155
|
+
border-top-width:0px;
|
156
|
+
}
|
157
|
+
.xdsoft_datetimepicker .xdsoft_today_button:hover,
|
158
|
+
.xdsoft_datetimepicker .xdsoft_next:hover,
|
159
|
+
.xdsoft_datetimepicker .xdsoft_prev:hover {
|
160
|
+
opacity: 1;
|
161
|
+
}
|
162
|
+
.xdsoft_datetimepicker .xdsoft_label{
|
163
|
+
display: inline;
|
164
|
+
position: relative;
|
165
|
+
z-index: 9999;
|
166
|
+
margin: 0;
|
167
|
+
padding: 5px 3px;
|
168
|
+
font-size: 14px;
|
169
|
+
line-height: 20px;
|
170
|
+
font-weight: bold;
|
171
|
+
background-color: #fff;
|
172
|
+
float:left;
|
173
|
+
width:182px;
|
174
|
+
text-align:center;
|
175
|
+
cursor:pointer;
|
176
|
+
}
|
177
|
+
.xdsoft_datetimepicker .xdsoft_label:hover{
|
178
|
+
text-decoration:underline;
|
179
|
+
}
|
180
|
+
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select{
|
181
|
+
border:1px solid #ccc;
|
182
|
+
position:absolute;
|
183
|
+
right:0px;
|
184
|
+
top:30px;
|
185
|
+
z-index:101;
|
186
|
+
display:none;
|
187
|
+
background:#fff;
|
188
|
+
max-height:160px;
|
189
|
+
overflow-y:hidden;
|
190
|
+
}
|
191
|
+
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_monthselect{right:-7px;}
|
192
|
+
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_yearselect{right:2px;}
|
193
|
+
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover{
|
194
|
+
color: #fff;
|
195
|
+
background: #ff8000;
|
196
|
+
}
|
197
|
+
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option{
|
198
|
+
padding:2px 10px 2px 5px;
|
199
|
+
}
|
200
|
+
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current{
|
201
|
+
background: #33AAFF;
|
202
|
+
box-shadow: #178FE5 0px 1px 3px 0px inset;
|
203
|
+
color:#fff;
|
204
|
+
font-weight: 700;
|
205
|
+
}
|
206
|
+
.xdsoft_datetimepicker .xdsoft_month{
|
207
|
+
width:90px;
|
208
|
+
text-align:right;
|
209
|
+
}
|
210
|
+
.xdsoft_datetimepicker .xdsoft_calendar{
|
211
|
+
clear:both;
|
212
|
+
}
|
213
|
+
.xdsoft_datetimepicker .xdsoft_year{
|
214
|
+
width:56px;
|
215
|
+
}
|
216
|
+
.xdsoft_datetimepicker .xdsoft_calendar table{
|
217
|
+
border-collapse:collapse;
|
218
|
+
width:100%;
|
219
|
+
|
220
|
+
}
|
221
|
+
.xdsoft_datetimepicker .xdsoft_calendar td > div{
|
222
|
+
padding-right:5px;
|
223
|
+
}
|
224
|
+
.xdsoft_datetimepicker .xdsoft_calendar th{
|
225
|
+
height: 25px;
|
226
|
+
}
|
227
|
+
.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{
|
228
|
+
width:14.2857142%;
|
229
|
+
background: #F5F5F5;
|
230
|
+
border:1px solid #DDDDDD;
|
231
|
+
color: #666666;
|
232
|
+
font-size: 12px;
|
233
|
+
text-align: right;
|
234
|
+
padding:0px;
|
235
|
+
border-collapse:collapse;
|
236
|
+
cursor:pointer;
|
237
|
+
height: 25px;
|
238
|
+
}
|
239
|
+
.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{
|
240
|
+
width:12.5%;
|
241
|
+
}
|
242
|
+
.xdsoft_datetimepicker .xdsoft_calendar th{
|
243
|
+
background: #F1F1F1;
|
244
|
+
}
|
245
|
+
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{
|
246
|
+
color:#33AAFF;
|
247
|
+
}
|
248
|
+
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
|
249
|
+
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
|
250
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
|
251
|
+
background: #33AAFF;
|
252
|
+
box-shadow: #178FE5 0px 1px 3px 0px inset;
|
253
|
+
color:#fff;
|
254
|
+
font-weight: 700;
|
255
|
+
}
|
256
|
+
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
|
257
|
+
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
|
258
|
+
.xdsoft_datetimepicker .xdsoft_time_box >div >div.xdsoft_disabled{
|
259
|
+
opacity:0.5;
|
260
|
+
}
|
261
|
+
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{
|
262
|
+
opacity:0.2;
|
263
|
+
}
|
264
|
+
.xdsoft_datetimepicker .xdsoft_calendar td:hover,
|
265
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
|
266
|
+
color: #fff !important;
|
267
|
+
background: #ff8000 !important;
|
268
|
+
box-shadow: none !important;
|
269
|
+
}
|
270
|
+
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,
|
271
|
+
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_disabled:hover{
|
272
|
+
color: inherit !important;
|
273
|
+
background: inherit !important;
|
274
|
+
box-shadow: inherit !important;
|
275
|
+
}
|
276
|
+
.xdsoft_datetimepicker .xdsoft_calendar th{
|
277
|
+
font-weight: 700;
|
278
|
+
text-align: center;
|
279
|
+
color: #999;
|
280
|
+
cursor:default;
|
281
|
+
}
|
282
|
+
.xdsoft_datetimepicker .xdsoft_copyright{ color:#ccc !important; font-size:10px;clear:both;float:none;margin-left:8px;}
|
283
|
+
.xdsoft_datetimepicker .xdsoft_copyright a{ color:#eee !important;}
|
284
|
+
.xdsoft_datetimepicker .xdsoft_copyright a:hover{ color:#aaa !important;}
|
285
|
+
|
286
|
+
|
287
|
+
.xdsoft_time_box{
|
288
|
+
position:relative;
|
289
|
+
border:1px solid #ccc;
|
290
|
+
}
|
291
|
+
.xdsoft_scrollbar >.xdsoft_scroller{
|
292
|
+
background:#ccc !important;
|
293
|
+
height:20px;
|
294
|
+
border-radius:3px;
|
295
|
+
}
|
296
|
+
.xdsoft_scrollbar{
|
297
|
+
position:absolute;
|
298
|
+
width:7px;
|
299
|
+
right:0px;
|
300
|
+
top:0px;
|
301
|
+
bottom:0px;
|
302
|
+
cursor:pointer;
|
303
|
+
}
|
304
|
+
.xdsoft_scroller_box{
|
305
|
+
position:relative;
|
306
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/*!
|
2
|
+
* Lightbox for Bootstrap 3 by @ashleydw
|
3
|
+
* https://github.com/ashleydw/lightbox
|
4
|
+
*
|
5
|
+
* License: https://github.com/ashleydw/lightbox/blob/master/LICENSE
|
6
|
+
*/
|
7
|
+
|
8
|
+
.ekko-lightbox-container {
|
9
|
+
position: relative;
|
10
|
+
}
|
11
|
+
|
12
|
+
.ekko-lightbox-nav-overlay {
|
13
|
+
position: absolute;
|
14
|
+
top: 0;
|
15
|
+
left: 0;
|
16
|
+
z-index: 100;
|
17
|
+
width: 100%;
|
18
|
+
height: 100%;
|
19
|
+
}
|
20
|
+
|
21
|
+
.ekko-lightbox-nav-overlay a {
|
22
|
+
z-index: 100;
|
23
|
+
display: block;
|
24
|
+
width: 49%;
|
25
|
+
height: 100%;
|
26
|
+
padding-top: 45%;
|
27
|
+
font-size: 30px;
|
28
|
+
color: #fff;
|
29
|
+
text-shadow: 2px 2px 4px #000;
|
30
|
+
opacity: 0;
|
31
|
+
filter: dropshadow(color=#000000, offx=2, offy=2);
|
32
|
+
-webkit-transition: opacity 0.5s;
|
33
|
+
-moz-transition: opacity 0.5s;
|
34
|
+
-o-transition: opacity 0.5s;
|
35
|
+
transition: opacity 0.5s;
|
36
|
+
}
|
37
|
+
|
38
|
+
.ekko-lightbox-nav-overlay a:empty {
|
39
|
+
width: 49%;
|
40
|
+
}
|
41
|
+
|
42
|
+
.ekko-lightbox a:hover {
|
43
|
+
text-decoration: none;
|
44
|
+
opacity: 1;
|
45
|
+
}
|
46
|
+
|
47
|
+
.ekko-lightbox .glyphicon-chevron-left {
|
48
|
+
left: 0;
|
49
|
+
float: left;
|
50
|
+
padding-left: 15px;
|
51
|
+
text-align: left;
|
52
|
+
}
|
53
|
+
|
54
|
+
.ekko-lightbox .glyphicon-chevron-right {
|
55
|
+
right: 0;
|
56
|
+
float: right;
|
57
|
+
padding-right: 15px;
|
58
|
+
text-align: right;
|
59
|
+
}
|
60
|
+
|
61
|
+
.ekko-lightbox .modal-footer {
|
62
|
+
text-align: left;
|
63
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
*= require administration_structure
|
3
|
+
*= require jquery-ui
|
4
|
+
*= require tagmanager
|
5
|
+
*= require sidebar_admin
|
6
|
+
*= require datetimepicker
|
7
|
+
*/
|
8
|
+
// "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables"
|
9
|
+
@import "bootstrap-sprockets";
|
10
|
+
@import "bootstrap";
|
@@ -0,0 +1,53 @@
|
|
1
|
+
* { display: block }
|
2
|
+
|
3
|
+
:root {
|
4
|
+
margin: 50px;
|
5
|
+
}
|
6
|
+
|
7
|
+
channel > title {
|
8
|
+
font-size: x-large;
|
9
|
+
text-align: center;
|
10
|
+
}
|
11
|
+
|
12
|
+
channel > title:after {
|
13
|
+
display: block;
|
14
|
+
padding: 50px;
|
15
|
+
content: "This is an RSS feed, designed to be read in an RSS application";
|
16
|
+
background-color: grey;
|
17
|
+
color: white;
|
18
|
+
}
|
19
|
+
|
20
|
+
item {
|
21
|
+
margin: 25px 0 20px 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
item > title {
|
25
|
+
font-size: medium;
|
26
|
+
margin-bottom: 20px;
|
27
|
+
}
|
28
|
+
|
29
|
+
item > link {
|
30
|
+
font-size: small;
|
31
|
+
margin-top: 6px;
|
32
|
+
margin-bottom: 6px;
|
33
|
+
}
|
34
|
+
|
35
|
+
item > description {
|
36
|
+
font-size: small;
|
37
|
+
}
|
38
|
+
|
39
|
+
item > pubDate {
|
40
|
+
font-size: small;
|
41
|
+
}
|
42
|
+
|
43
|
+
channel > link,
|
44
|
+
channel > copyright,
|
45
|
+
channel > lastBuildDate,
|
46
|
+
channel > generator,
|
47
|
+
channel > docs,
|
48
|
+
language,
|
49
|
+
lastBuildDate,
|
50
|
+
ttl,
|
51
|
+
guid {
|
52
|
+
display: none;
|
53
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
.sortable {
|
2
|
+
min-height: 10px;
|
3
|
+
}
|
4
|
+
#sidebar-config {
|
5
|
+
#active {
|
6
|
+
ul {
|
7
|
+
list-style: none;
|
8
|
+
padding-left: 0;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
#available_box > * {
|
13
|
+
z-index: 10;
|
14
|
+
h3 {
|
15
|
+
margin-top: 0;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
.draggable-hover {
|
19
|
+
z-index: 1000;
|
20
|
+
}
|
21
|
+
.voidPlaceholder {
|
22
|
+
padding: 45px;
|
23
|
+
border: 1px solid #ccc;
|
24
|
+
}
|
25
|
+
.sidebar_item {
|
26
|
+
position: relative;
|
27
|
+
h3 {
|
28
|
+
margin-top: 0;
|
29
|
+
}
|
30
|
+
.deletion_link {
|
31
|
+
position: absolute;
|
32
|
+
top: 20px;
|
33
|
+
right: 20px;
|
34
|
+
display: inline-block;
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
/*
|
2
|
+
* DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
* Compiled from bootstrap-tagmanager.less based on Bootstrap 2.3.1 variables
|
4
|
+
* https://github.com/twitter/bootstrap/blob/master/less/variables.less
|
5
|
+
*/
|
6
|
+
.tm-tag {
|
7
|
+
color: #555555;
|
8
|
+
background-color: #f5f5f5;
|
9
|
+
border: #bbbbbb 1px solid;
|
10
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
11
|
+
display: inline-block;
|
12
|
+
border-radius: 3px;
|
13
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
14
|
+
font-size: 13px;
|
15
|
+
margin: 0 5px 5px 0;
|
16
|
+
padding: 4px;
|
17
|
+
text-decoration: none;
|
18
|
+
transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
|
19
|
+
-moz-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
|
20
|
+
-webkit-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
|
21
|
+
vertical-align: middle;
|
22
|
+
}
|
23
|
+
.tm-tag .tm-tag-remove {
|
24
|
+
color: #000000;
|
25
|
+
font-weight: bold;
|
26
|
+
margin-left: 4px;
|
27
|
+
opacity: 0.2;
|
28
|
+
}
|
29
|
+
.tm-tag .tm-tag-remove:hover {
|
30
|
+
color: #000000;
|
31
|
+
text-decoration: none;
|
32
|
+
opacity: 0.4;
|
33
|
+
}
|
34
|
+
.tm-tag.tm-tag-warning {
|
35
|
+
color: #945203;
|
36
|
+
background-color: #f2c889;
|
37
|
+
border-color: #f0a12f;
|
38
|
+
}
|
39
|
+
.tm-tag.tm-tag-error {
|
40
|
+
color: #84212e;
|
41
|
+
background-color: #e69ca6;
|
42
|
+
border-color: #d24a5d;
|
43
|
+
}
|
44
|
+
.tm-tag.tm-tag-success {
|
45
|
+
color: #638421;
|
46
|
+
background-color: #cde69c;
|
47
|
+
border-color: #a5d24a;
|
48
|
+
}
|
49
|
+
.tm-tag.tm-tag-info {
|
50
|
+
color: #4594b5;
|
51
|
+
background-color: #c5eefa;
|
52
|
+
border-color: #5dc8f7;
|
53
|
+
}
|
54
|
+
.tm-tag.tm-tag-inverse {
|
55
|
+
color: #cccccc;
|
56
|
+
background-color: #555555;
|
57
|
+
border-color: #333333;
|
58
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) inset;
|
59
|
+
}
|
60
|
+
.tm-tag.tm-tag-inverse .tm-tag-remove {
|
61
|
+
color: #ffffff;
|
62
|
+
}
|
63
|
+
.tm-tag.tm-tag-large {
|
64
|
+
font-size: 16.25px;
|
65
|
+
border-radius: 4px;
|
66
|
+
padding: 11px 7px;
|
67
|
+
}
|
68
|
+
.tm-tag.tm-tag-small {
|
69
|
+
font-size: 11.049999999999999px;
|
70
|
+
border-radius: 3px;
|
71
|
+
padding: 2px 4px;
|
72
|
+
}
|
73
|
+
.tm-tag.tm-tag-mini {
|
74
|
+
font-size: 9.75px;
|
75
|
+
border-radius: 2px;
|
76
|
+
padding: 0px 2px;
|
77
|
+
}
|
78
|
+
.tm-tag.tm-tag-plain {
|
79
|
+
color: #333333;
|
80
|
+
box-shadow: none;
|
81
|
+
background: none;
|
82
|
+
border: none;
|
83
|
+
}
|
84
|
+
.tm-tag.tm-tag-disabled {
|
85
|
+
color: #aaaaaa;
|
86
|
+
background-color: #e6e6e6;
|
87
|
+
border-color: #cccccc;
|
88
|
+
box-shadow: none;
|
89
|
+
}
|
90
|
+
.tm-tag.tm-tag-disabled .tm-tag-remove {
|
91
|
+
display: none;
|
92
|
+
}
|
93
|
+
input[type="text"].tm-input {
|
94
|
+
margin-bottom: 5px;
|
95
|
+
vertical-align: middle !important;
|
96
|
+
}
|
97
|
+
.control-group.tm-group {
|
98
|
+
margin-bottom: 5px;
|
99
|
+
}
|
100
|
+
.form-horizontal .control-group.tm-group {
|
101
|
+
margin-bottom: 15px;
|
102
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.alignleft,
|
2
|
+
img.left {
|
3
|
+
float: left;
|
4
|
+
margin: 0 5px 5px 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
.alignright,
|
8
|
+
img.right {
|
9
|
+
float: right;
|
10
|
+
margin: 0 0 5px 5px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.centered {
|
14
|
+
margin-left: auto;
|
15
|
+
margin-right: auto;
|
16
|
+
display: block;
|
17
|
+
padding: 8px;
|
18
|
+
}
|
19
|
+
|
20
|
+
.gravatar {
|
21
|
+
float: left;
|
22
|
+
margin-right: 3px;
|
23
|
+
margin-bottom: 3px;
|
24
|
+
}
|
25
|
+
|
26
|
+
.status {
|
27
|
+
background: #fff;
|
28
|
+
margin: -8px; padding: 8px;
|
29
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class Admin::BaseController < BaseController
|
4
|
+
rescue_from CanCan::AccessDenied do |exception|
|
5
|
+
redirect_to admin_dashboard_path, alert: exception.message
|
6
|
+
end
|
7
|
+
|
8
|
+
cattr_accessor :look_for_migrations
|
9
|
+
@@look_for_migrations = true
|
10
|
+
layout "administration"
|
11
|
+
|
12
|
+
before_action :login_required, except: [:login, :signup]
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def destroy_a(klass_to_destroy)
|
17
|
+
@record = klass_to_destroy.find(params[:id])
|
18
|
+
if @record.respond_to?(:access_by?) && !@record.access_by?(current_user)
|
19
|
+
flash[:error] = I18n.t("admin.base.not_allowed")
|
20
|
+
return(redirect_to action: "index")
|
21
|
+
end
|
22
|
+
@record.destroy
|
23
|
+
flash[:notice] = I18n.t("admin.base.successfully_deleted",
|
24
|
+
name: controller_name.humanize)
|
25
|
+
redirect_to action: "index"
|
26
|
+
end
|
27
|
+
end
|