HornsAndHooves-publify_core 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (452) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +102 -0
  3. data/MIT-LICENSE +21 -0
  4. data/README.md +9 -0
  5. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  6. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
  7. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  8. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  9. data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  10. data/app/assets/fonts/open-sans-bold.woff +0 -0
  11. data/app/assets/fonts/open-sans.woff +0 -0
  12. data/app/assets/images/admin/loading.gif +0 -0
  13. data/app/assets/images/admin/typologo.gif +0 -0
  14. data/app/assets/images/calendar_date_select/calendar.gif +0 -0
  15. data/app/assets/images/close.gif +0 -0
  16. data/app/assets/images/closelabel.gif +0 -0
  17. data/app/assets/images/go.png +0 -0
  18. data/app/assets/images/loading.gif +0 -0
  19. data/app/assets/images/nextlabel.gif +0 -0
  20. data/app/assets/images/overlay.png +0 -0
  21. data/app/assets/images/powered.gif +0 -0
  22. data/app/assets/images/prevlabel.gif +0 -0
  23. data/app/assets/images/spinner-blue.gif +0 -0
  24. data/app/assets/images/spinner.gif +0 -0
  25. data/app/assets/images/thumb_blank.jpg +0 -0
  26. data/app/assets/javascripts/application.js +2 -0
  27. data/app/assets/javascripts/bootstrap/affix.js +164 -0
  28. data/app/assets/javascripts/bootstrap/alert.js +95 -0
  29. data/app/assets/javascripts/bootstrap/button.js +125 -0
  30. data/app/assets/javascripts/bootstrap/collapse.js +212 -0
  31. data/app/assets/javascripts/bootstrap/dropdown.js +165 -0
  32. data/app/assets/javascripts/bootstrap/modal.js +358 -0
  33. data/app/assets/javascripts/bootstrap/tab.js +155 -0
  34. data/app/assets/javascripts/bootstrap/transition.js +59 -0
  35. data/app/assets/javascripts/bootstrap-sprockets.js +8 -0
  36. data/app/assets/javascripts/cookies.js +60 -0
  37. data/app/assets/javascripts/datetimepicker.js +1470 -0
  38. data/app/assets/javascripts/lang/da_DK.js +17 -0
  39. data/app/assets/javascripts/lang/default.js +21 -0
  40. data/app/assets/javascripts/lang/en_US.js +21 -0
  41. data/app/assets/javascripts/lang/fr_FR.js +21 -0
  42. data/app/assets/javascripts/lang/nl_NL.js +21 -0
  43. data/app/assets/javascripts/lang/zh_TW.js +17 -0
  44. data/app/assets/javascripts/lightbox.js +350 -0
  45. data/app/assets/javascripts/observe.js +28 -0
  46. data/app/assets/javascripts/publify.js +11 -0
  47. data/app/assets/javascripts/publify_admin.js +104 -0
  48. data/app/assets/javascripts/quicktags.js +448 -0
  49. data/app/assets/javascripts/set-timeago-lang.js +3 -0
  50. data/app/assets/javascripts/sidebar.js +28 -0
  51. data/app/assets/javascripts/spinnable.js +5 -0
  52. data/app/assets/javascripts/tagmanager.js +481 -0
  53. data/app/assets/javascripts/typeahead.js +1139 -0
  54. data/app/assets/stylesheets/_bootstrap-compass.scss +9 -0
  55. data/app/assets/stylesheets/_bootstrap-mincer.scss +19 -0
  56. data/app/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
  57. data/app/assets/stylesheets/_bootstrap.scss +43 -0
  58. data/app/assets/stylesheets/accounts.css.scss +7 -0
  59. data/app/assets/stylesheets/administration_structure.css.scss +255 -0
  60. data/app/assets/stylesheets/bootstrap/_alerts.scss +73 -0
  61. data/app/assets/stylesheets/bootstrap/_button-groups.scss +242 -0
  62. data/app/assets/stylesheets/bootstrap/_buttons.scss +168 -0
  63. data/app/assets/stylesheets/bootstrap/_close.scss +37 -0
  64. data/app/assets/stylesheets/bootstrap/_code.scss +69 -0
  65. data/app/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
  66. data/app/assets/stylesheets/bootstrap/_dropdowns.scss +213 -0
  67. data/app/assets/stylesheets/bootstrap/_forms.scss +586 -0
  68. data/app/assets/stylesheets/bootstrap/_glyphicons.scss +307 -0
  69. data/app/assets/stylesheets/bootstrap/_grid.scss +94 -0
  70. data/app/assets/stylesheets/bootstrap/_labels.scss +66 -0
  71. data/app/assets/stylesheets/bootstrap/_media.scss +66 -0
  72. data/app/assets/stylesheets/bootstrap/_mixins.scss +37 -0
  73. data/app/assets/stylesheets/bootstrap/_modals.scss +150 -0
  74. data/app/assets/stylesheets/bootstrap/_navbar.scss +479 -0
  75. data/app/assets/stylesheets/bootstrap/_navs.scss +242 -0
  76. data/app/assets/stylesheets/bootstrap/_normalize.scss +427 -0
  77. data/app/assets/stylesheets/bootstrap/_pagination.scss +86 -0
  78. data/app/assets/stylesheets/bootstrap/_panels.scss +222 -0
  79. data/app/assets/stylesheets/bootstrap/_print.scss +99 -0
  80. data/app/assets/stylesheets/bootstrap/_scaffolding.scss +160 -0
  81. data/app/assets/stylesheets/bootstrap/_tables.scss +234 -0
  82. data/app/assets/stylesheets/bootstrap/_theme.scss +224 -0
  83. data/app/assets/stylesheets/bootstrap/_type.scss +296 -0
  84. data/app/assets/stylesheets/bootstrap/_utilities.scss +55 -0
  85. data/app/assets/stylesheets/bootstrap/_variables.scss +654 -0
  86. data/app/assets/stylesheets/bootstrap/_wells.scss +29 -0
  87. data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +15 -0
  88. data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
  89. data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  90. data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +56 -0
  91. data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  92. data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  93. data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +82 -0
  94. data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +56 -0
  95. data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  96. data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  97. data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  98. data/app/assets/stylesheets/bootstrap/mixins/_image.scss +28 -0
  99. data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  100. data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  101. data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  102. data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +7 -0
  103. data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
  104. data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +20 -0
  105. data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  106. data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  107. data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +17 -0
  108. data/app/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  109. data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  110. data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  111. data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
  112. data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  113. data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  114. data/app/assets/stylesheets/coderay.css +135 -0
  115. data/app/assets/stylesheets/datetimepicker.css +306 -0
  116. data/app/assets/stylesheets/lightbox.css +63 -0
  117. data/app/assets/stylesheets/publify.css.scss +9 -0
  118. data/app/assets/stylesheets/publify_admin.css.scss +10 -0
  119. data/app/assets/stylesheets/rss.css +53 -0
  120. data/app/assets/stylesheets/sidebar_admin.css.scss +36 -0
  121. data/app/assets/stylesheets/tagmanager.css +102 -0
  122. data/app/assets/stylesheets/user-styles.css +29 -0
  123. data/app/controllers/accounts_controller.rb +4 -0
  124. data/app/controllers/admin/base_controller.rb +27 -0
  125. data/app/controllers/admin/content_controller.rb +194 -0
  126. data/app/controllers/admin/dashboard_controller.rb +33 -0
  127. data/app/controllers/admin/feedback_controller.rb +160 -0
  128. data/app/controllers/admin/notes_controller.rb +73 -0
  129. data/app/controllers/admin/pages_controller.rb +73 -0
  130. data/app/controllers/admin/post_types_controller.rb +57 -0
  131. data/app/controllers/admin/profiles_controller.rb +57 -0
  132. data/app/controllers/admin/redirects_controller.rb +51 -0
  133. data/app/controllers/admin/resources_controller.rb +36 -0
  134. data/app/controllers/admin/seo_controller.rb +46 -0
  135. data/app/controllers/admin/settings_controller.rb +53 -0
  136. data/app/controllers/admin/sidebar_controller.rb +67 -0
  137. data/app/controllers/admin/tags_controller.rb +55 -0
  138. data/app/controllers/admin/themes_controller.rb +31 -0
  139. data/app/controllers/admin/users_controller.rb +67 -0
  140. data/app/controllers/articles_controller.rb +215 -0
  141. data/app/controllers/authors_controller.rb +30 -0
  142. data/app/controllers/base_controller.rb +43 -0
  143. data/app/controllers/comments_controller.rb +67 -0
  144. data/app/controllers/content_controller.rb +24 -0
  145. data/app/controllers/feedback_controller.rb +13 -0
  146. data/app/controllers/notes_controller.rb +35 -0
  147. data/app/controllers/setup_controller.rb +61 -0
  148. data/app/controllers/tags_controller.rb +50 -0
  149. data/app/controllers/text_controller.rb +7 -0
  150. data/app/controllers/textfilter_controller.rb +5 -0
  151. data/app/controllers/theme_controller.rb +63 -0
  152. data/app/controllers/xml_controller.rb +20 -0
  153. data/app/helpers/admin/base_helper.rb +87 -0
  154. data/app/helpers/admin/feedback_helper.rb +53 -0
  155. data/app/helpers/articles_helper.rb +10 -0
  156. data/app/helpers/authors_helper.rb +30 -0
  157. data/app/helpers/base_helper.rb +257 -0
  158. data/app/helpers/blog_helper.rb +14 -0
  159. data/app/helpers/xml_helper.rb +18 -0
  160. data/app/jobs/application_job.rb +5 -0
  161. data/app/mailers/notification_mailer.rb +40 -0
  162. data/app/models/ability.rb +53 -0
  163. data/app/models/archives_sidebar.rb +45 -0
  164. data/app/models/article/factory.rb +64 -0
  165. data/app/models/article.rb +308 -0
  166. data/app/models/blog.rb +280 -0
  167. data/app/models/comment.rb +57 -0
  168. data/app/models/config_manager.rb +83 -0
  169. data/app/models/content.rb +118 -0
  170. data/app/models/content_base.rb +88 -0
  171. data/app/models/feedback.rb +250 -0
  172. data/app/models/meta_sidebar.rb +10 -0
  173. data/app/models/note.rb +152 -0
  174. data/app/models/page.rb +42 -0
  175. data/app/models/page_sidebar.rb +14 -0
  176. data/app/models/ping.rb +5 -0
  177. data/app/models/post_type.rb +16 -0
  178. data/app/models/redirect.rb +51 -0
  179. data/app/models/redirection.rb +6 -0
  180. data/app/models/resource.rb +12 -0
  181. data/app/models/search_sidebar.rb +9 -0
  182. data/app/models/sidebar.rb +142 -0
  183. data/app/models/static_sidebar.rb +22 -0
  184. data/app/models/tag.rb +71 -0
  185. data/app/models/tag_sidebar.rb +30 -0
  186. data/app/models/text_filter.rb +141 -0
  187. data/app/models/trackback.rb +46 -0
  188. data/app/models/trigger.rb +34 -0
  189. data/app/models/user.rb +142 -0
  190. data/app/services/title_builder.rb +88 -0
  191. data/app/uploaders/resource_uploader.rb +63 -0
  192. data/app/views/accounts/confirm.html.erb +7 -0
  193. data/app/views/admin/content/_article_list.html.erb +26 -0
  194. data/app/views/admin/content/_form.html.erb +145 -0
  195. data/app/views/admin/content/autosave.js.erb +5 -0
  196. data/app/views/admin/content/edit.html.erb +3 -0
  197. data/app/views/admin/content/index.html.erb +48 -0
  198. data/app/views/admin/content/index.js.erb +1 -0
  199. data/app/views/admin/content/new.html.erb +3 -0
  200. data/app/views/admin/dashboard/_comment.html.erb +18 -0
  201. data/app/views/admin/dashboard/_comments.html.erb +10 -0
  202. data/app/views/admin/dashboard/_drafts.html.erb +25 -0
  203. data/app/views/admin/dashboard/_overview.html.erb +21 -0
  204. data/app/views/admin/dashboard/_welcome.html.erb +28 -0
  205. data/app/views/admin/dashboard/index.html.erb +16 -0
  206. data/app/views/admin/feedback/_button.html.erb +19 -0
  207. data/app/views/admin/feedback/_feedback.html.erb +7 -0
  208. data/app/views/admin/feedback/_ham.html.erb +17 -0
  209. data/app/views/admin/feedback/_spam.html.erb +23 -0
  210. data/app/views/admin/feedback/article.html.erb +69 -0
  211. data/app/views/admin/feedback/edit.html.erb +48 -0
  212. data/app/views/admin/feedback/ham.js +1 -0
  213. data/app/views/admin/feedback/index.html.erb +53 -0
  214. data/app/views/admin/feedback/spam.js +1 -0
  215. data/app/views/admin/migrations/show.html.erb +39 -0
  216. data/app/views/admin/notes/_form.html.erb +37 -0
  217. data/app/views/admin/notes/_header.html.erb +6 -0
  218. data/app/views/admin/notes/_list.html.erb +13 -0
  219. data/app/views/admin/notes/_note.html.erb +14 -0
  220. data/app/views/admin/notes/edit.html.erb +11 -0
  221. data/app/views/admin/notes/index.html.erb +11 -0
  222. data/app/views/admin/notes/show.html.erb +14 -0
  223. data/app/views/admin/pages/_form.html.erb +101 -0
  224. data/app/views/admin/pages/_pages.html.erb +21 -0
  225. data/app/views/admin/pages/edit.html.erb +1 -0
  226. data/app/views/admin/pages/index.html.erb +17 -0
  227. data/app/views/admin/pages/new.html.erb +1 -0
  228. data/app/views/admin/post_types/_index_and_form.html.erb +65 -0
  229. data/app/views/admin/post_types/edit.html.erb +1 -0
  230. data/app/views/admin/post_types/index.html.erb +1 -0
  231. data/app/views/admin/profiles/index.html.erb +10 -0
  232. data/app/views/admin/redirects/_index_and_form.html.erb +68 -0
  233. data/app/views/admin/redirects/edit.html.erb +1 -0
  234. data/app/views/admin/redirects/index.html.erb +1 -0
  235. data/app/views/admin/resources/index.html.erb +72 -0
  236. data/app/views/admin/seo/_general.html.erb +104 -0
  237. data/app/views/admin/seo/_permalinks.html.erb +53 -0
  238. data/app/views/admin/seo/_titles.html.erb +209 -0
  239. data/app/views/admin/seo/show.html.erb +28 -0
  240. data/app/views/admin/settings/display.html.erb +101 -0
  241. data/app/views/admin/settings/feedback.html.erb +118 -0
  242. data/app/views/admin/settings/index.html.erb +73 -0
  243. data/app/views/admin/settings/write.html.erb +69 -0
  244. data/app/views/admin/shared/_edit.html.erb +4 -0
  245. data/app/views/admin/shared/_menu.html.erb +121 -0
  246. data/app/views/admin/shared/_twitter_alert.html.erb +3 -0
  247. data/app/views/admin/sidebar/_available.html.erb +6 -0
  248. data/app/views/admin/sidebar/_available.json.erb +6 -0
  249. data/app/views/admin/sidebar/_config.html.erb +27 -0
  250. data/app/views/admin/sidebar/_target.html.erb +9 -0
  251. data/app/views/admin/sidebar/_target_sidebar.html.erb +20 -0
  252. data/app/views/admin/sidebar/destroy.js.erb +1 -0
  253. data/app/views/admin/sidebar/index.html.erb +31 -0
  254. data/app/views/admin/sidebar/sortable.js.erb +3 -0
  255. data/app/views/admin/sidebar/update.js.erb +2 -0
  256. data/app/views/admin/tags/_index_and_form.html.erb +59 -0
  257. data/app/views/admin/tags/edit.html.erb +1 -0
  258. data/app/views/admin/tags/index.html.erb +1 -0
  259. data/app/views/admin/themes/index.html.erb +27 -0
  260. data/app/views/admin/users/_form.html.erb +215 -0
  261. data/app/views/admin/users/edit.html.erb +8 -0
  262. data/app/views/admin/users/index.html.erb +39 -0
  263. data/app/views/admin/users/new.html.erb +8 -0
  264. data/app/views/archives_sidebar/_content.html.erb +13 -0
  265. data/app/views/articles/_archives_article.html.erb +9 -0
  266. data/app/views/articles/_article.html.erb +9 -0
  267. data/app/views/articles/_article_author.html.erb +4 -0
  268. data/app/views/articles/_article_collection.html.erb +8 -0
  269. data/app/views/articles/_article_content.html.erb +5 -0
  270. data/app/views/articles/_article_excerpt.html.erb +15 -0
  271. data/app/views/articles/_article_links.html.erb +12 -0
  272. data/app/views/articles/_comment.html.erb +1 -0
  273. data/app/views/articles/_comment_errors.html.erb +2 -0
  274. data/app/views/articles/_comment_form.html.erb +48 -0
  275. data/app/views/articles/_comment_list.html.erb +5 -0
  276. data/app/views/articles/_comment_preview.html.erb +4 -0
  277. data/app/views/articles/_full_article_content.html.erb +4 -0
  278. data/app/views/articles/_password_form.html.erb +10 -0
  279. data/app/views/articles/_trackback.html.erb +6 -0
  280. data/app/views/articles/archives.html.erb +15 -0
  281. data/app/views/articles/comment.js.erb +5 -0
  282. data/app/views/articles/comment_failed.js.erb +3 -0
  283. data/app/views/articles/error.html.erb +3 -0
  284. data/app/views/articles/feedback_atom_feed.atom.builder +10 -0
  285. data/app/views/articles/feedback_rss_feed.rss.builder +21 -0
  286. data/app/views/articles/index.html.erb +1 -0
  287. data/app/views/articles/index_atom_feed.atom.builder +9 -0
  288. data/app/views/articles/index_rss_feed.rss.builder +20 -0
  289. data/app/views/articles/live_search.html.erb +10 -0
  290. data/app/views/articles/read.html.erb +43 -0
  291. data/app/views/articles/search.html.erb +8 -0
  292. data/app/views/articles/trackback.xml.builder +7 -0
  293. data/app/views/articles/view_page.html.erb +3 -0
  294. data/app/views/authors/show.html.erb +30 -0
  295. data/app/views/authors/show_atom_feed.atom.builder +9 -0
  296. data/app/views/authors/show_rss_feed.rss.builder +20 -0
  297. data/app/views/comments/_comment.html.erb +17 -0
  298. data/app/views/comments/preview.html.erb +1 -0
  299. data/app/views/comments/preview.js.erb +3 -0
  300. data/app/views/devise/mailer/reset_password_instructions.html.erb +11 -0
  301. data/app/views/devise/passwords/edit.html.erb +28 -0
  302. data/app/views/devise/passwords/new.html.erb +20 -0
  303. data/app/views/devise/registrations/new.html.erb +36 -0
  304. data/app/views/devise/sessions/new.html.erb +32 -0
  305. data/app/views/devise/shared/_links.html.erb +11 -0
  306. data/app/views/errors/404.html.erb +2 -0
  307. data/app/views/feedback/index.atom.builder +9 -0
  308. data/app/views/feedback/index.rss.builder +20 -0
  309. data/app/views/layouts/accounts.html.erb +33 -0
  310. data/app/views/layouts/administration.html.erb +37 -0
  311. data/app/views/layouts/default.html.erb +33 -0
  312. data/app/views/layouts/editor.html.erb +17 -0
  313. data/app/views/meta_sidebar/_content.html.erb +8 -0
  314. data/app/views/notes/_note.html.erb +16 -0
  315. data/app/views/notes/error.html.erb +3 -0
  316. data/app/views/notes/index.html.erb +15 -0
  317. data/app/views/notes/show.html.erb +5 -0
  318. data/app/views/notes/show_in_reply.html.erb +18 -0
  319. data/app/views/notification_mailer/_mail_footer.html.erb +5 -0
  320. data/app/views/notification_mailer/_mail_header.html.erb +3 -0
  321. data/app/views/notification_mailer/article.html.erb +7 -0
  322. data/app/views/notification_mailer/comment.html.erb +12 -0
  323. data/app/views/notification_mailer/notif_user.html.erb +9 -0
  324. data/app/views/page_sidebar/_content.html.erb +12 -0
  325. data/app/views/search_sidebar/_content.html.erb +10 -0
  326. data/app/views/settings/done.html.erb +2 -0
  327. data/app/views/settings/install.html.erb +12 -0
  328. data/app/views/setup/index.html.erb +17 -0
  329. data/app/views/shared/_atom_header.atom.builder +6 -0
  330. data/app/views/shared/_atom_item_article.atom.builder +36 -0
  331. data/app/views/shared/_atom_item_comment.atom.builder +10 -0
  332. data/app/views/shared/_atom_item_trackback.atom.builder +10 -0
  333. data/app/views/shared/_flash.erb +10 -0
  334. data/app/views/shared/_google_analytics.html.erb +8 -0
  335. data/app/views/shared/_page_header.html.erb +23 -0
  336. data/app/views/shared/_rss_item_article.rss.builder +32 -0
  337. data/app/views/shared/_rss_item_comment.rss.builder +9 -0
  338. data/app/views/shared/_rss_item_trackback.rss.builder +9 -0
  339. data/app/views/sidebar/_row.html.erb +1 -0
  340. data/app/views/sidebar/_sidebar.html.erb +5 -0
  341. data/app/views/sidebar/display_plugins.html.erb +5 -0
  342. data/app/views/sidebar/show.html.erb +1 -0
  343. data/app/views/static_sidebar/_content.html.erb +2 -0
  344. data/app/views/tag_sidebar/_content.html.erb +10 -0
  345. data/app/views/tags/index.html.erb +15 -0
  346. data/app/views/tags/show.html.erb +1 -0
  347. data/app/views/theme/static_view_test.html.erb +1 -0
  348. data/app/views/xml/_googlesitemap_item_article.googlesitemap.builder +7 -0
  349. data/app/views/xml/_googlesitemap_item_category.googlesitemap.builder +6 -0
  350. data/app/views/xml/_googlesitemap_item_page.googlesitemap.builder +6 -0
  351. data/app/views/xml/_googlesitemap_item_tag.googlesitemap.builder +6 -0
  352. data/app/views/xml/sitemap.googlesitemap.builder +9 -0
  353. data/config/i18n-tasks.yml +49 -0
  354. data/config/initializers/devise.rb +271 -0
  355. data/config/initializers/mime_types.rb +7 -0
  356. data/config/locales/da.yml +769 -0
  357. data/config/locales/de.yml +769 -0
  358. data/config/locales/en.yml +770 -0
  359. data/config/locales/es-MX.yml +769 -0
  360. data/config/locales/fr.yml +769 -0
  361. data/config/locales/he.yml +769 -0
  362. data/config/locales/it.yml +769 -0
  363. data/config/locales/ja.yml +769 -0
  364. data/config/locales/lt.yml +783 -0
  365. data/config/locales/nb-NO.yml +769 -0
  366. data/config/locales/nl.yml +769 -0
  367. data/config/locales/pl.yml +797 -0
  368. data/config/locales/pt-BR.yml +769 -0
  369. data/config/locales/ro.yml +782 -0
  370. data/config/locales/ru.yml +797 -0
  371. data/config/locales/sidebars.da.yml +20 -0
  372. data/config/locales/sidebars.de.yml +20 -0
  373. data/config/locales/sidebars.en.yml +20 -0
  374. data/config/locales/sidebars.es-MX.yml +20 -0
  375. data/config/locales/sidebars.fr.yml +20 -0
  376. data/config/locales/sidebars.he.yml +20 -0
  377. data/config/locales/sidebars.it.yml +20 -0
  378. data/config/locales/sidebars.ja.yml +20 -0
  379. data/config/locales/sidebars.lt.yml +20 -0
  380. data/config/locales/sidebars.nb-NO.yml +20 -0
  381. data/config/locales/sidebars.nl.yml +20 -0
  382. data/config/locales/sidebars.pl.yml +20 -0
  383. data/config/locales/sidebars.pt-BR.yml +20 -0
  384. data/config/locales/sidebars.ro.yml +20 -0
  385. data/config/locales/sidebars.ru.yml +20 -0
  386. data/config/locales/sidebars.zh-CN.yml +20 -0
  387. data/config/locales/sidebars.zh-TW.yml +20 -0
  388. data/config/locales/zh-CN.yml +768 -0
  389. data/config/locales/zh-TW.yml +769 -0
  390. data/config/routes.rb +174 -0
  391. data/db/migrate/113_initial_schema.rb +210 -0
  392. data/db/migrate/114_fixes_buggy_articles_and_notes.rb +56 -0
  393. data/db/migrate/115_drops_categories_for_tags.rb +37 -0
  394. data/db/migrate/20150207131657_add_missing_indexes.rb +23 -0
  395. data/db/migrate/20150807134129_simplify_redirect_relations.rb +45 -0
  396. data/db/migrate/20150808052637_add_blog_ids.rb +39 -0
  397. data/db/migrate/20150808191127_add_blog_id_to_redirects.rb +19 -0
  398. data/db/migrate/20150810094754_add_blog_id_to_tags.rb +19 -0
  399. data/db/migrate/20160108111120_add_devise_to_users.rb +57 -0
  400. data/db/migrate/20160108184201_move_last_connection_to_last_sign_in_at.rb +20 -0
  401. data/db/migrate/20160110094906_remove_profiles_rights.rb +18 -0
  402. data/db/migrate/20160605103918_replace_profile_id_with_string.rb +32 -0
  403. data/db/migrate/20160605154632_remove_profiles.rb +31 -0
  404. data/db/migrate/20160701061851_demand_blog_id_on_contents.rb +13 -0
  405. data/db/migrate/20160701062604_add_blog_id_to_resources.rb +32 -0
  406. data/db/migrate/20170528093024_move_resources_to_content.rb +9 -0
  407. data/db/migrate/20170528094923_move_tags_to_content.rb +10 -0
  408. data/db/migrate/20170528201606_remove_separate_published_flag.rb +9 -0
  409. data/db/migrate/20170605071626_remove_extra_state_columns_from_feedback.rb +10 -0
  410. data/db/migrate/20170702105201_remove_published_at_from_feedback.rb +9 -0
  411. data/db/migrate/20190208151235_add_text_filter_name_fields.rb +11 -0
  412. data/db/migrate/20190208152646_move_text_filter_to_name.rb +99 -0
  413. data/db/migrate/20190209155717_remove_text_filter_ids.rb +21 -0
  414. data/db/migrate/20190209160610_remove_text_filters.rb +19 -0
  415. data/db/seeds.rb +25 -0
  416. data/lib/email_notify.rb +28 -0
  417. data/lib/format.rb +9 -0
  418. data/lib/publify_core/engine.rb +31 -0
  419. data/lib/publify_core/lang.rb +9 -0
  420. data/lib/publify_core/testing_support/dns_mock.rb +15 -0
  421. data/lib/publify_core/testing_support/factories.rb +242 -0
  422. data/lib/publify_core/testing_support/feed_assertions.rb +48 -0
  423. data/lib/publify_core/testing_support/fixtures/exploit.svg +4 -0
  424. data/lib/publify_core/testing_support/fixtures/fakepng.png +1 -0
  425. data/lib/publify_core/testing_support/fixtures/otherfile.txt +1 -0
  426. data/lib/publify_core/testing_support/fixtures/testfile.png +0 -0
  427. data/lib/publify_core/testing_support/fixtures/testfile.txt +1 -0
  428. data/lib/publify_core/testing_support/upload_fixtures.rb +15 -0
  429. data/lib/publify_core/version.rb +5 -0
  430. data/lib/publify_core.rb +46 -0
  431. data/lib/publify_guid.rb +11 -0
  432. data/lib/publify_plugins.rb +77 -0
  433. data/lib/publify_textfilter_markdown.rb +57 -0
  434. data/lib/publify_textfilter_none.rb +16 -0
  435. data/lib/publify_textfilter_smartypants.rb +16 -0
  436. data/lib/publify_textfilter_textile.rb +23 -0
  437. data/lib/publify_textfilter_twitterfilter.rb +39 -0
  438. data/lib/publify_time.rb +34 -0
  439. data/lib/sidebar_field.rb +127 -0
  440. data/lib/sidebar_registry.rb +35 -0
  441. data/lib/spam_protection.rb +103 -0
  442. data/lib/tasks/i18n.rake +9 -0
  443. data/lib/tasks/manifest.rake +30 -0
  444. data/lib/tasks/publify_core_tasks.rake +6 -0
  445. data/lib/text_filter_plugin.rb +183 -0
  446. data/lib/theme.rb +72 -0
  447. data/lib/transforms.rb +47 -0
  448. data/themes/plain/about.markdown +4 -0
  449. data/themes/plain/javascripts/theme.js +0 -0
  450. data/themes/plain/preview.png +0 -0
  451. data/themes/plain/stylesheets/theme.css +57 -0
  452. metadata +1062 -0
