blogr 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (830) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +61 -0
  4. data/Rakefile +21 -0
  5. data/app/assets/images/blogr/glyphicons-halflings-white.png +0 -0
  6. data/app/assets/images/blogr/glyphicons-halflings.png +0 -0
  7. data/app/assets/images/blogr/icons/black/add.svg +1 -0
  8. data/app/assets/images/blogr/icons/black/address-book-2.svg +1 -0
  9. data/app/assets/images/blogr/icons/black/address-book.svg +1 -0
  10. data/app/assets/images/blogr/icons/black/alarm-clock.svg +1 -0
  11. data/app/assets/images/blogr/icons/black/align-bottom.svg +1 -0
  12. data/app/assets/images/blogr/icons/black/align-horizontal-centers.svg +1 -0
  13. data/app/assets/images/blogr/icons/black/align-left-edges.svg +1 -0
  14. data/app/assets/images/blogr/icons/black/align-right-edges.svg +1 -0
  15. data/app/assets/images/blogr/icons/black/align-top.svg +1 -0
  16. data/app/assets/images/blogr/icons/black/align-vertical-centers.svg +1 -0
  17. data/app/assets/images/blogr/icons/black/anchor.svg +1 -0
  18. data/app/assets/images/blogr/icons/black/arrow-down.svg +1 -0
  19. data/app/assets/images/blogr/icons/black/arrow-left.svg +1 -0
  20. data/app/assets/images/blogr/icons/black/arrow-right.svg +1 -0
  21. data/app/assets/images/blogr/icons/black/arrow-up.svg +1 -0
  22. data/app/assets/images/blogr/icons/black/asterisk.svg +1 -0
  23. data/app/assets/images/blogr/icons/black/attachment-2.svg +1 -0
  24. data/app/assets/images/blogr/icons/black/attachment.svg +1 -0
  25. data/app/assets/images/blogr/icons/black/audio-high.svg +1 -0
  26. data/app/assets/images/blogr/icons/black/audio-low.svg +1 -0
  27. data/app/assets/images/blogr/icons/black/audio-mid.svg +1 -0
  28. data/app/assets/images/blogr/icons/black/audio-mute.svg +1 -0
  29. data/app/assets/images/blogr/icons/black/battery-100-2.svg +1 -0
  30. data/app/assets/images/blogr/icons/black/battery-100.svg +1 -0
  31. data/app/assets/images/blogr/icons/black/battery-20-2.svg +1 -0
  32. data/app/assets/images/blogr/icons/black/battery-20.svg +1 -0
  33. data/app/assets/images/blogr/icons/black/battery-40-2.svg +1 -0
  34. data/app/assets/images/blogr/icons/black/battery-40.svg +1 -0
  35. data/app/assets/images/blogr/icons/black/battery-60-2.svg +1 -0
  36. data/app/assets/images/blogr/icons/black/battery-60.svg +1 -0
  37. data/app/assets/images/blogr/icons/black/battery-80-2.svg +1 -0
  38. data/app/assets/images/blogr/icons/black/battery-80.svg +1 -0
  39. data/app/assets/images/blogr/icons/black/battery-charge-2.svg +1 -0
  40. data/app/assets/images/blogr/icons/black/battery-charge.svg +1 -0
  41. data/app/assets/images/blogr/icons/black/battery-empty-2.svg +1 -0
  42. data/app/assets/images/blogr/icons/black/battery-empty.svg +1 -0
  43. data/app/assets/images/blogr/icons/black/bell-2.svg +1 -0
  44. data/app/assets/images/blogr/icons/black/bell-mute-2.svg +1 -0
  45. data/app/assets/images/blogr/icons/black/bell-mute.svg +1 -0
  46. data/app/assets/images/blogr/icons/black/bell.svg +1 -0
  47. data/app/assets/images/blogr/icons/black/bin-2.svg +1 -0
  48. data/app/assets/images/blogr/icons/black/bin-3.svg +1 -0
  49. data/app/assets/images/blogr/icons/black/bin.svg +1 -0
  50. data/app/assets/images/blogr/icons/black/book-2.svg +1 -0
  51. data/app/assets/images/blogr/icons/black/book-lines-2.svg +1 -0
  52. data/app/assets/images/blogr/icons/black/book-lines.svg +1 -0
  53. data/app/assets/images/blogr/icons/black/book.svg +1 -0
  54. data/app/assets/images/blogr/icons/black/brightness-high.svg +1 -0
  55. data/app/assets/images/blogr/icons/black/brightness-low.svg +1 -0
  56. data/app/assets/images/blogr/icons/black/browser-2.svg +1 -0
  57. data/app/assets/images/blogr/icons/black/browser-close-2.svg +1 -0
  58. data/app/assets/images/blogr/icons/black/browser-close.svg +1 -0
  59. data/app/assets/images/blogr/icons/black/browser-download-2.svg +1 -0
  60. data/app/assets/images/blogr/icons/black/browser-download.svg +1 -0
  61. data/app/assets/images/blogr/icons/black/browser-minimize-2.svg +1 -0
  62. data/app/assets/images/blogr/icons/black/browser-minimize.svg +1 -0
  63. data/app/assets/images/blogr/icons/black/browser-new-window-2.svg +1 -0
  64. data/app/assets/images/blogr/icons/black/browser-new-window.svg +1 -0
  65. data/app/assets/images/blogr/icons/black/browser-upload-2.svg +1 -0
  66. data/app/assets/images/blogr/icons/black/browser-upload.svg +1 -0
  67. data/app/assets/images/blogr/icons/black/browser-windows-2.svg +1 -0
  68. data/app/assets/images/blogr/icons/black/browser-windows.svg +1 -0
  69. data/app/assets/images/blogr/icons/black/browser.svg +1 -0
  70. data/app/assets/images/blogr/icons/black/bulb-2.svg +1 -0
  71. data/app/assets/images/blogr/icons/black/bulb.svg +1 -0
  72. data/app/assets/images/blogr/icons/black/bullet.svg +1 -0
  73. data/app/assets/images/blogr/icons/black/bullhorn-2.svg +1 -0
  74. data/app/assets/images/blogr/icons/black/bullhorn.svg +1 -0
  75. data/app/assets/images/blogr/icons/black/calendar.svg +1 -0
  76. data/app/assets/images/blogr/icons/black/camera-2.svg +1 -0
  77. data/app/assets/images/blogr/icons/black/camera-3.svg +1 -0
  78. data/app/assets/images/blogr/icons/black/camera.svg +1 -0
  79. data/app/assets/images/blogr/icons/black/cassette.svg +1 -0
  80. data/app/assets/images/blogr/icons/black/clipboard-2.svg +1 -0
  81. data/app/assets/images/blogr/icons/black/clipboard.svg +1 -0
  82. data/app/assets/images/blogr/icons/black/clock.svg +1 -0
  83. data/app/assets/images/blogr/icons/black/cloud-add-2.svg +1 -0
  84. data/app/assets/images/blogr/icons/black/cloud-add.svg +1 -0
  85. data/app/assets/images/blogr/icons/black/cloud-download.svg +1 -0
  86. data/app/assets/images/blogr/icons/black/cloud-remove-2.svg +1 -0
  87. data/app/assets/images/blogr/icons/black/cloud-remove.svg +1 -0
  88. data/app/assets/images/blogr/icons/black/cloud-upload.svg +1 -0
  89. data/app/assets/images/blogr/icons/black/cloud.svg +1 -0
  90. data/app/assets/images/blogr/icons/black/cmd.svg +1 -0
  91. data/app/assets/images/blogr/icons/black/code.svg +1 -0
  92. data/app/assets/images/blogr/icons/black/commit.svg +1 -0
  93. data/app/assets/images/blogr/icons/black/compass.svg +1 -0
  94. data/app/assets/images/blogr/icons/black/compose-2.svg +1 -0
  95. data/app/assets/images/blogr/icons/black/compose-3.svg +1 -0
  96. data/app/assets/images/blogr/icons/black/compose-4.svg +1 -0
  97. data/app/assets/images/blogr/icons/black/compose.svg +1 -0
  98. data/app/assets/images/blogr/icons/black/contract-2.svg +1 -0
  99. data/app/assets/images/blogr/icons/black/contract-3.svg +1 -0
  100. data/app/assets/images/blogr/icons/black/contract.svg +1 -0
  101. data/app/assets/images/blogr/icons/black/contrast.svg +1 -0
  102. data/app/assets/images/blogr/icons/black/converge.svg +1 -0
  103. data/app/assets/images/blogr/icons/black/crate.svg +1 -0
  104. data/app/assets/images/blogr/icons/black/credit-card-2.svg +1 -0
  105. data/app/assets/images/blogr/icons/black/credit-card-3.svg +1 -0
  106. data/app/assets/images/blogr/icons/black/credit-card-4.svg +1 -0
  107. data/app/assets/images/blogr/icons/black/credit-card.svg +1 -0
  108. data/app/assets/images/blogr/icons/black/crop.svg +1 -0
  109. data/app/assets/images/blogr/icons/black/cross.svg +1 -0
  110. data/app/assets/images/blogr/icons/black/curlybrace-2.svg +1 -0
  111. data/app/assets/images/blogr/icons/black/curlybrace.svg +1 -0
  112. data/app/assets/images/blogr/icons/black/database-add.svg +1 -0
  113. data/app/assets/images/blogr/icons/black/database-remove.svg +1 -0
  114. data/app/assets/images/blogr/icons/black/database.svg +1 -0
  115. data/app/assets/images/blogr/icons/black/delete.svg +1 -0
  116. data/app/assets/images/blogr/icons/black/distribute-bottom-edges.svg +1 -0
  117. data/app/assets/images/blogr/icons/black/distribute-horizontal-centers.svg +1 -0
  118. data/app/assets/images/blogr/icons/black/distribute-left-edges.svg +1 -0
  119. data/app/assets/images/blogr/icons/black/distribute-right-edges.svg +1 -0
  120. data/app/assets/images/blogr/icons/black/distribute-top-edges.svg +1 -0
  121. data/app/assets/images/blogr/icons/black/distribute-vertical-centers.svg +1 -0
  122. data/app/assets/images/blogr/icons/black/document-add.svg +1 -0
  123. data/app/assets/images/blogr/icons/black/document-remove.svg +1 -0
  124. data/app/assets/images/blogr/icons/black/document.svg +1 -0
  125. data/app/assets/images/blogr/icons/black/droplet.svg +1 -0
  126. data/app/assets/images/blogr/icons/black/ellipsis.svg +1 -0
  127. data/app/assets/images/blogr/icons/black/envelope.svg +1 -0
  128. data/app/assets/images/blogr/icons/black/exclude.svg +1 -0
  129. data/app/assets/images/blogr/icons/black/expand-2.svg +1 -0
  130. data/app/assets/images/blogr/icons/black/expand-3.svg +1 -0
  131. data/app/assets/images/blogr/icons/black/expand.svg +1 -0
  132. data/app/assets/images/blogr/icons/black/eye-2.svg +1 -0
  133. data/app/assets/images/blogr/icons/black/eye.svg +1 -0
  134. data/app/assets/images/blogr/icons/black/facebook.svg +23 -0
  135. data/app/assets/images/blogr/icons/black/fast-forward.svg +1 -0
  136. data/app/assets/images/blogr/icons/black/flag-2.svg +1 -0
  137. data/app/assets/images/blogr/icons/black/flag.svg +1 -0
  138. data/app/assets/images/blogr/icons/black/flask-empty.svg +1 -0
  139. data/app/assets/images/blogr/icons/black/flask-full.svg +1 -0
  140. data/app/assets/images/blogr/icons/black/floppy.svg +1 -0
  141. data/app/assets/images/blogr/icons/black/flux.svg +1 -0
  142. data/app/assets/images/blogr/icons/black/folder-2.svg +1 -0
  143. data/app/assets/images/blogr/icons/black/folder-add-2.svg +1 -0
  144. data/app/assets/images/blogr/icons/black/folder-add.svg +1 -0
  145. data/app/assets/images/blogr/icons/black/folder-duplicate-2.svg +1 -0
  146. data/app/assets/images/blogr/icons/black/folder-duplicate.svg +1 -0
  147. data/app/assets/images/blogr/icons/black/folder-remove-2.svg +1 -0
  148. data/app/assets/images/blogr/icons/black/folder-remove.svg +1 -0
  149. data/app/assets/images/blogr/icons/black/folder.svg +1 -0
  150. data/app/assets/images/blogr/icons/black/fork.svg +1 -0
  151. data/app/assets/images/blogr/icons/black/grid-2.svg +1 -0
  152. data/app/assets/images/blogr/icons/black/grid.svg +1 -0
  153. data/app/assets/images/blogr/icons/black/headphones.svg +1 -0
  154. data/app/assets/images/blogr/icons/black/heart-empty.svg +1 -0
  155. data/app/assets/images/blogr/icons/black/heart-full.svg +1 -0
  156. data/app/assets/images/blogr/icons/black/heart-half.svg +1 -0
  157. data/app/assets/images/blogr/icons/black/home-2.svg +1 -0
  158. data/app/assets/images/blogr/icons/black/home-3.svg +1 -0
  159. data/app/assets/images/blogr/icons/black/home.svg +1 -0
  160. data/app/assets/images/blogr/icons/black/icon0.svg +1 -0
  161. data/app/assets/images/blogr/icons/black/image.svg +1 -0
  162. data/app/assets/images/blogr/icons/black/in.svg +1 -0
  163. data/app/assets/images/blogr/icons/black/inbox-2.svg +1 -0
  164. data/app/assets/images/blogr/icons/black/inbox.svg +1 -0
  165. data/app/assets/images/blogr/icons/black/infinity.svg +1 -0
  166. data/app/assets/images/blogr/icons/black/intersect.svg +1 -0
  167. data/app/assets/images/blogr/icons/black/key-2.svg +1 -0
  168. data/app/assets/images/blogr/icons/black/key.svg +1 -0
  169. data/app/assets/images/blogr/icons/black/keys.svg +1 -0
  170. data/app/assets/images/blogr/icons/black/layout-column-center.svg +1 -0
  171. data/app/assets/images/blogr/icons/black/layout-content-left-2.svg +1 -0
  172. data/app/assets/images/blogr/icons/black/layout-content-left.svg +1 -0
  173. data/app/assets/images/blogr/icons/black/layout-content-right-2.svg +1 -0
  174. data/app/assets/images/blogr/icons/black/layout-content-right.svg +1 -0
  175. data/app/assets/images/blogr/icons/black/layout-sidebar-left.svg +1 -0
  176. data/app/assets/images/blogr/icons/black/layout-sidebar-right.svg +1 -0
  177. data/app/assets/images/blogr/icons/black/link-2.svg +1 -0
  178. data/app/assets/images/blogr/icons/black/link.svg +1 -0
  179. data/app/assets/images/blogr/icons/black/list-2.svg +1 -0
  180. data/app/assets/images/blogr/icons/black/list.svg +1 -0
  181. data/app/assets/images/blogr/icons/black/locked.svg +1 -0
  182. data/app/assets/images/blogr/icons/black/mail-2.svg +1 -0
  183. data/app/assets/images/blogr/icons/black/mail-3.svg +1 -0
  184. data/app/assets/images/blogr/icons/black/mail-4.svg +1 -0
  185. data/app/assets/images/blogr/icons/black/mail-incoming.svg +1 -0
  186. data/app/assets/images/blogr/icons/black/mail-outgoing.svg +1 -0
  187. data/app/assets/images/blogr/icons/black/mail.svg +1 -0
  188. data/app/assets/images/blogr/icons/black/map-2.svg +1 -0
  189. data/app/assets/images/blogr/icons/black/map.svg +1 -0
  190. data/app/assets/images/blogr/icons/black/marquee-download.svg +1 -0
  191. data/app/assets/images/blogr/icons/black/marquee-minus.svg +1 -0
  192. data/app/assets/images/blogr/icons/black/marquee-plus.svg +1 -0
  193. data/app/assets/images/blogr/icons/black/marquee-upload.svg +1 -0
  194. data/app/assets/images/blogr/icons/black/marquee.svg +1 -0
  195. data/app/assets/images/blogr/icons/black/maximise.svg +1 -0
  196. data/app/assets/images/blogr/icons/black/menu-2.svg +1 -0
  197. data/app/assets/images/blogr/icons/black/menu-pull-down.svg +1 -0
  198. data/app/assets/images/blogr/icons/black/menu-pull-up.svg +1 -0
  199. data/app/assets/images/blogr/icons/black/menu.svg +1 -0
  200. data/app/assets/images/blogr/icons/black/microphone-2.svg +1 -0
  201. data/app/assets/images/blogr/icons/black/microphone.svg +1 -0
  202. data/app/assets/images/blogr/icons/black/minus.svg +1 -0
  203. data/app/assets/images/blogr/icons/black/mixer.svg +1 -0
  204. data/app/assets/images/blogr/icons/black/newspaper-2.svg +1 -0
  205. data/app/assets/images/blogr/icons/black/newspaper.svg +1 -0
  206. data/app/assets/images/blogr/icons/black/next.svg +1 -0
  207. data/app/assets/images/blogr/icons/black/nib.svg +1 -0
  208. data/app/assets/images/blogr/icons/black/nope.svg +1 -0
  209. data/app/assets/images/blogr/icons/black/notes.svg +1 -0
  210. data/app/assets/images/blogr/icons/black/options.svg +1 -0
  211. data/app/assets/images/blogr/icons/black/out.svg +1 -0
  212. data/app/assets/images/blogr/icons/black/outbox-2.svg +1 -0
  213. data/app/assets/images/blogr/icons/black/outbox.svg +1 -0
  214. data/app/assets/images/blogr/icons/black/outgoing-2.svg +1 -0
  215. data/app/assets/images/blogr/icons/black/outgoing.svg +1 -0
  216. data/app/assets/images/blogr/icons/black/paper-ripped.svg +1 -0
  217. data/app/assets/images/blogr/icons/black/paper-roll-ripped.svg +1 -0
  218. data/app/assets/images/blogr/icons/black/paper-roll.svg +1 -0
  219. data/app/assets/images/blogr/icons/black/paragraph-center-2.svg +1 -0
  220. data/app/assets/images/blogr/icons/black/paragraph-center.svg +1 -0
  221. data/app/assets/images/blogr/icons/black/paragraph-justify-2.svg +1 -0
  222. data/app/assets/images/blogr/icons/black/paragraph-justify.svg +1 -0
  223. data/app/assets/images/blogr/icons/black/paragraph-left-2.svg +1 -0
  224. data/app/assets/images/blogr/icons/black/paragraph-left.svg +1 -0
  225. data/app/assets/images/blogr/icons/black/paragraph-right-2.svg +1 -0
  226. data/app/assets/images/blogr/icons/black/paragraph-right.svg +1 -0
  227. data/app/assets/images/blogr/icons/black/pause.svg +1 -0
  228. data/app/assets/images/blogr/icons/black/pen.svg +1 -0
  229. data/app/assets/images/blogr/icons/black/pencil.svg +1 -0
  230. data/app/assets/images/blogr/icons/black/pin-2.svg +1 -0
  231. data/app/assets/images/blogr/icons/black/pin.svg +1 -0
  232. data/app/assets/images/blogr/icons/black/play.svg +1 -0
  233. data/app/assets/images/blogr/icons/black/plus.svg +1 -0
  234. data/app/assets/images/blogr/icons/black/podcast-2.svg +1 -0
  235. data/app/assets/images/blogr/icons/black/podcast.svg +1 -0
  236. data/app/assets/images/blogr/icons/black/polaroid-2.svg +1 -0
  237. data/app/assets/images/blogr/icons/black/polaroid.svg +1 -0
  238. data/app/assets/images/blogr/icons/black/power.svg +1 -0
  239. data/app/assets/images/blogr/icons/black/previous.svg +1 -0
  240. data/app/assets/images/blogr/icons/black/print.svg +1 -0
  241. data/app/assets/images/blogr/icons/black/pull.svg +1 -0
  242. data/app/assets/images/blogr/icons/black/quill-2.svg +1 -0
  243. data/app/assets/images/blogr/icons/black/quill.svg +1 -0
  244. data/app/assets/images/blogr/icons/black/refresh.svg +1 -0
  245. data/app/assets/images/blogr/icons/black/reminder.svg +1 -0
  246. data/app/assets/images/blogr/icons/black/remove.svg +1 -0
  247. data/app/assets/images/blogr/icons/black/repeat-2.svg +1 -0
  248. data/app/assets/images/blogr/icons/black/repeat.svg +1 -0
  249. data/app/assets/images/blogr/icons/black/reply-all.svg +1 -0
  250. data/app/assets/images/blogr/icons/black/reply.svg +1 -0
  251. data/app/assets/images/blogr/icons/black/return.svg +1 -0
  252. data/app/assets/images/blogr/icons/black/revert.svg +1 -0
  253. data/app/assets/images/blogr/icons/black/rewind.svg +1 -0
  254. data/app/assets/images/blogr/icons/black/rulers.svg +1 -0
  255. data/app/assets/images/blogr/icons/black/safe.svg +1 -0
  256. data/app/assets/images/blogr/icons/black/search-2.svg +1 -0
  257. data/app/assets/images/blogr/icons/black/search.svg +1 -0
  258. data/app/assets/images/blogr/icons/black/section.svg +1 -0
  259. data/app/assets/images/blogr/icons/black/settings-2.svg +1 -0
  260. data/app/assets/images/blogr/icons/black/settings-3.svg +1 -0
  261. data/app/assets/images/blogr/icons/black/settings-4.svg +1 -0
  262. data/app/assets/images/blogr/icons/black/settings.svg +1 -0
  263. data/app/assets/images/blogr/icons/black/shred.svg +1 -0
  264. data/app/assets/images/blogr/icons/black/shuffle.svg +1 -0
  265. data/app/assets/images/blogr/icons/black/sleep.svg +1 -0
  266. data/app/assets/images/blogr/icons/black/spam-2.svg +1 -0
  267. data/app/assets/images/blogr/icons/black/spam.svg +1 -0
  268. data/app/assets/images/blogr/icons/black/speech-bubble-center-2.svg +1 -0
  269. data/app/assets/images/blogr/icons/black/speech-bubble-center-3.svg +1 -0
  270. data/app/assets/images/blogr/icons/black/speech-bubble-center.svg +1 -0
  271. data/app/assets/images/blogr/icons/black/speech-bubble-left-2.svg +1 -0
  272. data/app/assets/images/blogr/icons/black/speech-bubble-left-3.svg +1 -0
  273. data/app/assets/images/blogr/icons/black/speech-bubble-left-4.svg +1 -0
  274. data/app/assets/images/blogr/icons/black/speech-bubble-left.svg +1 -0
  275. data/app/assets/images/blogr/icons/black/speech-bubble-right-2.svg +1 -0
  276. data/app/assets/images/blogr/icons/black/speech-bubble-right-3.svg +1 -0
  277. data/app/assets/images/blogr/icons/black/speech-bubble-right-4.svg +1 -0
  278. data/app/assets/images/blogr/icons/black/speech-bubble-right.svg +1 -0
  279. data/app/assets/images/blogr/icons/black/spinner-2.svg +1 -0
  280. data/app/assets/images/blogr/icons/black/spinner-3.svg +1 -0
  281. data/app/assets/images/blogr/icons/black/spinner.svg +1 -0
  282. data/app/assets/images/blogr/icons/black/split-2.svg +1 -0
  283. data/app/assets/images/blogr/icons/black/split.svg +1 -0
  284. data/app/assets/images/blogr/icons/black/spool.svg +1 -0
  285. data/app/assets/images/blogr/icons/black/square-brackets.svg +1 -0
  286. data/app/assets/images/blogr/icons/black/stamp-2.svg +1 -0
  287. data/app/assets/images/blogr/icons/black/stamp.svg +1 -0
  288. data/app/assets/images/blogr/icons/black/star-2.svg +1 -0
  289. data/app/assets/images/blogr/icons/black/star.svg +1 -0
  290. data/app/assets/images/blogr/icons/black/stiffy.svg +1 -0
  291. data/app/assets/images/blogr/icons/black/stop.svg +1 -0
  292. data/app/assets/images/blogr/icons/black/stopwatch.svg +1 -0
  293. data/app/assets/images/blogr/icons/black/store-2.svg +1 -0
  294. data/app/assets/images/blogr/icons/black/store.svg +1 -0
  295. data/app/assets/images/blogr/icons/black/subtract.svg +1 -0
  296. data/app/assets/images/blogr/icons/black/support-2.svg +1 -0
  297. data/app/assets/images/blogr/icons/black/support-3.svg +1 -0
  298. data/app/assets/images/blogr/icons/black/support.svg +1 -0
  299. data/app/assets/images/blogr/icons/black/swap-2.svg +1 -0
  300. data/app/assets/images/blogr/icons/black/swap.svg +1 -0
  301. data/app/assets/images/blogr/icons/black/swatch.svg +1 -0
  302. data/app/assets/images/blogr/icons/black/swatches.svg +1 -0
  303. data/app/assets/images/blogr/icons/black/switch-off.svg +1 -0
  304. data/app/assets/images/blogr/icons/black/switch-on.svg +1 -0
  305. data/app/assets/images/blogr/icons/black/tag-2.svg +1 -0
  306. data/app/assets/images/blogr/icons/black/tag-3.svg +1 -0
  307. data/app/assets/images/blogr/icons/black/tag-4.svg +1 -0
  308. data/app/assets/images/blogr/icons/black/tag.svg +1 -0
  309. data/app/assets/images/blogr/icons/black/terminal-2.svg +1 -0
  310. data/app/assets/images/blogr/icons/black/terminal-3.svg +1 -0
  311. data/app/assets/images/blogr/icons/black/terminal.svg +1 -0
  312. data/app/assets/images/blogr/icons/black/tick.svg +1 -0
  313. data/app/assets/images/blogr/icons/black/tilde.svg +1 -0
  314. data/app/assets/images/blogr/icons/black/timeline.svg +1 -0
  315. data/app/assets/images/blogr/icons/black/toggle-off.svg +1 -0
  316. data/app/assets/images/blogr/icons/black/toggle-on.svg +1 -0
  317. data/app/assets/images/blogr/icons/black/transfer.svg +1 -0
  318. data/app/assets/images/blogr/icons/black/tray.svg +1 -0
  319. data/app/assets/images/blogr/icons/black/twitter.svg +27 -0
  320. data/app/assets/images/blogr/icons/black/unite.svg +1 -0
  321. data/app/assets/images/blogr/icons/black/unlocked.svg +1 -0
  322. data/app/assets/images/blogr/icons/black/unwatch.svg +1 -0
  323. data/app/assets/images/blogr/icons/black/user-2-add.svg +1 -0
  324. data/app/assets/images/blogr/icons/black/user-2-remove.svg +1 -0
  325. data/app/assets/images/blogr/icons/black/user-2.svg +1 -0
  326. data/app/assets/images/blogr/icons/black/user-3.svg +1 -0
  327. data/app/assets/images/blogr/icons/black/user-4-add.svg +1 -0
  328. data/app/assets/images/blogr/icons/black/user-4-remove.svg +1 -0
  329. data/app/assets/images/blogr/icons/black/user-4.svg +1 -0
  330. data/app/assets/images/blogr/icons/black/user-card.svg +1 -0
  331. data/app/assets/images/blogr/icons/black/user.svg +1 -0
  332. data/app/assets/images/blogr/icons/black/users.svg +1 -0
  333. data/app/assets/images/blogr/icons/black/video-2.svg +1 -0
  334. data/app/assets/images/blogr/icons/black/video.svg +1 -0
  335. data/app/assets/images/blogr/icons/black/vinyl.svg +1 -0
  336. data/app/assets/images/blogr/icons/black/voicemail.svg +1 -0
  337. data/app/assets/images/blogr/icons/black/wallet-2.svg +1 -0
  338. data/app/assets/images/blogr/icons/black/wallet.svg +1 -0
  339. data/app/assets/images/blogr/icons/black/watch-2.svg +1 -0
  340. data/app/assets/images/blogr/icons/black/watch.svg +1 -0
  341. data/app/assets/images/blogr/icons/black/wave-2.svg +1 -0
  342. data/app/assets/images/blogr/icons/black/wave.svg +1 -0
  343. data/app/assets/images/blogr/icons/black/wifi-high.svg +1 -0
  344. data/app/assets/images/blogr/icons/black/wifi-low.svg +1 -0
  345. data/app/assets/images/blogr/icons/black/wifi-mid.svg +1 -0
  346. data/app/assets/images/blogr/icons/black/wiggle.svg +1 -0
  347. data/app/assets/images/blogr/icons/black/windows.svg +1 -0
  348. data/app/assets/images/blogr/icons/black/zoom-in-2.svg +1 -0
  349. data/app/assets/images/blogr/icons/black/zoom-in.svg +1 -0
  350. data/app/assets/images/blogr/icons/black/zoom-out-2.svg +1 -0
  351. data/app/assets/images/blogr/icons/black/zoom-out.svg +1 -0
  352. data/app/assets/images/blogr/icons/white/add.svg +1 -0
  353. data/app/assets/images/blogr/icons/white/address-book-2.svg +1 -0
  354. data/app/assets/images/blogr/icons/white/address-book.svg +1 -0
  355. data/app/assets/images/blogr/icons/white/alarm-clock.svg +1 -0
  356. data/app/assets/images/blogr/icons/white/align-bottom.svg +1 -0
  357. data/app/assets/images/blogr/icons/white/align-horizontal-centers.svg +1 -0
  358. data/app/assets/images/blogr/icons/white/align-left-edges.svg +1 -0
  359. data/app/assets/images/blogr/icons/white/align-right-edges.svg +1 -0
  360. data/app/assets/images/blogr/icons/white/align-top.svg +1 -0
  361. data/app/assets/images/blogr/icons/white/align-vertical-centers.svg +1 -0
  362. data/app/assets/images/blogr/icons/white/anchor.svg +1 -0
  363. data/app/assets/images/blogr/icons/white/arrow-down.svg +1 -0
  364. data/app/assets/images/blogr/icons/white/arrow-left.svg +1 -0
  365. data/app/assets/images/blogr/icons/white/arrow-right.svg +1 -0
  366. data/app/assets/images/blogr/icons/white/arrow-up.svg +1 -0
  367. data/app/assets/images/blogr/icons/white/asterisk.svg +1 -0
  368. data/app/assets/images/blogr/icons/white/attachment-2.svg +1 -0
  369. data/app/assets/images/blogr/icons/white/attachment.svg +1 -0
  370. data/app/assets/images/blogr/icons/white/audio-high.svg +1 -0
  371. data/app/assets/images/blogr/icons/white/audio-low.svg +1 -0
  372. data/app/assets/images/blogr/icons/white/audio-mid.svg +1 -0
  373. data/app/assets/images/blogr/icons/white/audio-mute.svg +1 -0
  374. data/app/assets/images/blogr/icons/white/battery-100-2.svg +1 -0
  375. data/app/assets/images/blogr/icons/white/battery-100.svg +1 -0
  376. data/app/assets/images/blogr/icons/white/battery-20-2.svg +1 -0
  377. data/app/assets/images/blogr/icons/white/battery-20.svg +1 -0
  378. data/app/assets/images/blogr/icons/white/battery-40-2.svg +1 -0
  379. data/app/assets/images/blogr/icons/white/battery-40.svg +1 -0
  380. data/app/assets/images/blogr/icons/white/battery-60-2.svg +1 -0
  381. data/app/assets/images/blogr/icons/white/battery-60.svg +1 -0
  382. data/app/assets/images/blogr/icons/white/battery-80-2.svg +1 -0
  383. data/app/assets/images/blogr/icons/white/battery-80.svg +1 -0
  384. data/app/assets/images/blogr/icons/white/battery-charge-2.svg +1 -0
  385. data/app/assets/images/blogr/icons/white/battery-charge.svg +1 -0
  386. data/app/assets/images/blogr/icons/white/battery-empty-2.svg +1 -0
  387. data/app/assets/images/blogr/icons/white/battery-empty.svg +1 -0
  388. data/app/assets/images/blogr/icons/white/bell-2.svg +1 -0
  389. data/app/assets/images/blogr/icons/white/bell-mute-2.svg +1 -0
  390. data/app/assets/images/blogr/icons/white/bell-mute.svg +1 -0
  391. data/app/assets/images/blogr/icons/white/bell.svg +1 -0
  392. data/app/assets/images/blogr/icons/white/bin-2.svg +1 -0
  393. data/app/assets/images/blogr/icons/white/bin-3.svg +1 -0
  394. data/app/assets/images/blogr/icons/white/bin.svg +1 -0
  395. data/app/assets/images/blogr/icons/white/book-2.svg +1 -0
  396. data/app/assets/images/blogr/icons/white/book-lines-2.svg +1 -0
  397. data/app/assets/images/blogr/icons/white/book-lines.svg +1 -0
  398. data/app/assets/images/blogr/icons/white/book.svg +1 -0
  399. data/app/assets/images/blogr/icons/white/brightness-high.svg +1 -0
  400. data/app/assets/images/blogr/icons/white/brightness-low.svg +1 -0
  401. data/app/assets/images/blogr/icons/white/browser-2.svg +1 -0
  402. data/app/assets/images/blogr/icons/white/browser-close-2.svg +1 -0
  403. data/app/assets/images/blogr/icons/white/browser-close.svg +1 -0
  404. data/app/assets/images/blogr/icons/white/browser-download-2.svg +1 -0
  405. data/app/assets/images/blogr/icons/white/browser-download.svg +1 -0
  406. data/app/assets/images/blogr/icons/white/browser-minimize-2.svg +1 -0
  407. data/app/assets/images/blogr/icons/white/browser-minimize.svg +1 -0
  408. data/app/assets/images/blogr/icons/white/browser-new-window-2.svg +1 -0
  409. data/app/assets/images/blogr/icons/white/browser-new-window.svg +1 -0
  410. data/app/assets/images/blogr/icons/white/browser-upload-2.svg +1 -0
  411. data/app/assets/images/blogr/icons/white/browser-upload.svg +1 -0
  412. data/app/assets/images/blogr/icons/white/browser-windows-2.svg +1 -0
  413. data/app/assets/images/blogr/icons/white/browser-windows.svg +1 -0
  414. data/app/assets/images/blogr/icons/white/browser.svg +1 -0
  415. data/app/assets/images/blogr/icons/white/bulb-2.svg +1 -0
  416. data/app/assets/images/blogr/icons/white/bulb.svg +1 -0
  417. data/app/assets/images/blogr/icons/white/bullet.svg +1 -0
  418. data/app/assets/images/blogr/icons/white/bullhorn-2.svg +1 -0
  419. data/app/assets/images/blogr/icons/white/bullhorn.svg +1 -0
  420. data/app/assets/images/blogr/icons/white/calendar.svg +1 -0
  421. data/app/assets/images/blogr/icons/white/camera-2.svg +1 -0
  422. data/app/assets/images/blogr/icons/white/camera-3.svg +1 -0
  423. data/app/assets/images/blogr/icons/white/camera.svg +1 -0
  424. data/app/assets/images/blogr/icons/white/cassette.svg +1 -0
  425. data/app/assets/images/blogr/icons/white/clipboard-2.svg +1 -0
  426. data/app/assets/images/blogr/icons/white/clipboard.svg +1 -0
  427. data/app/assets/images/blogr/icons/white/clock.svg +1 -0
  428. data/app/assets/images/blogr/icons/white/cloud-add-2.svg +1 -0
  429. data/app/assets/images/blogr/icons/white/cloud-add.svg +1 -0
  430. data/app/assets/images/blogr/icons/white/cloud-download.svg +1 -0
  431. data/app/assets/images/blogr/icons/white/cloud-remove-2.svg +1 -0
  432. data/app/assets/images/blogr/icons/white/cloud-remove.svg +1 -0
  433. data/app/assets/images/blogr/icons/white/cloud-upload.svg +1 -0
  434. data/app/assets/images/blogr/icons/white/cloud.svg +1 -0
  435. data/app/assets/images/blogr/icons/white/cmd.svg +1 -0
  436. data/app/assets/images/blogr/icons/white/code.svg +1 -0
  437. data/app/assets/images/blogr/icons/white/commit.svg +1 -0
  438. data/app/assets/images/blogr/icons/white/compass.svg +1 -0
  439. data/app/assets/images/blogr/icons/white/compose-2.svg +1 -0
  440. data/app/assets/images/blogr/icons/white/compose-3.svg +1 -0
  441. data/app/assets/images/blogr/icons/white/compose-4.svg +1 -0
  442. data/app/assets/images/blogr/icons/white/compose.svg +1 -0
  443. data/app/assets/images/blogr/icons/white/contract-2.svg +1 -0
  444. data/app/assets/images/blogr/icons/white/contract-3.svg +1 -0
  445. data/app/assets/images/blogr/icons/white/contract.svg +1 -0
  446. data/app/assets/images/blogr/icons/white/contrast.svg +1 -0
  447. data/app/assets/images/blogr/icons/white/converge.svg +1 -0
  448. data/app/assets/images/blogr/icons/white/crate.svg +1 -0
  449. data/app/assets/images/blogr/icons/white/credit-card-2.svg +1 -0
  450. data/app/assets/images/blogr/icons/white/credit-card-3.svg +1 -0
  451. data/app/assets/images/blogr/icons/white/credit-card-4.svg +1 -0
  452. data/app/assets/images/blogr/icons/white/credit-card.svg +1 -0
  453. data/app/assets/images/blogr/icons/white/crop.svg +1 -0
  454. data/app/assets/images/blogr/icons/white/cross.svg +1 -0
  455. data/app/assets/images/blogr/icons/white/curlybrace-2.svg +1 -0
  456. data/app/assets/images/blogr/icons/white/curlybrace.svg +1 -0
  457. data/app/assets/images/blogr/icons/white/database-add.svg +1 -0
  458. data/app/assets/images/blogr/icons/white/database-remove.svg +1 -0
  459. data/app/assets/images/blogr/icons/white/database.svg +1 -0
  460. data/app/assets/images/blogr/icons/white/delete.svg +1 -0
  461. data/app/assets/images/blogr/icons/white/distribute-bottom-edges.svg +1 -0
  462. data/app/assets/images/blogr/icons/white/distribute-horizontal-centers.svg +1 -0
  463. data/app/assets/images/blogr/icons/white/distribute-left-edges.svg +1 -0
  464. data/app/assets/images/blogr/icons/white/distribute-right-edges.svg +1 -0
  465. data/app/assets/images/blogr/icons/white/distribute-top-edges.svg +1 -0
  466. data/app/assets/images/blogr/icons/white/distribute-vertical-centers.svg +1 -0
  467. data/app/assets/images/blogr/icons/white/document-add.svg +1 -0
  468. data/app/assets/images/blogr/icons/white/document-remove.svg +1 -0
  469. data/app/assets/images/blogr/icons/white/document.svg +1 -0
  470. data/app/assets/images/blogr/icons/white/droplet.svg +1 -0
  471. data/app/assets/images/blogr/icons/white/ellipsis.svg +1 -0
  472. data/app/assets/images/blogr/icons/white/envelope.svg +1 -0
  473. data/app/assets/images/blogr/icons/white/exclude.svg +1 -0
  474. data/app/assets/images/blogr/icons/white/expand-2.svg +1 -0
  475. data/app/assets/images/blogr/icons/white/expand-3.svg +1 -0
  476. data/app/assets/images/blogr/icons/white/expand.svg +1 -0
  477. data/app/assets/images/blogr/icons/white/eye-2.svg +1 -0
  478. data/app/assets/images/blogr/icons/white/eye.svg +1 -0
  479. data/app/assets/images/blogr/icons/white/fast-forward.svg +1 -0
  480. data/app/assets/images/blogr/icons/white/flag-2.svg +1 -0
  481. data/app/assets/images/blogr/icons/white/flag.svg +1 -0
  482. data/app/assets/images/blogr/icons/white/flask-empty.svg +1 -0
  483. data/app/assets/images/blogr/icons/white/flask-full.svg +1 -0
  484. data/app/assets/images/blogr/icons/white/floppy.svg +1 -0
  485. data/app/assets/images/blogr/icons/white/flux.svg +1 -0
  486. data/app/assets/images/blogr/icons/white/folder-2.svg +1 -0
  487. data/app/assets/images/blogr/icons/white/folder-add-2.svg +1 -0
  488. data/app/assets/images/blogr/icons/white/folder-add.svg +1 -0
  489. data/app/assets/images/blogr/icons/white/folder-duplicate-2.svg +1 -0
  490. data/app/assets/images/blogr/icons/white/folder-duplicate.svg +1 -0
  491. data/app/assets/images/blogr/icons/white/folder-remove-2.svg +1 -0
  492. data/app/assets/images/blogr/icons/white/folder-remove.svg +1 -0
  493. data/app/assets/images/blogr/icons/white/folder.svg +1 -0
  494. data/app/assets/images/blogr/icons/white/fork.svg +1 -0
  495. data/app/assets/images/blogr/icons/white/grid-2.svg +1 -0
  496. data/app/assets/images/blogr/icons/white/grid.svg +1 -0
  497. data/app/assets/images/blogr/icons/white/headphones.svg +1 -0
  498. data/app/assets/images/blogr/icons/white/heart-empty.svg +1 -0
  499. data/app/assets/images/blogr/icons/white/heart-full.svg +1 -0
  500. data/app/assets/images/blogr/icons/white/heart-half.svg +1 -0
  501. data/app/assets/images/blogr/icons/white/home-2.svg +1 -0
  502. data/app/assets/images/blogr/icons/white/home-3.svg +1 -0
  503. data/app/assets/images/blogr/icons/white/home.svg +1 -0
  504. data/app/assets/images/blogr/icons/white/icon0.svg +1 -0
  505. data/app/assets/images/blogr/icons/white/image.svg +1 -0
  506. data/app/assets/images/blogr/icons/white/in.svg +1 -0
  507. data/app/assets/images/blogr/icons/white/inbox-2.svg +1 -0
  508. data/app/assets/images/blogr/icons/white/inbox.svg +1 -0
  509. data/app/assets/images/blogr/icons/white/infinity.svg +1 -0
  510. data/app/assets/images/blogr/icons/white/intersect.svg +1 -0
  511. data/app/assets/images/blogr/icons/white/key-2.svg +1 -0
  512. data/app/assets/images/blogr/icons/white/key.svg +1 -0
  513. data/app/assets/images/blogr/icons/white/keys.svg +1 -0
  514. data/app/assets/images/blogr/icons/white/layout-column-center.svg +1 -0
  515. data/app/assets/images/blogr/icons/white/layout-content-left-2.svg +1 -0
  516. data/app/assets/images/blogr/icons/white/layout-content-left.svg +1 -0
  517. data/app/assets/images/blogr/icons/white/layout-content-right-2.svg +1 -0
  518. data/app/assets/images/blogr/icons/white/layout-content-right.svg +1 -0
  519. data/app/assets/images/blogr/icons/white/layout-sidebar-left.svg +1 -0
  520. data/app/assets/images/blogr/icons/white/layout-sidebar-right.svg +1 -0
  521. data/app/assets/images/blogr/icons/white/link-2.svg +1 -0
  522. data/app/assets/images/blogr/icons/white/link.svg +1 -0
  523. data/app/assets/images/blogr/icons/white/list-2.svg +1 -0
  524. data/app/assets/images/blogr/icons/white/list.svg +1 -0
  525. data/app/assets/images/blogr/icons/white/locked.svg +1 -0
  526. data/app/assets/images/blogr/icons/white/mail-2.svg +1 -0
  527. data/app/assets/images/blogr/icons/white/mail-3.svg +1 -0
  528. data/app/assets/images/blogr/icons/white/mail-4.svg +1 -0
  529. data/app/assets/images/blogr/icons/white/mail-incoming.svg +1 -0
  530. data/app/assets/images/blogr/icons/white/mail-outgoing.svg +1 -0
  531. data/app/assets/images/blogr/icons/white/mail.svg +1 -0
  532. data/app/assets/images/blogr/icons/white/map-2.svg +1 -0
  533. data/app/assets/images/blogr/icons/white/map.svg +1 -0
  534. data/app/assets/images/blogr/icons/white/marquee-download.svg +1 -0
  535. data/app/assets/images/blogr/icons/white/marquee-minus.svg +1 -0
  536. data/app/assets/images/blogr/icons/white/marquee-plus.svg +1 -0
  537. data/app/assets/images/blogr/icons/white/marquee-upload.svg +1 -0
  538. data/app/assets/images/blogr/icons/white/marquee.svg +1 -0
  539. data/app/assets/images/blogr/icons/white/maximise.svg +1 -0
  540. data/app/assets/images/blogr/icons/white/menu-2.svg +1 -0
  541. data/app/assets/images/blogr/icons/white/menu-pull-down.svg +1 -0
  542. data/app/assets/images/blogr/icons/white/menu-pull-up.svg +1 -0
  543. data/app/assets/images/blogr/icons/white/menu.svg +1 -0
  544. data/app/assets/images/blogr/icons/white/microphone-2.svg +1 -0
  545. data/app/assets/images/blogr/icons/white/microphone.svg +1 -0
  546. data/app/assets/images/blogr/icons/white/minus.svg +1 -0
  547. data/app/assets/images/blogr/icons/white/mixer.svg +1 -0
  548. data/app/assets/images/blogr/icons/white/newspaper-2.svg +1 -0
  549. data/app/assets/images/blogr/icons/white/newspaper.svg +1 -0
  550. data/app/assets/images/blogr/icons/white/next.svg +1 -0
  551. data/app/assets/images/blogr/icons/white/nib.svg +1 -0
  552. data/app/assets/images/blogr/icons/white/nope.svg +1 -0
  553. data/app/assets/images/blogr/icons/white/notes.svg +1 -0
  554. data/app/assets/images/blogr/icons/white/options.svg +1 -0
  555. data/app/assets/images/blogr/icons/white/out.svg +1 -0
  556. data/app/assets/images/blogr/icons/white/outbox-2.svg +1 -0
  557. data/app/assets/images/blogr/icons/white/outbox.svg +1 -0
  558. data/app/assets/images/blogr/icons/white/outgoing-2.svg +1 -0
  559. data/app/assets/images/blogr/icons/white/outgoing.svg +1 -0
  560. data/app/assets/images/blogr/icons/white/paper-ripped.svg +1 -0
  561. data/app/assets/images/blogr/icons/white/paper-roll-ripped.svg +1 -0
  562. data/app/assets/images/blogr/icons/white/paper-roll.svg +1 -0
  563. data/app/assets/images/blogr/icons/white/paragraph-center-2.svg +1 -0
  564. data/app/assets/images/blogr/icons/white/paragraph-center.svg +1 -0
  565. data/app/assets/images/blogr/icons/white/paragraph-justify-2.svg +1 -0
  566. data/app/assets/images/blogr/icons/white/paragraph-justify.svg +1 -0
  567. data/app/assets/images/blogr/icons/white/paragraph-left-2.svg +1 -0
  568. data/app/assets/images/blogr/icons/white/paragraph-left.svg +1 -0
  569. data/app/assets/images/blogr/icons/white/paragraph-right-2.svg +1 -0
  570. data/app/assets/images/blogr/icons/white/paragraph-right.svg +1 -0
  571. data/app/assets/images/blogr/icons/white/pause.svg +1 -0
  572. data/app/assets/images/blogr/icons/white/pen.svg +1 -0
  573. data/app/assets/images/blogr/icons/white/pencil.svg +1 -0
  574. data/app/assets/images/blogr/icons/white/pin-2.svg +1 -0
  575. data/app/assets/images/blogr/icons/white/pin.svg +1 -0
  576. data/app/assets/images/blogr/icons/white/play.svg +1 -0
  577. data/app/assets/images/blogr/icons/white/plus.svg +1 -0
  578. data/app/assets/images/blogr/icons/white/podcast-2.svg +1 -0
  579. data/app/assets/images/blogr/icons/white/podcast.svg +1 -0
  580. data/app/assets/images/blogr/icons/white/polaroid-2.svg +1 -0
  581. data/app/assets/images/blogr/icons/white/polaroid.svg +1 -0
  582. data/app/assets/images/blogr/icons/white/power.svg +1 -0
  583. data/app/assets/images/blogr/icons/white/previous.svg +1 -0
  584. data/app/assets/images/blogr/icons/white/print.svg +1 -0
  585. data/app/assets/images/blogr/icons/white/pull.svg +1 -0
  586. data/app/assets/images/blogr/icons/white/quill-2.svg +1 -0
  587. data/app/assets/images/blogr/icons/white/quill.svg +1 -0
  588. data/app/assets/images/blogr/icons/white/refresh.svg +1 -0
  589. data/app/assets/images/blogr/icons/white/reminder.svg +1 -0
  590. data/app/assets/images/blogr/icons/white/remove.svg +1 -0
  591. data/app/assets/images/blogr/icons/white/repeat-2.svg +1 -0
  592. data/app/assets/images/blogr/icons/white/repeat.svg +1 -0
  593. data/app/assets/images/blogr/icons/white/reply-all.svg +1 -0
  594. data/app/assets/images/blogr/icons/white/reply.svg +1 -0
  595. data/app/assets/images/blogr/icons/white/return.svg +1 -0
  596. data/app/assets/images/blogr/icons/white/revert.svg +1 -0
  597. data/app/assets/images/blogr/icons/white/rewind.svg +1 -0
  598. data/app/assets/images/blogr/icons/white/rulers.svg +1 -0
  599. data/app/assets/images/blogr/icons/white/safe.svg +1 -0
  600. data/app/assets/images/blogr/icons/white/search-2.svg +1 -0
  601. data/app/assets/images/blogr/icons/white/search.svg +1 -0
  602. data/app/assets/images/blogr/icons/white/section.svg +1 -0
  603. data/app/assets/images/blogr/icons/white/settings-2.svg +1 -0
  604. data/app/assets/images/blogr/icons/white/settings-3.svg +1 -0
  605. data/app/assets/images/blogr/icons/white/settings-4.svg +1 -0
  606. data/app/assets/images/blogr/icons/white/settings.svg +1 -0
  607. data/app/assets/images/blogr/icons/white/shred.svg +1 -0
  608. data/app/assets/images/blogr/icons/white/shuffle.svg +1 -0
  609. data/app/assets/images/blogr/icons/white/sleep.svg +1 -0
  610. data/app/assets/images/blogr/icons/white/spam-2.svg +1 -0
  611. data/app/assets/images/blogr/icons/white/spam.svg +1 -0
  612. data/app/assets/images/blogr/icons/white/speech-bubble-center-2.svg +1 -0
  613. data/app/assets/images/blogr/icons/white/speech-bubble-center-3.svg +1 -0
  614. data/app/assets/images/blogr/icons/white/speech-bubble-center.svg +1 -0
  615. data/app/assets/images/blogr/icons/white/speech-bubble-left-2.svg +1 -0
  616. data/app/assets/images/blogr/icons/white/speech-bubble-left-3.svg +1 -0
  617. data/app/assets/images/blogr/icons/white/speech-bubble-left-4.svg +1 -0
  618. data/app/assets/images/blogr/icons/white/speech-bubble-left.svg +1 -0
  619. data/app/assets/images/blogr/icons/white/speech-bubble-right-2.svg +1 -0
  620. data/app/assets/images/blogr/icons/white/speech-bubble-right-3.svg +1 -0
  621. data/app/assets/images/blogr/icons/white/speech-bubble-right-4.svg +1 -0
  622. data/app/assets/images/blogr/icons/white/speech-bubble-right.svg +1 -0
  623. data/app/assets/images/blogr/icons/white/spinner-2.svg +1 -0
  624. data/app/assets/images/blogr/icons/white/spinner-3.svg +1 -0
  625. data/app/assets/images/blogr/icons/white/spinner.svg +1 -0
  626. data/app/assets/images/blogr/icons/white/split-2.svg +1 -0
  627. data/app/assets/images/blogr/icons/white/split.svg +1 -0
  628. data/app/assets/images/blogr/icons/white/spool.svg +1 -0
  629. data/app/assets/images/blogr/icons/white/square-brackets.svg +1 -0
  630. data/app/assets/images/blogr/icons/white/stamp-2.svg +1 -0
  631. data/app/assets/images/blogr/icons/white/stamp.svg +1 -0
  632. data/app/assets/images/blogr/icons/white/star-2.svg +1 -0
  633. data/app/assets/images/blogr/icons/white/star.svg +1 -0
  634. data/app/assets/images/blogr/icons/white/stiffy.svg +1 -0
  635. data/app/assets/images/blogr/icons/white/stop.svg +1 -0
  636. data/app/assets/images/blogr/icons/white/stopwatch.svg +1 -0
  637. data/app/assets/images/blogr/icons/white/store-2.svg +1 -0
  638. data/app/assets/images/blogr/icons/white/store.svg +1 -0
  639. data/app/assets/images/blogr/icons/white/subtract.svg +1 -0
  640. data/app/assets/images/blogr/icons/white/support-2.svg +1 -0
  641. data/app/assets/images/blogr/icons/white/support-3.svg +1 -0
  642. data/app/assets/images/blogr/icons/white/support.svg +1 -0
  643. data/app/assets/images/blogr/icons/white/swap-2.svg +1 -0
  644. data/app/assets/images/blogr/icons/white/swap.svg +1 -0
  645. data/app/assets/images/blogr/icons/white/swatch.svg +1 -0
  646. data/app/assets/images/blogr/icons/white/swatches.svg +1 -0
  647. data/app/assets/images/blogr/icons/white/switch-off.svg +1 -0
  648. data/app/assets/images/blogr/icons/white/switch-on.svg +1 -0
  649. data/app/assets/images/blogr/icons/white/tag-2.svg +1 -0
  650. data/app/assets/images/blogr/icons/white/tag-3.svg +1 -0
  651. data/app/assets/images/blogr/icons/white/tag-4.svg +1 -0
  652. data/app/assets/images/blogr/icons/white/tag.svg +1 -0
  653. data/app/assets/images/blogr/icons/white/terminal-2.svg +1 -0
  654. data/app/assets/images/blogr/icons/white/terminal-3.svg +1 -0
  655. data/app/assets/images/blogr/icons/white/terminal.svg +1 -0
  656. data/app/assets/images/blogr/icons/white/tick.svg +1 -0
  657. data/app/assets/images/blogr/icons/white/tilde.svg +1 -0
  658. data/app/assets/images/blogr/icons/white/timeline.svg +1 -0
  659. data/app/assets/images/blogr/icons/white/toggle-off.svg +1 -0
  660. data/app/assets/images/blogr/icons/white/toggle-on.svg +1 -0
  661. data/app/assets/images/blogr/icons/white/transfer.svg +1 -0
  662. data/app/assets/images/blogr/icons/white/tray.svg +1 -0
  663. data/app/assets/images/blogr/icons/white/twitter.svg +27 -0
  664. data/app/assets/images/blogr/icons/white/unite.svg +1 -0
  665. data/app/assets/images/blogr/icons/white/unlocked.svg +1 -0
  666. data/app/assets/images/blogr/icons/white/unwatch.svg +1 -0
  667. data/app/assets/images/blogr/icons/white/user-2-add.svg +1 -0
  668. data/app/assets/images/blogr/icons/white/user-2-remove.svg +1 -0
  669. data/app/assets/images/blogr/icons/white/user-2.svg +1 -0
  670. data/app/assets/images/blogr/icons/white/user-3.svg +1 -0
  671. data/app/assets/images/blogr/icons/white/user-4-add.svg +1 -0
  672. data/app/assets/images/blogr/icons/white/user-4-remove.svg +1 -0
  673. data/app/assets/images/blogr/icons/white/user-4.svg +1 -0
  674. data/app/assets/images/blogr/icons/white/user-card.svg +1 -0
  675. data/app/assets/images/blogr/icons/white/user.svg +1 -0
  676. data/app/assets/images/blogr/icons/white/users.svg +1 -0
  677. data/app/assets/images/blogr/icons/white/video-2.svg +1 -0
  678. data/app/assets/images/blogr/icons/white/video.svg +1 -0
  679. data/app/assets/images/blogr/icons/white/vinyl.svg +1 -0
  680. data/app/assets/images/blogr/icons/white/voicemail.svg +1 -0
  681. data/app/assets/images/blogr/icons/white/wallet-2.svg +1 -0
  682. data/app/assets/images/blogr/icons/white/wallet.svg +1 -0
  683. data/app/assets/images/blogr/icons/white/watch-2.svg +1 -0
  684. data/app/assets/images/blogr/icons/white/watch.svg +1 -0
  685. data/app/assets/images/blogr/icons/white/wave-2.svg +1 -0
  686. data/app/assets/images/blogr/icons/white/wave.svg +1 -0
  687. data/app/assets/images/blogr/icons/white/wifi-high.svg +1 -0
  688. data/app/assets/images/blogr/icons/white/wifi-low.svg +1 -0
  689. data/app/assets/images/blogr/icons/white/wifi-mid.svg +1 -0
  690. data/app/assets/images/blogr/icons/white/wiggle.svg +1 -0
  691. data/app/assets/images/blogr/icons/white/windows.svg +1 -0
  692. data/app/assets/images/blogr/icons/white/zoom-in-2.svg +1 -0
  693. data/app/assets/images/blogr/icons/white/zoom-in.svg +1 -0
  694. data/app/assets/images/blogr/icons/white/zoom-out-2.svg +1 -0
  695. data/app/assets/images/blogr/icons/white/zoom-out.svg +1 -0
  696. data/app/assets/images/blogr/logo.png +0 -0
  697. data/app/assets/javascripts/blogr/application.js +29 -0
  698. data/app/assets/javascripts/blogr/bootstrap.min.js +11 -0
  699. data/app/assets/javascripts/blogr/posts.coffee +33 -0
  700. data/app/assets/javascripts/blogr/sessions.js +2 -0
  701. data/app/assets/javascripts/blogr/tags.js +2 -0
  702. data/app/assets/stylesheets/blogr/app.sass +104 -0
  703. data/app/assets/stylesheets/blogr/application.css.scss +19 -0
  704. data/app/assets/stylesheets/blogr/bootstrap.min.css +845 -0
  705. data/app/assets/stylesheets/blogr/fonts/glyphicons-halflings-regular.eot +0 -0
  706. data/app/assets/stylesheets/blogr/fonts/glyphicons-halflings-regular.svg +228 -0
  707. data/app/assets/stylesheets/blogr/fonts/glyphicons-halflings-regular.ttf +0 -0
  708. data/app/assets/stylesheets/blogr/fonts/glyphicons-halflings-regular.woff +0 -0
  709. data/app/assets/stylesheets/blogr/login.sass +37 -0
  710. data/app/assets/stylesheets/blogr/pygments.css.erb +1 -0
  711. data/app/assets/stylesheets/blogr/sessions.css +4 -0
  712. data/app/controllers/blogr/application_controller.rb +27 -0
  713. data/app/controllers/blogr/categories_controller.rb +59 -0
  714. data/app/controllers/blogr/comments_controller.rb +60 -0
  715. data/app/controllers/blogr/dashboard_controller.rb +9 -0
  716. data/app/controllers/blogr/posts_controller.rb +69 -0
  717. data/app/controllers/blogr/sessions_controller.rb +41 -0
  718. data/app/controllers/blogr/tags_controller.rb +60 -0
  719. data/app/controllers/blogr/users_controller.rb +56 -0
  720. data/app/helpers/blogr/application_helper.rb +4 -0
  721. data/app/helpers/blogr/posts_helper.rb +39 -0
  722. data/app/helpers/blogr/sessions_helper.rb +4 -0
  723. data/app/helpers/blogr/tags_helper.rb +4 -0
  724. data/app/helpers/blogr/user_helper.rb +16 -0
  725. data/app/models/blogr/categories_post.rb +5 -0
  726. data/app/models/blogr/category.rb +16 -0
  727. data/app/models/blogr/comment.rb +10 -0
  728. data/app/models/blogr/image.rb +11 -0
  729. data/app/models/blogr/post.rb +60 -0
  730. data/app/models/blogr/tag.rb +14 -0
  731. data/app/models/blogr/tagging.rb +8 -0
  732. data/app/models/blogr/user.rb +14 -0
  733. data/app/views/blogr/categories/_form.html.haml +18 -0
  734. data/app/views/blogr/categories/edit.html.haml +1 -0
  735. data/app/views/blogr/categories/index.html.haml +13 -0
  736. data/app/views/blogr/categories/new.html.haml +1 -0
  737. data/app/views/blogr/categories/show.html.haml +7 -0
  738. data/app/views/blogr/comments/_form.html.haml +0 -0
  739. data/app/views/blogr/comments/edit.html.haml +1 -0
  740. data/app/views/blogr/comments/index.html.haml +16 -0
  741. data/app/views/blogr/comments/new.html.haml +1 -0
  742. data/app/views/blogr/comments/show.html.haml +18 -0
  743. data/app/views/blogr/dashboard/index.html.haml +0 -0
  744. data/app/views/blogr/posts/_form.html.haml +45 -0
  745. data/app/views/blogr/posts/_post.html.haml +1 -0
  746. data/app/views/blogr/posts/edit.html.haml +5 -0
  747. data/app/views/blogr/posts/index.html.haml +15 -0
  748. data/app/views/blogr/posts/new.html.haml +1 -0
  749. data/app/views/blogr/posts/show.html.haml +4 -0
  750. data/app/views/blogr/sessions/new.html.haml +8 -0
  751. data/app/views/blogr/shared/_messages.html.haml +7 -0
  752. data/app/views/blogr/tags/_form.html.haml +14 -0
  753. data/app/views/blogr/tags/edit.html.haml +1 -0
  754. data/app/views/blogr/tags/index.html.haml +11 -0
  755. data/app/views/blogr/tags/new.html.haml +1 -0
  756. data/app/views/blogr/tags/show.html.haml +3 -0
  757. data/app/views/blogr/users/_form.html.haml +36 -0
  758. data/app/views/blogr/users/edit.html.haml +4 -0
  759. data/app/views/blogr/users/index.html.haml +15 -0
  760. data/app/views/blogr/users/new.html.haml +1 -0
  761. data/app/views/layouts/blogr/application.html.haml +45 -0
  762. data/app/views/layouts/blogr/login.html.haml +15 -0
  763. data/config/blogr.example.rb +5 -0
  764. data/config/routes.rb +19 -0
  765. data/db/migrate/20131016225633_create_blogr_posts.rb +13 -0
  766. data/db/migrate/20131018222932_create_blogr_images.rb +11 -0
  767. data/db/migrate/20131102201151_create_blogr_categories.rb +10 -0
  768. data/db/migrate/20131103162801_add_category_id_to_blogr_posts.rb +5 -0
  769. data/db/migrate/20131105160648_add_permalink_to_blogr_categories.rb +5 -0
  770. data/db/migrate/20131105161135_create_blogr_tags.rb +10 -0
  771. data/db/migrate/20131105161209_create_blogr_taggings.rb +10 -0
  772. data/db/migrate/20131120191219_create_blogr_users.rb +13 -0
  773. data/db/migrate/20131204185931_create_blogr_comments.rb +13 -0
  774. data/db/migrate/20131207215104_add_user_id_to_blogr_posts.rb +5 -0
  775. data/db/seeds.rb +16 -0
  776. data/lib/blogr.rb +15 -0
  777. data/lib/blogr/configuration.rb +22 -0
  778. data/lib/blogr/engine.rb +33 -0
  779. data/lib/blogr/import.rb +54 -0
  780. data/lib/blogr/setup_generator.rb +23 -0
  781. data/lib/blogr/version.rb +3 -0
  782. data/lib/tasks/blogr.rake +16 -0
  783. data/lib/tasks/simpleblog_tasks.rake +37 -0
  784. data/spec/controllers/blogr/posts_controller_spec.rb +0 -0
  785. data/spec/dummy/README.rdoc +28 -0
  786. data/spec/dummy/Rakefile +6 -0
  787. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  788. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  789. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  790. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  791. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  792. data/spec/dummy/bin/bundle +3 -0
  793. data/spec/dummy/bin/rails +4 -0
  794. data/spec/dummy/bin/rake +4 -0
  795. data/spec/dummy/config.ru +4 -0
  796. data/spec/dummy/config/application.rb +28 -0
  797. data/spec/dummy/config/boot.rb +5 -0
  798. data/spec/dummy/config/database.yml +8 -0
  799. data/spec/dummy/config/environment.rb +5 -0
  800. data/spec/dummy/config/environments/development.rb +29 -0
  801. data/spec/dummy/config/environments/production.rb +80 -0
  802. data/spec/dummy/config/environments/test.rb +36 -0
  803. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  804. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  805. data/spec/dummy/config/initializers/inflections.rb +16 -0
  806. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  807. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  808. data/spec/dummy/config/initializers/session_store.rb +3 -0
  809. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  810. data/spec/dummy/config/locales/en.yml +23 -0
  811. data/spec/dummy/config/routes.rb +4 -0
  812. data/spec/dummy/db/schema.rb +88 -0
  813. data/spec/dummy/db/test.sqlite3 +0 -0
  814. data/spec/dummy/log/development.log +286 -0
  815. data/spec/dummy/log/test.log +2662 -0
  816. data/spec/dummy/public/404.html +58 -0
  817. data/spec/dummy/public/422.html +58 -0
  818. data/spec/dummy/public/500.html +57 -0
  819. data/spec/dummy/public/favicon.ico +0 -0
  820. data/spec/factories/blogr_categories.rb +8 -0
  821. data/spec/factories/blogr_categories_posts.rb +8 -0
  822. data/spec/factories/blogr_comments.rb +11 -0
  823. data/spec/factories/blogr_posts.rb +13 -0
  824. data/spec/factories/blogr_users.rb +12 -0
  825. data/spec/models/blogr/category_spec.rb +23 -0
  826. data/spec/models/blogr/comment_spec.rb +17 -0
  827. data/spec/models/blogr/post_spec.rb +161 -0
  828. data/spec/models/blogr/user_spec.rb +33 -0
  829. data/spec/spec_helper.rb +65 -0
  830. metadata +1170 -0
