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,215 @@
|
|
1
|
+
<% if user.errors.any? %>
|
2
|
+
<div id="error_explanation">
|
3
|
+
<h2><%= pluralize(user.errors.count, 'error') %> prohibited this user from being saved:</h2>
|
4
|
+
|
5
|
+
<ul>
|
6
|
+
<% user.errors.full_messages.each do |message| %>
|
7
|
+
<li><%= message %></li>
|
8
|
+
<% end %>
|
9
|
+
</ul>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<fieldset class='form-horizontal'>
|
14
|
+
<legend><%= t('.account_settings') %></legend>
|
15
|
+
<div class='form-group'>
|
16
|
+
<label class='control-label col-sm-2' for="user_login"><%= t('.login') %></label>
|
17
|
+
<div class='col-sm-5'>
|
18
|
+
<%= f.text_field :login, class: 'form-control' %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class='form-group'>
|
22
|
+
<label class='control-label col-sm-2' for="user_password"><%= t('.password') %></label>
|
23
|
+
<div class='col-sm-5'>
|
24
|
+
<%= f.password_field :password, class: 'form-control' %>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<div class='form-group'>
|
28
|
+
<label class='control-label col-sm-2' for="user_password_confirmation"><%= t('.password_confirmation') %></label>
|
29
|
+
<div class='col-sm-5'>
|
30
|
+
<%= f.password_field :password_confirmation, class: 'form-control' %>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
<div class='form-group'>
|
34
|
+
<label class='control-label col-sm-2' for="user_email"><%= t('.email') %></label>
|
35
|
+
<div class='col-sm-5'>
|
36
|
+
<%= f.text_field :email, class: 'form-control' %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<% if controller.controller_name == 'users' %>
|
40
|
+
<div class='form-group'>
|
41
|
+
<label class='control-label col-sm-2' for="user_profile"><%= t('.profile') %></label>
|
42
|
+
<div class='col-sm-5'>
|
43
|
+
<%= f.select :profile, [:admin, :publisher, :contributor], { include_blank: false }, { class: 'form-control' } %>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
<div class='form-group'>
|
47
|
+
<label class='control-label col-sm-2' for="user_state"><%= t('.user_status') %></label>
|
48
|
+
<div class='col-sm-5'>
|
49
|
+
<select name="user[state]" class='form-control'>
|
50
|
+
<% User::STATUS.each do |state| %>
|
51
|
+
<option value="<%= state %>" <%= 'selected' if user.state == state %>><%= t("user.status.#{state}") %></option>
|
52
|
+
<% end %>
|
53
|
+
</select>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
<% end %>
|
57
|
+
</fieldset>
|
58
|
+
|
59
|
+
<fieldset class='form-horizontal'>
|
60
|
+
<legend><%= t('.profile_settings') %></legend>
|
61
|
+
<div class='form-group'>
|
62
|
+
<label class='control-label col-sm-2' for="user_firstname"><%= t('.firstname') %></label>
|
63
|
+
<div class='col-sm-5'>
|
64
|
+
<%= f.text_field :firstname, class: 'form-control' %>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
<div class='form-group'>
|
68
|
+
<label class='control-label col-sm-2' for="user_lastname"><%= t('.lastname') %></label>
|
69
|
+
<div class='col-sm-5'>
|
70
|
+
<%= f.text_field :lastname, class: 'form-control' %>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
<div class='form-group'>
|
74
|
+
<label class='control-label col-sm-2' for="user_nickname"><%= t('.nickname') %></label>
|
75
|
+
<div class='col-sm-5'>
|
76
|
+
<%= f.text_field :nickname, class: 'form-control' %>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
<% unless user.login.nil? %>
|
80
|
+
<div class='form-group'>
|
81
|
+
<label class='control-label col-sm-2' for="user_name"><%= t('.display_name') %></label>
|
82
|
+
<div class='col-sm-5'>
|
83
|
+
<select name="user[name]" id="user_name" class='form-control'>
|
84
|
+
<%= options_for_select(user.display_names, user.name) %>
|
85
|
+
</select>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
<% end %>
|
89
|
+
<div class='form-group'>
|
90
|
+
<label class='control-label col-sm-2' for="text_filter_name"><%= t('.article_filter') %></label>
|
91
|
+
<div class='col-sm-5'>
|
92
|
+
<select name="user[text_filter_name]" id="text_filter_name" class='form-control'>
|
93
|
+
<%= options_for_select text_filter_options, user.text_filter_name %>
|
94
|
+
</select>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
</fieldset>
|
98
|
+
|
99
|
+
<% unless controller.controller_name == 'users' %>
|
100
|
+
<fieldset class='form-horizontal'>
|
101
|
+
<legend><%= t('.avatar') %></legend>
|
102
|
+
<p><%= display_user_avatar(current_user, 'thumb') %> <%= t('.avatar_current') %></p>
|
103
|
+
<div class='form-group'>
|
104
|
+
<label class='control-label col-sm-2' for="avatar"><%= t('.upload') %></label>
|
105
|
+
<div class='col-sm-5'>
|
106
|
+
<%= f.file_field :filename, class: 'input-file' %>
|
107
|
+
<p class='help-block'><%= t('.upload_file') %></p>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
</fieldset>
|
111
|
+
<% end %>
|
112
|
+
|
113
|
+
<fieldset class='form-horizontal'>
|
114
|
+
<legend><%= t('.notification_settings') %></legend>
|
115
|
+
<div class='form-group'>
|
116
|
+
<label class='control-label col-sm-2'><%= t('.notifications') %></label>
|
117
|
+
<div class='col-sm-5'>
|
118
|
+
<label class='checkbox' for="user_notify_via_email">
|
119
|
+
<%= f.check_box :notify_via_email %>
|
120
|
+
<%= t('.notification_email') %>
|
121
|
+
</label>
|
122
|
+
<label class='checkbox' for="user_notify_on_new_articles">
|
123
|
+
<%= f.check_box :notify_on_new_articles %>
|
124
|
+
<%= t('.notification_article') %>
|
125
|
+
</label>
|
126
|
+
<label class='checkbox' for="user_notify_on_comments">
|
127
|
+
<%= f.check_box :notify_on_comments %>
|
128
|
+
<%= t('.notification_comment') %>
|
129
|
+
</label>
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
</fieldset>
|
133
|
+
|
134
|
+
<% unless controller.controller_name == 'users' %>
|
135
|
+
|
136
|
+
<fieldset class='form-horizontal'>
|
137
|
+
<legend><%= t('.twitter') %></legend>
|
138
|
+
<% unless twitter_available?(this_blog, current_user) %>
|
139
|
+
<%= render 'admin/shared/twitter_alert' %>
|
140
|
+
<% end %>
|
141
|
+
<div class='form-group'>
|
142
|
+
<label class='control-label col-sm-2' for="user_twitter_account"><%= t('.twitter_account') %></label>
|
143
|
+
<div class='col-sm-5'>
|
144
|
+
<%= f.text_field :twitter_account, class: 'form-control', disabled: twitter_available?(this_blog, current_user) %>
|
145
|
+
<p class='help-block'>The Twitter account you want to post with</p>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
<div class='form-group'>
|
149
|
+
<label class='control-label col-sm-2' for="user_twitter_oauth_token"><%= t('.twitter_oauth') %></label>
|
150
|
+
<div class='col-sm-5'>
|
151
|
+
<%= f.text_field :twitter_oauth_token, class: 'form-control', disabled: twitter_available?(this_blog, current_user) %>
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
<div class='form-group'>
|
155
|
+
<label class='control-label col-sm-2' for="user_twitter_oauth_token_secret"><%= t('.twitter_oauth_secret') %></label>
|
156
|
+
<div class='col-sm-5'>
|
157
|
+
<%= f.text_field :twitter_oauth_token_secret, class: 'form-control', disabled: twitter_available?(this_blog, current_user) %>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
</fieldset>
|
161
|
+
|
162
|
+
<fieldset class='form-horizontal'>
|
163
|
+
<legend><%= t('.contact_settings') %></legend>
|
164
|
+
<div class='alert alert-info'><%= t('.contact_explain_html', link: link_to(t('.author_page'), author_path(id: current_user.login))) %></div>
|
165
|
+
<div class='form-group'>
|
166
|
+
<label class='control-label col-sm-2' for="user_description"><%= t('.about') %></label>
|
167
|
+
<div class='col-sm-5'>
|
168
|
+
<%= f.text_area :description, class: 'form-control', rows: 5 %>
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
<div class='form-group'>
|
172
|
+
<label class='control-label col-sm-2' for="user_url"><%= t('.website') %></label>
|
173
|
+
<div class='col-sm-5'>
|
174
|
+
<%= f.text_field :url, class: 'form-control' %>
|
175
|
+
</div>
|
176
|
+
</div>
|
177
|
+
<div class='form-group'>
|
178
|
+
<label class='control-label col-sm-2' for="user_msn"><%= t('.msn') %></label>
|
179
|
+
<div class='col-sm-5'>
|
180
|
+
<%= f.text_field :msn, class: 'form-control' %>
|
181
|
+
</div>
|
182
|
+
</div>
|
183
|
+
<div class='form-group'>
|
184
|
+
<label class='control-label col-sm-2' for="user_yahoo"><%= t('.yahoo') %></label>
|
185
|
+
<div class='col-sm-5'>
|
186
|
+
<%= f.text_field :yahoo, class: 'form-control' %>
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
<div class='form-group'>
|
190
|
+
<label class='control-label col-sm-2' for="user_jabber"><%= t('.jabber') %></label>
|
191
|
+
<div class='col-sm-5'>
|
192
|
+
<%= f.text_field :jabber, class: 'form-control' %>
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
<div class='form-group'>
|
196
|
+
<label class='control-label col-sm-2' for="user_aim"><%= t('.aim') %></label>
|
197
|
+
<div class='col-sm-5'>
|
198
|
+
<%= f.text_field :aim, class: 'form-control' %>
|
199
|
+
</div>
|
200
|
+
</div>
|
201
|
+
<div class='form-group'>
|
202
|
+
<label class='control-label col-sm-2' for="user_twitter"><%= t('.twitter') %></label>
|
203
|
+
<div class='col-sm-5'>
|
204
|
+
<%= f.text_field :twitter, class: 'form-control' %>
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
</fieldset>
|
208
|
+
<% end %>
|
209
|
+
|
210
|
+
<div class='form-actions'>
|
211
|
+
<hr />
|
212
|
+
<%= link_to(t('.cancel'), action: 'index') %>
|
213
|
+
<%= t('.or') %>
|
214
|
+
<%= submit_tag(t('.save'), class: 'btn btn-success') %>
|
215
|
+
</div>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<% content_for :page_heading do %>
|
2
|
+
<h2>
|
3
|
+
<i class="glyphicon glyphicon-large glyphicon-user"></i>
|
4
|
+
<%= t('.users') %>
|
5
|
+
<%= link_to(t('.new_user'), new_admin_user_path, id: 'dialog-link', class: 'btn btn-info pull-right') %>
|
6
|
+
</h2>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<table class="table table-hover">
|
10
|
+
<thead>
|
11
|
+
<tr>
|
12
|
+
<th><%= t('.login') %></th>
|
13
|
+
<th><%= t('.name') %></th>
|
14
|
+
<th><%= t('.email') %></th>
|
15
|
+
<th><%= t('.profile') %></th>
|
16
|
+
<th><%= t('.articles') %></th>
|
17
|
+
<th><%= t('.comments') %></th>
|
18
|
+
<th><%= t('.state') %></th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
<% for user in @users %>
|
22
|
+
<tr>
|
23
|
+
<td>
|
24
|
+
<%= link_to user.login, author_path(id: user.login) %>
|
25
|
+
<div class='action'>
|
26
|
+
<%= link_to(content_tag(:span, '', class: 'glyphicon glyphicon-pencil'), edit_admin_user_path(user), class: 'btn btn-primary btn-xs btn-action') %>
|
27
|
+
<%= link_to(content_tag(:span, '', class: 'glyphicon glyphicon-link'), author_path(id: user.login), class: 'btn btn-success btn-xs btn-action') %>
|
28
|
+
</div>
|
29
|
+
</td>
|
30
|
+
<td><%= user.nickname %></td>
|
31
|
+
<td><%= mail_to user.email, user.email %></td>
|
32
|
+
<td><%= t("profile.#{user.profile}") %></td>
|
33
|
+
<td><%= Article.where("user_id = #{user.id}").count %></td>
|
34
|
+
<td><%= Comment.where("user_id = #{user.id}").count %></td>
|
35
|
+
<td><%= t("user.status.#{user.state}") %></td>
|
36
|
+
</tr>
|
37
|
+
<% end %>
|
38
|
+
<%= display_pagination(@users, 7) %>
|
39
|
+
</table>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% unless sidebar.archives.blank? %>
|
2
|
+
<h3 class="sidebar-title"><%= sidebar.title %></h3>
|
3
|
+
<div class="sidebar-body">
|
4
|
+
<ul id="archives">
|
5
|
+
<% sidebar.archives.each do |month| %>
|
6
|
+
<% counter = sidebar.show_count ? "<em>(#{month[:article_count]})</em>" : '' %>
|
7
|
+
<li>
|
8
|
+
<%= link_to "#{month[:name]} #{counter}".html_safe, articles_by_month_path(month[:year], '%02i' % month[:month]) %>
|
9
|
+
</li>
|
10
|
+
<% end %>
|
11
|
+
</ul>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= cache article do %>
|
2
|
+
<div class="archivepost">
|
3
|
+
<%= article.published_at.mday %> -
|
4
|
+
<%= link_to_permalink(article, h(article.title)) %>
|
5
|
+
<% if !article.tags.empty? %> <%= t('.posted_in') %>
|
6
|
+
<%= safe_join(article.tags.map { |t| link_to_permalink t, t.display_name }, ', ') %>
|
7
|
+
<% end %>
|
8
|
+
</div>
|
9
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% cache article do %>
|
2
|
+
<h2><%= link_to_permalink article, article.title %></h2>
|
3
|
+
<%= render 'articles/article_author', article: article %>
|
4
|
+
<% if article.password.blank? %>
|
5
|
+
<%= render 'articles/article_excerpt', article: article %>
|
6
|
+
<% else %>
|
7
|
+
<%= render 'articles/password_form', article: article %>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% cache article do %>
|
2
|
+
<% if article.excerpt? %>
|
3
|
+
<%= article.excerpt %>
|
4
|
+
<div class="extended">
|
5
|
+
<p><%= link_to_permalink article, t('.continue_reading') %></p>
|
6
|
+
</div>
|
7
|
+
<% else %>
|
8
|
+
<%= raw article.html(:body) %>
|
9
|
+
<% if article.extended? %>
|
10
|
+
<div class="extended">
|
11
|
+
<p><%= link_to_permalink article, t('.continue_reading') %></p>
|
12
|
+
</div>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% cache article do %>
|
2
|
+
<p class="meta">
|
3
|
+
<% if article.tags.any? %>
|
4
|
+
<%= t('.tags') %>
|
5
|
+
<%= tag_links article %>
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<%= link_to(t('.comments', count: article.published_comments.size), article.permalink_url('comments', true)) if article.allow_comments? %>
|
9
|
+
|
10
|
+
<%= link_to(t('.trackbacks', count: article.published_trackbacks.size), article.permalink_url('trackbacks', true)) if article.allow_pings? %>
|
11
|
+
</p>
|
12
|
+
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render comment %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<%= form_tag @article.comment_url, id: 'comment_form', remote: true do %>
|
2
|
+
<div class="comment-box">
|
3
|
+
<div id="errors" style="display: none"></div>
|
4
|
+
<div id="preview" style="display: none"></div>
|
5
|
+
|
6
|
+
<a name="respond"></a>
|
7
|
+
<table cellpadding="4" cellspacing="0" class="frm-tbl">
|
8
|
+
<tr>
|
9
|
+
<td><p><label for="comment_author"><%= t('.your_name') %></label></p></td>
|
10
|
+
<td>
|
11
|
+
<%= text_field 'comment', 'author', size: 20 %>
|
12
|
+
<small>
|
13
|
+
<%= link_to '#', onclick: "$('.optional_field').fadeToggle();return false" do %>
|
14
|
+
(<%= t('.leave_url_email') %> »)
|
15
|
+
<% end %>
|
16
|
+
</small>
|
17
|
+
</td>
|
18
|
+
</tr>
|
19
|
+
<tr class="optional_field" style="display: none">
|
20
|
+
<td><p><label for="comment_url"><%= t('.your_blog') %></label></p></td>
|
21
|
+
<td> <%= text_field 'comment', 'url' %></td>
|
22
|
+
</tr>
|
23
|
+
<tr class="optional_field" style="display: none">
|
24
|
+
<td><p><label for="comment_email"><%= t('.your_email') %></label></p></td>
|
25
|
+
<td> <%= text_field 'comment', 'email' %></td>
|
26
|
+
</tr>
|
27
|
+
<tr>
|
28
|
+
<td><p><label for="comment_body"><%= t('.your_message') %></label></p></td>
|
29
|
+
<td valign="top" colspan="2">
|
30
|
+
<%= text_area 'comment', 'body' %>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
<% if this_blog.use_recaptcha %>
|
34
|
+
<tr>
|
35
|
+
<td><p>reCaptcha</p></td>
|
36
|
+
<td><p><%= recaptcha_tags ajax: true %></p></td>
|
37
|
+
</tr>
|
38
|
+
<% end %>
|
39
|
+
<tr>
|
40
|
+
<td colspan="2" id="frm-btns">
|
41
|
+
<%= markup_help_popup TextFilter.make_filter(this_blog.comment_text_filter), t('.comment_markup_help') %>
|
42
|
+
<a href="#" onclick="$.post('<%= @article.preview_comment_url %>', $('#comment_form').serialize());return false"><%= t('.preview_comment') %></a>
|
43
|
+
<input type="submit" name="submit" id="form-submit-button" value="submit" class="button" />
|
44
|
+
</td>
|
45
|
+
</tr>
|
46
|
+
</table>
|
47
|
+
</div>
|
48
|
+
<% end %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div id='content-<%= article.id %>'>
|
2
|
+
<p>This post is password protected. Please fill in your password or login to view the content</p>
|
3
|
+
<%= form_for(article, remote: true,
|
4
|
+
url: { controller: 'articles', action: 'check_password' },
|
5
|
+
update: "content-#{article.id}") do |f| %>
|
6
|
+
<%= password_field(:article, :password) %>
|
7
|
+
<input type='hidden' name='article[id]' value='<%= article.id %>' />
|
8
|
+
<%= submit_tag(t('.submit') + '!', name: 'check_password') %>
|
9
|
+
<% end %>
|
10
|
+
</div>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<li id="trackback-<%= trackback.id %>"<%= onhover_show_admin_tools(:trackback, trackback.id) %>>
|
2
|
+
<a name="trackback-<%= trackback.id %>"></a>
|
3
|
+
<%= t('.from') %> <strong><%= trackback.blog_name %></strong><br />
|
4
|
+
<a href="<%= trackback.url %>" rel="nofollow"><%= h trackback.title %></a><br />
|
5
|
+
<%= trackback.excerpt %>
|
6
|
+
</li>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% if @articles.empty? %>
|
2
|
+
<div class="post">
|
3
|
+
<p><%= t('.no_articles_found') %></p>
|
4
|
+
</div>
|
5
|
+
<% else %>
|
6
|
+
<%= cache [@articles, params[:page]] do %>
|
7
|
+
<% @articles.group_by(&:publication_month).each do |_month, articles| %>
|
8
|
+
<h3 class="archivemonth">
|
9
|
+
<%= l(articles.first.published_at, format: :letters_month_with_year) %>
|
10
|
+
</h3>
|
11
|
+
<%= render partial: 'archives_article', collection: articles, as: :article %>
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
<%= paginate @articles %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
atom_feed root_url: @article.permalink_url do |feed|
|
4
|
+
feedback = @article.published_feedback
|
5
|
+
render "shared/atom_header", feed: feed, items: feedback
|
6
|
+
|
7
|
+
feedback.each do |item|
|
8
|
+
render "shared/atom_item_#{item.type.downcase}", feed: feed, item: item
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
xml.instruct! :xml, version: "1.0", encoding: "UTF-8"
|
4
|
+
xml.instruct! "xml-stylesheet", type: "text/css", href: url_for("/stylesheets/rss.css")
|
5
|
+
|
6
|
+
xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/",
|
7
|
+
"xmlns:atom" => "http://www.w3.org/2005/Atom" do
|
8
|
+
xml.channel do
|
9
|
+
xml.title feed_title
|
10
|
+
xml.link @article.permalink_url
|
11
|
+
xml.atom :link, href: request.url, rel: "self", type: "application/rss+xml"
|
12
|
+
xml.language this_blog.lang.tr("_", "-").downcase
|
13
|
+
xml.ttl "40"
|
14
|
+
xml.description this_blog.blog_subtitle
|
15
|
+
|
16
|
+
feedback = @article.published_feedback
|
17
|
+
feedback.each do |item|
|
18
|
+
render "shared/rss_item_#{item.type.downcase}", feed: xml, item: item
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render 'article_collection', articles: @articles %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
atom_feed(language: this_blog.lang.split("_").first, root_url: this_blog.base_url) do |feed|
|
4
|
+
render "shared/atom_header", feed: feed, items: @articles
|
5
|
+
|
6
|
+
@articles.each do |item|
|
7
|
+
render "shared/atom_item_article", feed: feed, item: item
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
xml.instruct! :xml, version: "1.0", encoding: "UTF-8"
|
4
|
+
xml.instruct! "xml-stylesheet", type: "text/css", href: url_for("/stylesheets/rss.css")
|
5
|
+
|
6
|
+
xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/",
|
7
|
+
"xmlns:atom" => "http://www.w3.org/2005/Atom" do
|
8
|
+
xml.channel do
|
9
|
+
xml.title feed_title
|
10
|
+
xml.link this_blog.base_url
|
11
|
+
xml.atom :link, href: request.url, rel: "self", type: "application/rss+xml"
|
12
|
+
xml.language this_blog.lang.tr("_", "-").downcase
|
13
|
+
xml.ttl "40"
|
14
|
+
xml.description this_blog.blog_subtitle
|
15
|
+
|
16
|
+
@articles.each do |item|
|
17
|
+
render "shared/rss_item_article", xm: xml, item: item
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div class="post"<%= onhover_show_admin_tools(:article) %>>
|
2
|
+
<%= link_to(t('.edit'), { controller: 'admin/content', action: 'edit', id: @article.id }, { class: 'admintools', style: 'display: none', id: 'admin_article' }) %>
|
3
|
+
<% cache @article do %>
|
4
|
+
<h2><%= link_to_permalink @article, @article.title %></h2>
|
5
|
+
<%= render 'articles/article_author', article: @article %>
|
6
|
+
<% if @article.password.blank? %>
|
7
|
+
<%= render 'articles/full_article_content', article: @article %>
|
8
|
+
<% else %>
|
9
|
+
<%= render 'articles/password_form', article: @article %>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<%= render 'article_links', article: @article %>
|
15
|
+
|
16
|
+
<% if @article.allow_comments? or @article.published_comments.size > 0 %>
|
17
|
+
<a name="comments"></a><h4 class="blueblk"><%= t('.comments') %></h4>
|
18
|
+
<% unless @article.comments_closed? %>
|
19
|
+
<p class="postmetadata alt">
|
20
|
+
<small><a href="#respond"><%= t('.leave_a_response') %></a></small>
|
21
|
+
</p>
|
22
|
+
<% end %>
|
23
|
+
<%= render 'articles/comment_list' %>
|
24
|
+
<% end %>
|
25
|
+
|
26
|
+
<% if @article.published_trackbacks.any? %>
|
27
|
+
<a name="trackbacks"></a><h4 class="blueblk"><%= t('.trackbacks') %></h4>
|
28
|
+
<ol id="trackbackList" class="trackback-list">
|
29
|
+
<%= render(partial: 'trackback', collection: @article.published_trackbacks) %>
|
30
|
+
</ol>
|
31
|
+
<% end %>
|
32
|
+
|
33
|
+
<p class="postmetadata alt">
|
34
|
+
<small>
|
35
|
+
<a href="<%= @article.feed_url('rss') %>" title="RSS Feed"><%= t('.rss_feed') %></a>
|
36
|
+
</small>
|
37
|
+
</p>
|
38
|
+
|
39
|
+
<% unless @article.comments_closed? %>
|
40
|
+
<%= render 'comment_form' %>
|
41
|
+
<% else %>
|
42
|
+
<p><%= t('.comments_are_disabled') %></p>
|
43
|
+
<% end %>
|