@@ -0,0 +1,30 @@
1
+ <div class="post">
2
+ <h2><%= @author.nickname %></h2>
3
+ <%= display_user_avatar(@author, 'thumb', 'alignright') %>
4
+ <%= author_description @author %>
5
+ <h2><%= t('.contact_information') %></h2>
6
+ <ul>
7
+ <%= display_profile_item @author.url, t('.web_site') %>
8
+ <%= display_profile_item @author.msn, t('.msn') %>
9
+ <%= display_profile_item @author.yahoo, t('.yahoo') %>
10
+ <%= display_profile_item @author.jabber, t('.jabber') %>
11
+ <%= display_profile_item @author.aim, t('.aim') %>
12
+ <%= display_profile_item @author.twitter, t('.twitter') %>
13
+ </ul>
14
+ </div>
15
+
16
+ <% if @articles.empty? %>
17
+ <div class="post">
18
+ <p><%= t('.this_author_has_not_published_any_article_yet') %></p>
19
+ </div>
20
+ <% else %>
21
+ <%= cache [@articles, params[:page]] do %>
22
+ <% @articles.group_by(&:publication_month).each do |_month, articles| %>
23
+ <h3 class="archivemonth">
24
+ <%= l(articles.first.published_at, format: :letters_month_with_year) %>
25
+ </h3>
26
+ <%= render partial: 'articles/archives_article', collection: articles, as: :article %>
27
+ <% end %>
28
+ <% end %>
29
+ <%= paginate @articles %>
30
+ <% end %>
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ atom_feed root_url: author_url(@author) 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,17 @@
1
+ <% cache comment do %>
2
+ <li id="comment-<%= comment.id %>" <%= 'class="author_comment"' if comment.user %> <%= onhover_show_admin_tools(:comment, comment.id) %>>
3
+ <p class="author">
4
+ <%= avatar_tag(email: comment.email, url: comment.url) %>
5
+ <cite><strong><%= link_to_unless(comment.url.blank?, h(comment.author), comment.url) %></strong></cite>
6
+ <%= t('.said') %> <%= display_date_and_time comment.created_at %>:
7
+ </p>
8
+ <div class="content">
9
+ <%= raw nofollowify_links comment.generate_html(:body) %>
10
+ <% unless comment.published? %>
11
+ <div class="spamwarning">
12
+ <%= t('.this_comment_has_been_flagged_for_moderator_approval') %>
13
+ </div>
14
+ <% end %>
15
+ </div>
16
+ </li>
17
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'articles/comment_preview', comment: @comment %>
@@ -0,0 +1,3 @@
1
+ var preview = "<%= j render 'articles/comment_preview', comment: @comment %>";
2
+ $('#errors').hide();
3
+ $('#preview').hide().html(preview).fadeIn();
@@ -0,0 +1,11 @@
1
+ <% require 'devise/version' %>
2
+ <%# TODO: Link user to blog so we can do @resource.blog
3
+ blog = Blog.first %>
4
+ <p><%= t('.greeting', recipient: @resource.login, default: "Hello #{@resource.login}!") %></p>
5
+
6
+ <p><%= t('.instruction', default: 'Someone has requested a link to change your password, and you can do this through the link below.') %></p>
7
+
8
+ <p><%= link_to t('.action', default: 'Change my password'), edit_password_url(@resource, reset_password_token: @token, host: blog.base_url) %></p>
9
+
10
+ <p><%= t('.instruction_2', default: "If you didn't request this, please ignore this email.") %></p>
11
+ <p><%= t('.instruction_3', default: "Your password won't change until you access the link above and create a new one.") %></p>
@@ -0,0 +1,28 @@
1
+ <% content_for :page_title do %>
2
+ <%= "#{this_blog.blog_name} - #{t('.change_your_password', default: 'Change your password')}" %>
3
+ <% end %>
4
+
5
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
6
+ <%= devise_error_messages! %>
7
+ <fieldset>
8
+ <%= f.hidden_field :reset_password_token %>
9
+
10
+ <div class="form-group">
11
+ <%= f.label :password, t('.new_password') %><br />
12
+ <% if @minimum_password_length %>
13
+ <em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br />
14
+ <% end %>
15
+ <%= f.password_field :password, class: 'form-control', autofocus: true, autocomplete: 'off' %>
16
+ </div>
17
+
18
+ <div class="form-group">
19
+ <%= f.label :password_confirmation, t('.confirm_new_password') %><br />
20
+ <%= f.password_field :password_confirmation, class: 'form-control', autocomplete: 'off' %>
21
+ </div>
22
+
23
+ <div class="actions">
24
+ <%= f.submit t('.change_my_password'), class: 'btn btn-lg btn-success btn-block' %>
25
+ </div>
26
+ <% end %>
27
+
28
+ <%= render 'devise/shared/links' %>
@@ -0,0 +1,20 @@
1
+ <% content_for :page_title do %>
2
+ <%= "#{this_blog.blog_name} - #{t('.forgot_your_password', default: 'Forgot your password?')}" %>
3
+ <% end %>
4
+
5
+ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
6
+ <%= devise_error_messages! %>
7
+ <fieldset>
8
+
9
+ <div class='form-group'>
10
+ <%= f.label :email %><br />
11
+ <%= f.email_field :email, class: 'form-control' %>
12
+ </div>
13
+
14
+ <div class='form-group'>
15
+ <%= f.submit t('.send_me_reset_password_instructions'), class: 'btn btn-lg btn-success btn-block' %>
16
+ </div>
17
+ </fieldset>
18
+ <% end %>
19
+
20
+ <%= render 'devise/shared/links' %>
@@ -0,0 +1,36 @@
1
+ <% content_for :page_title do %>
2
+ <%= "#{this_blog.blog_name} - #{t('.sign_up', default: 'Sign up')}" %>
3
+ <% end %>
4
+
5
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
6
+ <%= render "devise/shared/error_messages", resource: resource %>
7
+
8
+ <div class="form-group">
9
+ <%= f.label :login %>
10
+ <%= f.text_field :login, class: 'form-control', autofocus: true %>
11
+ </div>
12
+
13
+ <div class="form-group">
14
+ <%= f.label :email %>
15
+ <%= f.email_field :email, class: 'form-control' %>
16
+ </div>
17
+
18
+ <div class="form-group">
19
+ <%= f.label :password %>
20
+ <% if @minimum_password_length %>
21
+ <em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br />
22
+ <% end %>
23
+ <%= f.password_field :password, class: 'form-control', autofocus: true, autocomplete: 'off' %>
24
+ </div>
25
+
26
+ <div class="form-group">
27
+ <%= f.label :password_confirmation %><br />
28
+ <%= f.password_field :password_confirmation, class: 'form-control', autocomplete: 'off' %>
29
+ </div>
30
+
31
+ <div class="actions">
32
+ <%= f.submit t('.sign_up'), class: 'btn btn-lg btn-success btn-block' %>
33
+ </div>
34
+ <% end %>
35
+
36
+ <%= render 'devise/shared/links' %>
@@ -0,0 +1,32 @@
1
+ <% content_for :page_title do %>
2
+ <%= "#{this_blog.blog_name} - #{t('.sign_in', default: 'Sign in')}" %>
3
+ <% end %>
4
+
5
+ <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
6
+ <fieldset>
7
+ <div class="form-group">
8
+ <%= f.label :login %><br />
9
+ <%= f.text_field :login, class: 'form-control', autofocus: true %>
10
+ </div>
11
+
12
+ <div class="form-group">
13
+ <%= f.label :password %><br />
14
+ <%= f.password_field :password, class: 'form-control', autocomplete: 'off' %>
15
+ </div>
16
+
17
+ <div class="checkbox">
18
+ <%= f.label :remember_me do %>
19
+ <%= f.check_box :remember_me %>
20
+ <%= User.human_attribute_name(:remember_me) %>
21
+ <% end %>
22
+ </div>
23
+
24
+ <div class="actions">
25
+ <%= f.submit "Sign In", class: 'btn btn-lg btn-success btn-block' %>
26
+ </div>
27
+ </fieldset>
28
+ <% end %>
29
+
30
+ <% content_for :account_links do %>
31
+ <%= render 'devise/shared/links' %>
32
+ <% end %>
@@ -0,0 +1,11 @@
1
+ <small>
2
+ <%- if controller_name != 'sessions' %>
3
+ <%= link_to t('accounts.back_to_login'), new_session_path(resource_name) %><br />
4
+ <% end -%>
5
+
6
+ <%- if controller_name != 'passwords' && controller_name != 'registrations' %>
7
+ <%= link_to t('accounts.lost_my_password'), new_password_path(resource_name) %><br />
8
+ <% end -%>
9
+
10
+ <%= link_to(t('accounts.back_to_html', place: this_blog.blog_name), this_blog.base_url) %>
11
+ </small>
@@ -0,0 +1,2 @@
1
+ <h2><%= t('errors.page_not_found') %></h2>
2
+ <p><%= t('errors.the_page_you_are_looking_for') %></p>
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ atom_feed root_url: this_blog.base_url do |feed|
4
+ render "shared/atom_header", feed: feed, items: @feedback
5
+
6
+ @feedback.each do |item|
7
+ render "shared/atom_item_#{item.type.downcase}", 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
+ @feedback.each do |item|
17
+ render "shared/rss_item_#{item.type.downcase}", feed: xml, item: item
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>
7
+ <%= yield :page_title %>
8
+ </title>
9
+ <meta http-equiv="imagetoolbar" content="no" />
10
+ <%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
11
+ <%= stylesheet_link_tag 'accounts' %>
12
+ </head>
13
+ <body>
14
+ <div class="container">
15
+ <div class="row">
16
+ <div class="col-md-4 col-md-offset-4">
17
+ <div class="panel panel-default">
18
+ <div class="panel-heading">
19
+ <h1 class='panel-title'><%= link_to('Publify', 'https://publify.github.io') %></h1>
20
+ </div>
21
+ <div class="panel-body">
22
+ <%= render 'shared/flash', flash: flash %>
23
+ <%= yield %>
24
+ </div>
25
+ </div>
26
+ <% if content_for?(:account_links) %>
27
+ <%= yield :account_links %>
28
+ <% end %>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </body>
33
+ </html>
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
5
+ <title><%= this_blog.blog_name %> – <%= controller.controller_name %></title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <meta http-equiv="imagetoolbar" content="no" />
8
+ <%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
9
+ <%= stylesheet_link_tag 'publify_admin' %>
10
+ <%= csrf_meta_tags %>
11
+ </head>
12
+ <body>
13
+ <%= render 'admin/shared/menu' %>
14
+ <div class='container-fluid'>
15
+ <div class='row'>
16
+ <div class='col-md-12'>
17
+ <div style='margin-top:20px'>
18
+ <%= render 'shared/flash', flash: flash %>
19
+ </div>
20
+ <% if content_for?(:page_heading) %>
21
+ <div class='page-header'>
22
+ <%= yield :page_heading %>
23
+ </div>
24
+ <% end %>
25
+ <%= yield %>
26
+ </div>
27
+ </div>
28
+ <footer>
29
+ <div class='row'>
30
+ <div class='col-md-12'>
31
+ <%= link_to(this_blog.blog_name, this_blog.base_url) %> <%= t('.powered_by') %> Publify <%= h PublifyCore::VERSION %> – Icons courtesy of <a href='http://glyphicons.com/'>Glyphicons</a>
32
+ </div>
33
+ </div>
34
+ </footer>
35
+ </div>
36
+ </body>
37
+ </html>
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html lang="<%= I18n.locale %>">
3
+ <head>
4
+ <%= render 'shared/page_header' %>
5
+ <%= themeable_stylesheet_link_tag :theme %>
6
+ <%= themeable_javascript_include_tag :theme %>
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <title><%= h page_title %></title>
9
+ </head>
10
+
11
+ <body>
12
+ <div class="container">
13
+ <div class="header">
14
+ <h1><%= link_to this_blog.blog_name, this_blog.base_url %></h1>
15
+ <p class="desc"><%= this_blog.blog_subtitle %></p>
16
+ </div>
17
+
18
+ <div class="content">
19
+ <%= yield %>
20
+ </div>
21
+
22
+ <div class="sidebar">
23
+ <%= render_sidebars %>
24
+ </div>
25
+
26
+ <div class="footer">
27
+ <p class="legal">
28
+ <%= t('.powered_by_html', powered_by: link_to('Publify', 'https://publify.github.io')) %>
29
+ </p>
30
+ </div>
31
+ </div>
32
+ </body>
33
+ </html>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
5
+ <title><%= this_blog.blog_name %> – <%= controller.controller_name %></title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <meta http-equiv="imagetoolbar" content="no" />
8
+ <%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
9
+ <%= stylesheet_link_tag 'publify_admin' %>
10
+ <%= csrf_meta_tags %>
11
+ </head>
12
+ <body>
13
+ <div id='main'>
14
+ <%= yield %>
15
+ </div>
16
+ </body>
17
+ </html>
@@ -0,0 +1,8 @@
1
+ <h3 class="sidebar-title"><%= sidebar.title %></h3>
2
+ <div class="sidebar-body">
3
+ <ul>
4
+ <li><%= link_to(t('.rss_feed'), feed_rss) %></li>
5
+ <li><%= link_to(t('.admin'), controller: 'admin/dashboard') %></li>
6
+ <li><a href="https://publify.github.io"><%= t('.powered_by_publify') %></a></li>
7
+ </ul>
8
+ </div>
@@ -0,0 +1,16 @@
1
+ <% cache [note, note.user] do %>
2
+ <article class='status'>
3
+ <%= author_picture note %>
4
+ <div class='p-name entry-title e-content entry-content article'><%= raw note.html(:body) %></div>
5
+ <footer>
6
+ <small>
7
+ <%= link_to_permalink(note, display_date_and_time(note.published_at)) %> |
8
+ <%= link_to note.redirect.from_url, note.redirect.from_url %> |
9
+ <%= author_link note %>
10
+ <% unless note.twitter_id.blank? %>
11
+ <%= " | #{link_to(t('.view_on_twitter'), note.twitter_url, class: 'u-syndication', rel: 'syndication')}" %>
12
+ <% end %>
13
+ </small>
14
+ </footer>
15
+ </article>
16
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <div class="post">
2
+ <p><%= @message %></p>
3
+ </div>
@@ -0,0 +1,15 @@
1
+ <div class="hfeed">
2
+ <% for note in @notes %>
3
+ <div class='h-entry hentry h-as-note'>
4
+ <article>
5
+ <p class='p-name entry-title e-content entry-content article'><%= raw note.html(:body) %></p>
6
+ <footer>
7
+ <small><%= link_to_permalink(note, display_date_and_time(note.published_at)) %></small>
8
+ </footer>
9
+ </article>
10
+ <hr />
11
+ </div>
12
+ <% end %>
13
+ </div>
14
+
15
+ <%= paginate @notes %>
@@ -0,0 +1,5 @@
1
+ <div class="hfeed">
2
+ <div class='h-entry hentry h-as-note'>
3
+ <%= render partial: 'note', object: @note %>
4
+ </div>
5
+ </div>
@@ -0,0 +1,18 @@
1
+ <div class="hfeed">
2
+ <div class='h-entry hentry h-as-note'>
3
+ <article class=' well well-small'>
4
+ <% if @reply['user']['profile_image_url'] %>
5
+ <%= image_tag(@reply['user']['profile_image_url'], class: 'alignleft', alt: @reply['user']['name']) %>
6
+ <% end %>
7
+ <strong><%= get_reply_context_url(@reply) %></strong>
8
+ <p><%= nofollowify_links(PublifyApp::Textfilter::Twitterfilter.filtertext(@reply['text'])) %></p>
9
+ <p>
10
+ <small>
11
+ <%= get_reply_context_twitter_link(@reply) %>
12
+ </small>
13
+ </p>
14
+ </article>
15
+
16
+ <%= render partial: 'note', object: @note %>
17
+ </div>
18
+ </div>
@@ -0,0 +1,5 @@
1
+ <p><em>This is being sent to <%= h @user.name %> because you asked to be notified via email whenever
2
+ new content is posted to <a href="<%= @blog.base_url %>"><%= @blog.blog_name %></a>
3
+ To unsubscribe, go to
4
+ <a href="<%= @link_url = @blog.url_for(controller: '/admin/users', action: 'edit', id: @user.id) %>"><%= h @link_url %></a>
5
+ and change your user settings.</p>
@@ -0,0 +1,3 @@
1
+ <div style="margin:1em;padding:4px;background:#eee;border:1px solid black">
2
+ <%= yield %>
3
+ </div>
@@ -0,0 +1,7 @@
1
+ <p>A new article has been posted on <%= h @blog.blog_name %>:</p>
2
+
3
+ <%= render 'mail_header' do %>
4
+ <h2><%= h @article.title %></h2>
5
+ <%= html @article, :body %>
6
+ <% end %>
7
+ <%= render 'mail_footer' %>
@@ -0,0 +1,12 @@
1
+ <p>A new comment has been posted on
2
+ <a href="<%= @blog.base_url %>"><%= @blog.blog_name %></a>, responding to
3
+ <a href="<%= @comment.article.permalink_url %>"><%= h(@comment.article.title) %></a>.</p>
4
+
5
+ <%= render 'mail_header' do %>
6
+ <h2><%= h @comment.title %></h2>
7
+ <cite><strong><%= @comment.url.blank? ? h(@comment.author) : link_to(h(@comment.author), @comment.url) %></strong> </cite>
8
+ <%= link_to('said', @comment.permalink_url) %>
9
+ <%= display_date_and_time @comment.created_at %> <br />
10
+ <%= html @comment %>
11
+ <% end %>
12
+ <%= render 'mail_footer' %>
@@ -0,0 +1,9 @@
1
+ <html>
2
+ <body>
3
+ <p>Your <a href="<%= @blog.base_url %>"><%= @blog.blog_name %></a> account has been created.</p>
4
+
5
+ <%= render 'mail_header' do %>
6
+ <p>Your can log in using your chosen login name, <%= h @user.login %>, and your password.</p>
7
+ <% end %>
8
+ </body>
9
+ </html>
@@ -0,0 +1,12 @@
1
+ <% unless sidebar.pages.blank? %>
2
+ <h3 class="sidebar-title"><%= t('.pages') %></h3>
3
+ <div class="sidebar-body">
4
+ <ul>
5
+ <% for page in sidebar.pages %>
6
+ <li>
7
+ <%= link_to page.title, page.permalink_url %>
8
+ </li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
@@ -0,0 +1,10 @@
1
+ <h3 class="sidebar-title">
2
+ <label for="q"><%= sidebar.title %></label>
3
+ </h3>
4
+ <div class="sidebar-body">
5
+ <%= form_tag({ controller: 'articles', action: 'search' }, { method: 'get', id: 'sform' }) do %>
6
+ <input type="text" id="q" name="q" value="" size="15" />
7
+ <input type="submit" value="<%= t('.search') %>" />
8
+ <% end %>
9
+ </div>
10
+ <br style="clear: right" />
@@ -0,0 +1,2 @@
1
+ <div class="notice"><%= flash[:notice] %></div>
2
+ Installation Complete!
@@ -0,0 +1,12 @@
1
+ <div class="notice"><%= flash[:notice] %></div>
2
+ <%= form_tag do %>
3
+
4
+ <% for field in @fields %>
5
+
6
+ <%= field.desc %><br />
7
+ <%= settings_field field %><br />
8
+ <% end %>
9
+
10
+ <%= submit_tag %>
11
+
12
+ <% end %>
@@ -0,0 +1,17 @@
1
+ <%= form_tag action: 'index' do %>
2
+ <div class='alert alert-info'>
3
+ <small><%= t('.welcome_to_your_blog_setup', publify: link_to('Publify', 'https://publify.github.io/')) %></small>
4
+ </div>
5
+ <div class='form-group'>
6
+ <%= text_field(:setting, :blog_name, class: 'form-control', placeholder: t('.blog_name')) %>
7
+ </div>
8
+ <div class='form-group'>
9
+ <%= text_field(:setting, :email, class: 'form-control', placeholder: t('.your_mail')) %>
10
+ </div>
11
+ <div class='form-group'>
12
+ <%= label_tag :setting_password, t('.password') %><br />
13
+ <%= password_field(:setting, :password, class: 'form-control') %>
14
+ </div>
15
+
16
+ <input type="submit" id="submit" class='btn btn-lg btn-success btn-block' value="<%= t('generic.save') %>" />
17
+ <% end %>
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ feed.title(feed_title)
4
+ feed.subtitle(this_blog.blog_subtitle, "type" => "html") if this_blog.blog_subtitle.present?
5
+ feed.updated items.first.updated_at if items.first
6
+ feed.generator "Publify", uri: "https://publify.github.io", version: PublifyCore::VERSION
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ feed.entry(item, id: "urn:uuid:#{item.guid}", published: item.published_at,
4
+ url: item.permalink_url) do |entry|
5
+ entry.author do
6
+ entry.name item.author_name
7
+ end
8
+
9
+ if item.is_a?(Note)
10
+ truncated_body = truncate(item.html(:body).strip_html,
11
+ length: 80, separator: " ", omissions: "...")
12
+ entry.title truncated_body, "type" => "html"
13
+ else
14
+ entry.title item.title, "type" => "html"
15
+ end
16
+
17
+ if item.is_a?(Article)
18
+
19
+ item.tags.each do |tag|
20
+ entry.category "term" => tag.display_name, "scheme" => tag_url(tag.permalink)
21
+ end
22
+
23
+ # TODO: Add tests for this
24
+ item.resources.each do |resource|
25
+ link_options = { rel: "enclosure",
26
+ type: resource.mime,
27
+ title: item.title,
28
+ href: this_blog.file_url(resource.upload_url) }
29
+ # The Atom spec disallows files with size=0
30
+ link_options[:length] = resource.size if resource.size > 0
31
+ entry.tag! :link, link_options
32
+ end
33
+ end
34
+ content_html = fetch_html_content_for_feeds(item, this_blog)
35
+ entry.content content_html + item.rss_description, "type" => "html"
36
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ feed.entry item, id: "urn:uuid:#{item.guid}", url: item.permalink_url do |entry|
4
+ entry.author do
5
+ entry.name item.author
6
+ entry.uri item.url
7
+ end
8
+ entry.title item.feed_title, "type" => "html"
9
+ entry.content html(item), "type" => "html"
10
+ end