@@ -0,0 +1,41 @@
1
+ require_dependency "blogr/application_controller"
2
+
3
+ module Blogr
4
+ class SessionsController < ApplicationController
5
+
6
+ layout "blogr/login"
7
+
8
+ before_filter :authorize, except: [:new, :create]
9
+
10
+ def index
11
+ redirect_to login_path
12
+ end
13
+
14
+ def new
15
+ if current_blogr_user
16
+ redirect_to root_path
17
+ flash[:error] = "You are already logged in"
18
+ end
19
+
20
+ @title = "Login"
21
+ session[:return_to] = params[:return_to] if params[:return_to]
22
+ end
23
+
24
+ def create
25
+ user = User.find_by_username(params[:username]) || User.find_by_email(params[:username])
26
+ if user && user.authenticate(params[:password])
27
+ session[:user_id] = user.id
28
+ redirect_to root_path, notice: "Welcome back #{user.first_name}, time to get blogging!"
29
+ else
30
+ flash[:error] = "Username or password is invalid"
31
+ render "new"
32
+ end
33
+ end
34
+
35
+ def destroy
36
+ session[:user_id] = nil
37
+ redirect_to login_path, :notice => "Logged out!"
38
+ end
39
+
40
+ end
41
+ end
@@ -0,0 +1,60 @@
1
+ require_dependency "blogr/application_controller"
2
+
3
+ module Blogr
4
+ class TagsController < ApplicationController
5
+
6
+ before_action :set_tag, only: [:show, :edit, :update, :destroy]
7
+
8
+ def index
9
+ @tags = Tag.all
10
+ @title = "Tags"
11
+ end
12
+
13
+ def show
14
+ @title = @tag.name
15
+ end
16
+
17
+ def new
18
+ @tag = Tag.new
19
+ @title = "New Tag"
20
+ end
21
+
22
+ def edit
23
+ @title = "Editing '#{@tag.name}'"
24
+ end
25
+
26
+ def create
27
+ @tag = Tag.new(tag_params)
28
+
29
+ if @tag.save
30
+ redirect_to tags_path, notice: 'Tag was successfully created.'
31
+ else
32
+ render action: 'new'
33
+ end
34
+ end
35
+
36
+ def update
37
+ if @tag.update(tag_params)
38
+ redirect_to tags_path, notice: 'Tag was successfully updated.'
39
+ else
40
+ render action: 'edit'
41
+ end
42
+ end
43
+
44
+ def destroy
45
+ @tag.destroy
46
+ redirect_to categories_url, notice: 'Tag was successfully destroyed.'
47
+ end
48
+
49
+ private
50
+ # Use callbacks to share common setup or constraints between actions.
51
+ def set_tag
52
+ @tag = Tag.find_by(permalink: params[:id])
53
+ end
54
+
55
+ def tag_params
56
+ params.require(:tag).permit(:name, :permalink)
57
+ end
58
+
59
+ end
60
+ end
@@ -0,0 +1,56 @@
1
+ require_dependency "blogr/application_controller"
2
+
3
+ module Blogr
4
+ class UsersController < ApplicationController
5
+
6
+ before_action :set_user, only: [:edit, :update, :destroy]
7
+
8
+ def index
9
+ @title = "Users"
10
+ @users = Blogr::User.all
11
+ end
12
+
13
+ def new
14
+ @title = "New User"
15
+ @user = User.new
16
+ end
17
+
18
+ def edit
19
+ @title = "Editing '#{@user.username}'"
20
+ end
21
+
22
+ def create
23
+ @user = User.new(user_params)
24
+
25
+ if @user.save
26
+ redirect_to users_path, notice: "User was successfully created"
27
+ else
28
+ render action: "new"
29
+ end
30
+ end
31
+
32
+ def update
33
+ if @user.update(user_params)
34
+ redirect_to users_path, notice: "User was successfully updated"
35
+ else
36
+ render action: "edit"
37
+ end
38
+ end
39
+
40
+ def destroy
41
+ @user.destroy
42
+ redirect_to users_path, notice: "User was successfully destroyed"
43
+ end
44
+
45
+ private
46
+
47
+ def set_user
48
+ @user = User.find(params[:id])
49
+ end
50
+
51
+ def user_params
52
+ params.require(:user).permit(:first_name, :last_name, :username, :email, :password, :password_confirmation)
53
+ end
54
+
55
+ end
56
+ end
@@ -0,0 +1,4 @@
1
+ module Blogr
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,39 @@
1
+ require "redcarpet"
2
+ require "pygments"
3
+
4
+ module Blogr
5
+ module PostsHelper
6
+
7
+ def check_category post_object, category_object
8
+ attr = {}
9
+ if post_object.categories.pluck(:id).include?(category_object.id)
10
+ attr[:checked] = 'checked'
11
+ end
12
+
13
+ return attr
14
+ end
15
+
16
+ def markdown(text)
17
+ redcarpet = Redcarpet::Markdown.new(HTMLwithPygments, :fenced_code_blocks => true, :autolink => true, :space_after_headers => true, :underline => true, :highlight => true)
18
+ redcarpet.render(text)
19
+ end
20
+
21
+ class HTMLwithPygments < Redcarpet::Render::HTML
22
+ def header(text, header_level)
23
+ "<h#{header_level + 1}>#{text}</h#{header_level + 1}>"
24
+ end
25
+
26
+ def block_code(code, language)
27
+ title = nil
28
+ code.gsub!(/\A\:\:(.*)$/) { title = $1 ; nil }
29
+ String.new.tap do |s|
30
+ s << "<p class='codeTitle'>#{title}</p>" if title
31
+ s << Pygments.highlight(code, :lexer => language)
32
+ end
33
+ rescue
34
+ "<div class='highlight'><pre>#{code}</pre></div>"
35
+ end
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,4 @@
1
+ module Blogr
2
+ module SessionsHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Blogr
2
+ module TagsHelper
3
+ end
4
+ end
@@ -0,0 +1,16 @@
1
+ module Blogr
2
+
3
+ module UserHelper
4
+ def gravatar(email, options = {})
5
+ options[:size] ||= 35
6
+ options[:default] ||= "identicon"
7
+ options[:rating] ||= "PG"
8
+ options[:class] ||= "gravatar"
9
+ options[:secure] ||= request.ssl?
10
+ host = (options[:secure] ? "https://secure.gravatar.com" : "http://gravatar.com")
11
+ path = "/avatar?gravatar_id=#{Digest::MD5.hexdigest(email)}&rating=#{options[:rating]}&size=#{options[:size] * 2}&d=#{options[:default]}"
12
+ image_tag([host,path].join, :class => options[:class], :width => options[:size], :height => options[:size])
13
+ end
14
+ end
15
+
16
+ end
@@ -0,0 +1,5 @@
1
+ module Blogr
2
+ class CategoriesPost < ActiveRecord::Base
3
+ validates_uniqueness_of :category_id, :scope => [:post_id]
4
+ end
5
+ end
@@ -0,0 +1,16 @@
1
+ module Blogr
2
+ class Category < ActiveRecord::Base
3
+
4
+ has_many :posts, class_name: "Blogr::Post"
5
+
6
+ before_validation { self.permalink = self.title.parameterize if self.title }
7
+
8
+ validates_uniqueness_of :title, :permalink
9
+ validates_presence_of :title, :permalink
10
+
11
+ def to_param
12
+ permalink
13
+ end
14
+
15
+ end
16
+ end
@@ -0,0 +1,10 @@
1
+ module Blogr
2
+ class Comment < ActiveRecord::Base
3
+
4
+ belongs_to :post, class_name: "Blogr::Post"
5
+ belongs_to :user, class_name: "Blogr::User"
6
+
7
+ validates_presence_of :post_id, :content
8
+
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ module Blogr
2
+ class Image < ActiveRecord::Base
3
+
4
+ belongs_to :post, class_name: "Blogr::Post"
5
+
6
+ validates :file, presence: true
7
+
8
+ # has_attached_file :file, :styles => { medium: "500#", thumb: "198x160>", big: "970x" }, :default_url => "/images/:style/missing.png"
9
+
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ include Blogr::PostsHelper
2
+
3
+ module Blogr
4
+ class Post < ActiveRecord::Base
5
+
6
+ belongs_to :category, class_name: "Blogr::Category"
7
+ belongs_to :user, class_name: "Blogr::User"
8
+ has_many :taggings, class_name: "Blogr::Tagging"
9
+ has_many :tags, through: :taggings, class_name: "Blogr::Tag"
10
+ has_many :comments, class_name: "Blogr::Comment"
11
+
12
+ before_validation { self.permalink = title.parameterize if self.permalink.nil? }
13
+
14
+ validates_uniqueness_of :title, :permalink
15
+ validates_presence_of :title, :permalink, :content, :user_id
16
+
17
+ scope :published, -> { where "published = ? AND published_at <= ?", true, Time.now.to_s }
18
+ scope :draft, -> { where published: false }
19
+
20
+ def to_param
21
+ permalink
22
+ end
23
+
24
+
25
+ # The date parsed as 04 November 2013
26
+ #
27
+ # @return [String]
28
+ def date_parsed
29
+ published && published_at.present? ? published_at.strftime("%d %B %Y") : ""
30
+ end
31
+
32
+ # The Markdown content rendered to HTML
33
+ #
34
+ # @return [String]
35
+ def content_rendered
36
+ markdown(content).html_safe
37
+ end
38
+
39
+ def self.tagged_with(name)
40
+ Blogr::Tag.find_by_name!(name).posts
41
+ end
42
+
43
+ def self.tag_counts
44
+ Blogr::Tag.select(
45
+ "#{Blogr::Tag.table_name}.*, COUNT(#{Blogr::Tagging.table_name}.tag_id) AS count"
46
+ ).joins(:taggings).group("#{Blogr::Tagging.table_name}.tag_id")
47
+ end
48
+
49
+ def tag_list
50
+ tags.map(&:name).join(", ")
51
+ end
52
+
53
+ def tag_list=(names)
54
+ self.tags = names.split(",").map do |n|
55
+ Blogr::Tag.where(name: n.strip).first_or_create!
56
+ end
57
+ end
58
+
59
+ end
60
+ end
@@ -0,0 +1,14 @@
1
+ module Blogr
2
+ class Tag < ActiveRecord::Base
3
+
4
+ has_many :taggings, class_name: "Blogr::Tagging"
5
+ has_many :posts, through: :taggings, class_name: "Blogr::Post"
6
+
7
+ before_validation { self.permalink = name.parameterize }
8
+
9
+ def to_param
10
+ permalink
11
+ end
12
+
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ module Blogr
2
+ class Tagging < ActiveRecord::Base
3
+
4
+ belongs_to :tag, class_name: "Blogr::Tag"
5
+ belongs_to :post, class_name: "Blogr::Post"
6
+
7
+ end
8
+ end
@@ -0,0 +1,14 @@
1
+ module Blogr
2
+ class User < ActiveRecord::Base
3
+
4
+ has_secure_password
5
+
6
+ validates_presence_of :first_name, :last_name, :username, :email, :password
7
+ has_many :posts, class_name: "Blogr::Post"
8
+
9
+ def name
10
+ [first_name, last_name].join(" ")
11
+ end
12
+
13
+ end
14
+ end
@@ -0,0 +1,18 @@
1
+ = form_for(@category) do |f|
2
+ - if @category.errors.any?
3
+ #error_explanation
4
+ %h3 #{pluralize(@category.errors.count, "error")} prohibited this category from being saved:
5
+
6
+ %ul
7
+ - @category.errors.full_messages.each do |msg|
8
+ %li= msg
9
+
10
+ .form-group
11
+ = f.label :title
12
+ = f.text_field :title, class: "form-control"
13
+
14
+ .form-group
15
+ = f.label :description
16
+ = f.text_area :description, rows: 5, style: "width:100%", class: "form-control"
17
+
18
+ = f.submit "Submit", class: 'btn btn-success'
@@ -0,0 +1 @@
1
+ = render "form"
@@ -0,0 +1,13 @@
1
+ - content_for :links do
2
+ = link_to "New Category", new_category_path, class: "btn btn-default"
3
+
4
+ %table.table.table-bordered.table-striped
5
+ %thead
6
+ %tr
7
+ %th Title
8
+ %th Date
9
+ %tbody
10
+ - @categories.each do |category|
11
+ = content_tag_for(:tr, category) do
12
+ %td= link_to category.title, category
13
+ %td= category.description
@@ -0,0 +1 @@
1
+ = render "form"
@@ -0,0 +1,7 @@
1
+ %p
2
+ %b Title:
3
+ = @category.title
4
+
5
+ %p
6
+ %b Description:
7
+ = @category.description
@@ -0,0 +1 @@
1
+ = render "form"
@@ -0,0 +1,16 @@
1
+ %table.table.table-bordered.table-striped
2
+ %thead
3
+ %tr
4
+ %th #
5
+ %th Post
6
+ %th Author Name
7
+ %th Author Email
8
+ %th Content
9
+ %tbody
10
+ - @comments.each do |comment|
11
+ = content_tag_for(:tr, comment) do
12
+ %td= link_to comment.id, comment
13
+ %td= link_to comment.post.title, comment.post
14
+ %td= comment.author_name
15
+ %td= comment.author_email
16
+ %td= comment.content.truncate(150)