social_stream 0.4.6 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (689) hide show
  1. data/Gemfile +10 -8
  2. data/README.rdoc +8 -20
  3. data/lib/generators/social_stream/USAGE +0 -3
  4. data/lib/generators/social_stream/install_generator.rb +1 -55
  5. data/lib/social_stream.rb +4 -62
  6. data/lib/social_stream/version.rb +1 -1
  7. data/social_stream.gemspec +1 -36
  8. data/spec/controllers/frontpage_controller_spec.rb +0 -5
  9. data/spec/support/migrations.rb +18 -19
  10. metadata +25 -979
  11. data/app/controllers/activities_controller.rb +0 -19
  12. data/app/controllers/api_controller.rb +0 -36
  13. data/app/controllers/authentications_controller.rb +0 -17
  14. data/app/controllers/comments_controller.rb +0 -12
  15. data/app/controllers/contacts_controller.rb +0 -43
  16. data/app/controllers/conversations_controller.rb +0 -102
  17. data/app/controllers/frontpage_controller.rb +0 -23
  18. data/app/controllers/groups_controller.rb +0 -35
  19. data/app/controllers/home_controller.rb +0 -3
  20. data/app/controllers/likes_controller.rb +0 -41
  21. data/app/controllers/messages_controller.rb +0 -87
  22. data/app/controllers/notifications_controller.rb +0 -72
  23. data/app/controllers/omniauth_callbacks_controller.rb +0 -17
  24. data/app/controllers/permissions_controller.rb +0 -15
  25. data/app/controllers/posts_controller.rb +0 -11
  26. data/app/controllers/profiles_controller.rb +0 -9
  27. data/app/controllers/relation/customs_controller.rb +0 -16
  28. data/app/controllers/spheres_controller.rb +0 -12
  29. data/app/controllers/subjects_controller.rb +0 -7
  30. data/app/controllers/tags_controller.rb +0 -15
  31. data/app/controllers/users_controller.rb +0 -30
  32. data/app/helpers/activities_helper.rb +0 -21
  33. data/app/helpers/contacts_helper.rb +0 -26
  34. data/app/helpers/groups_helper.rb +0 -3
  35. data/app/helpers/location_helper.rb +0 -48
  36. data/app/helpers/notifications_helper.rb +0 -23
  37. data/app/helpers/permissions_helper.rb +0 -16
  38. data/app/helpers/profiles_helper.rb +0 -31
  39. data/app/helpers/subjects_helper.rb +0 -6
  40. data/app/helpers/toolbar_helper.rb +0 -83
  41. data/app/helpers/users_helper.rb +0 -4
  42. data/app/models/ability.rb +0 -2
  43. data/app/models/activity.rb +0 -198
  44. data/app/models/activity_object.rb +0 -31
  45. data/app/models/activity_object_activity.rb +0 -14
  46. data/app/models/activity_verb.rb +0 -22
  47. data/app/models/actor.rb +0 -431
  48. data/app/models/authentication.rb +0 -3
  49. data/app/models/comment.rb +0 -3
  50. data/app/models/contact.rb +0 -121
  51. data/app/models/group.rb +0 -49
  52. data/app/models/like.rb +0 -49
  53. data/app/models/permission.rb +0 -180
  54. data/app/models/post.rb +0 -3
  55. data/app/models/profile.rb +0 -53
  56. data/app/models/relation.rb +0 -83
  57. data/app/models/relation/custom.rb +0 -122
  58. data/app/models/relation/public.rb +0 -42
  59. data/app/models/relation_permission.rb +0 -4
  60. data/app/models/sphere.rb +0 -9
  61. data/app/models/tie.rb +0 -332
  62. data/app/models/tie_activity.rb +0 -42
  63. data/app/models/user.rb +0 -125
  64. data/app/views/activities/_activity.html.erb +0 -5
  65. data/app/views/activities/_child.html.erb +0 -18
  66. data/app/views/activities/_comments.html.erb +0 -3
  67. data/app/views/activities/_index.html.erb +0 -22
  68. data/app/views/activities/_jquery.html.erb +0 -100
  69. data/app/views/activities/_new.html.erb +0 -30
  70. data/app/views/activities/_options.html.erb +0 -12
  71. data/app/views/activities/_root.html.erb +0 -37
  72. data/app/views/activities/_walls.html.erb +0 -34
  73. data/app/views/activities/index.js.erb +0 -1
  74. data/app/views/activity_objects/_activity_object.html.erb +0 -1
  75. data/app/views/actors/_actor.html.erb +0 -0
  76. data/app/views/api/activity_atom_feed.atom.builder +0 -40
  77. data/app/views/avatars/index.html.erb +0 -28
  78. data/app/views/comments/_comment.html.erb +0 -1
  79. data/app/views/comments/_new.html.erb +0 -19
  80. data/app/views/comments/create.js.erb +0 -4
  81. data/app/views/comments/destroy.js.erb +0 -2
  82. data/app/views/contacts/_contact.html.erb +0 -20
  83. data/app/views/contacts/_edit.html.erb +0 -76
  84. data/app/views/contacts/_form.html.erb +0 -77
  85. data/app/views/contacts/_index.html.erb +0 -33
  86. data/app/views/contacts/_pendings.html.erb +0 -11
  87. data/app/views/contacts/_suggestions.html.erb +0 -27
  88. data/app/views/contacts/_suggestions_and_pendings.html.erb +0 -6
  89. data/app/views/contacts/edit.html.erb +0 -5
  90. data/app/views/contacts/index.html.erb +0 -39
  91. data/app/views/contacts/index.js.erb +0 -3
  92. data/app/views/contacts/new.html.erb +0 -5
  93. data/app/views/conversations/_conversation.html.erb +0 -37
  94. data/app/views/conversations/_conversation_full.html.erb +0 -53
  95. data/app/views/conversations/_conversations.html.erb +0 -5
  96. data/app/views/conversations/_index.html.erb +0 -11
  97. data/app/views/conversations/_menu_options.html.erb +0 -19
  98. data/app/views/conversations/_show.html.erb +0 -13
  99. data/app/views/conversations/edit.html.erb +0 -10
  100. data/app/views/conversations/index.html.erb +0 -23
  101. data/app/views/conversations/index.js.erb +0 -9
  102. data/app/views/conversations/show.html.erb +0 -51
  103. data/app/views/conversations/show.js.erb +0 -41
  104. data/app/views/devise/passwords/edit.html.erb +0 -21
  105. data/app/views/devise/passwords/new.html.erb +0 -16
  106. data/app/views/devise/registrations/new.html.erb +0 -37
  107. data/app/views/devise/sessions/new.html.erb +0 -30
  108. data/app/views/frontpage/_header.html.erb +0 -25
  109. data/app/views/frontpage/_search.html.erb +0 -13
  110. data/app/views/frontpage/_sponsor.html.erb +0 -12
  111. data/app/views/frontpage/host_meta.xml.builder +0 -11
  112. data/app/views/frontpage/index.html.erb +0 -96
  113. data/app/views/groups/_group.html.erb +0 -10
  114. data/app/views/groups/_index.html.erb +0 -35
  115. data/app/views/groups/_new.html.erb +0 -74
  116. data/app/views/groups/_sidebar_index.html.erb +0 -31
  117. data/app/views/groups/_sidebar_show.html.erb +0 -3
  118. data/app/views/groups/index.html.erb +0 -62
  119. data/app/views/groups/index.js.erb +0 -1
  120. data/app/views/groups/new.html.erb +0 -15
  121. data/app/views/groups/show.html.erb +0 -30
  122. data/app/views/home/_groups.html.erb +0 -24
  123. data/app/views/home/_menu.html.erb +0 -46
  124. data/app/views/home/_sidebar.html.erb +0 -2
  125. data/app/views/home/index.html.erb +0 -22
  126. data/app/views/layouts/_account.html.erb +0 -16
  127. data/app/views/layouts/_flash.html.erb +0 -5
  128. data/app/views/layouts/_footer.html.erb +0 -16
  129. data/app/views/layouts/_header.erb +0 -40
  130. data/app/views/layouts/_representation.html.erb +0 -23
  131. data/app/views/layouts/application.html.erb +0 -58
  132. data/app/views/layouts/frontpage.html.erb +0 -42
  133. data/app/views/layouts/test.html +0 -61
  134. data/app/views/likes/create.js.erb +0 -2
  135. data/app/views/likes/destroy.js.erb +0 -1
  136. data/app/views/location/_location.html.erb +0 -3
  137. data/app/views/messages/_form.html.erb +0 -39
  138. data/app/views/messages/_message.html.erb +0 -31
  139. data/app/views/messages/_new.html.erb +0 -13
  140. data/app/views/messages/new.html.erb +0 -57
  141. data/app/views/messages/new.js.erb +0 -41
  142. data/app/views/notification_mailer/new_notification_email.html.erb +0 -21
  143. data/app/views/notification_mailer/new_notification_email.text.erb +0 -11
  144. data/app/views/notifications/_index.html.erb +0 -21
  145. data/app/views/notifications/_notification.html.erb +0 -47
  146. data/app/views/notifications/_show.html.erb +0 -3
  147. data/app/views/notifications/activities/_follow_body.html.erb +0 -2
  148. data/app/views/notifications/activities/_follow_subject.html.erb +0 -2
  149. data/app/views/notifications/activities/_like_body.html.erb +0 -5
  150. data/app/views/notifications/activities/_like_object_body.html.erb +0 -2
  151. data/app/views/notifications/activities/_like_object_subject.html.erb +0 -2
  152. data/app/views/notifications/activities/_like_subject.html.erb +0 -5
  153. data/app/views/notifications/activities/_like_subject_body.html.erb +0 -1
  154. data/app/views/notifications/activities/_like_subject_subject.html.erb +0 -2
  155. data/app/views/notifications/activities/_make-friend_body.html.erb +0 -3
  156. data/app/views/notifications/activities/_make-friend_subject.html.erb +0 -2
  157. data/app/views/notifications/activities/_post_body.html.erb +0 -2
  158. data/app/views/notifications/activities/_post_subject.html.erb +0 -1
  159. data/app/views/notifications/activities/_update_body.html.erb +0 -1
  160. data/app/views/notifications/activities/_update_subject.html.erb +0 -1
  161. data/app/views/notifications/index.html.erb +0 -19
  162. data/app/views/notifications/index.js.erb +0 -8
  163. data/app/views/notifications/show.html.erb +0 -5
  164. data/app/views/permissions/_index.html.erb +0 -39
  165. data/app/views/permissions/index.js.erb +0 -10
  166. data/app/views/posts/_post.html.erb +0 -3
  167. data/app/views/posts/create.js.erb +0 -5
  168. data/app/views/posts/destroy.js.erb +0 -2
  169. data/app/views/profiles/_contact.html.erb +0 -81
  170. data/app/views/profiles/_experience.html.erb +0 -22
  171. data/app/views/profiles/_personal.html.erb +0 -74
  172. data/app/views/profiles/_profile.html.erb +0 -50
  173. data/app/views/profiles/_tags.html.erb +0 -22
  174. data/app/views/profiles/edit.html.erb +0 -221
  175. data/app/views/profiles/show.html.erb +0 -25
  176. data/app/views/profiles/update.js.erb +0 -20
  177. data/app/views/relation/customs/_form.html.erb +0 -29
  178. data/app/views/relation/customs/_index.html.erb +0 -30
  179. data/app/views/relation/customs/_list.html.erb +0 -36
  180. data/app/views/relation/customs/create.js.erb +0 -20
  181. data/app/views/relation/customs/index.js.erb +0 -2
  182. data/app/views/relation/customs/update.js.erb +0 -6
  183. data/app/views/spheres/_form.html.erb +0 -28
  184. data/app/views/spheres/_jquery.erb +0 -130
  185. data/app/views/spheres/_list.html.erb +0 -19
  186. data/app/views/spheres/create.js.erb +0 -20
  187. data/app/views/spheres/index.html.erb +0 -74
  188. data/app/views/subjects/_contacts.html.erb +0 -18
  189. data/app/views/subjects/_tabs.html.erb +0 -38
  190. data/app/views/ties/_edit.html.erb +0 -70
  191. data/app/views/ties/_form.html.erb +0 -6
  192. data/app/views/ties/create.js.erb +0 -26
  193. data/app/views/ties/edit.html.erb +0 -1
  194. data/app/views/ties/suggestion.html.erb +0 -1
  195. data/app/views/ties/suggestion.js.erb +0 -1
  196. data/app/views/toolbar/_home.html.erb +0 -9
  197. data/app/views/toolbar/_home_menu.html.erb +0 -9
  198. data/app/views/toolbar/_home_menu_options.html.erb +0 -29
  199. data/app/views/toolbar/_home_menu_options_subjects.html.erb +0 -12
  200. data/app/views/toolbar/_logo.html.erb +0 -16
  201. data/app/views/toolbar/_message_menu.html.erb +0 -17
  202. data/app/views/toolbar/_notifications_menu.html.erb +0 -3
  203. data/app/views/toolbar/_profile.html.erb +0 -13
  204. data/app/views/toolbar/_profile_menu.html.erb +0 -15
  205. data/app/views/toolbar/_profile_menu_basic_options.html.erb +0 -5
  206. data/app/views/toolbar/_profile_menu_tie_options.html.erb +0 -35
  207. data/app/views/users/_groups.html.erb +0 -23
  208. data/app/views/users/_index.html.erb +0 -33
  209. data/app/views/users/_sidebar_index.html.erb +0 -1
  210. data/app/views/users/index.html.erb +0 -47
  211. data/app/views/users/index.js.erb +0 -1
  212. data/app/views/users/info.html.erb +0 -0
  213. data/app/views/users/show.html.erb +0 -34
  214. data/app/views/users/show.xml.builder +0 -28
  215. data/config/locales/en.yml +0 -341
  216. data/config/routes.rb +0 -69
  217. data/lib/generators/social_stream/templates/initializer.rb +0 -17
  218. data/lib/generators/social_stream/templates/migration.rb +0 -299
  219. data/lib/generators/social_stream/templates/public/images/HTML5.png +0 -0
  220. data/lib/generators/social_stream/templates/public/images/HTML5_Semantics.png +0 -0
  221. data/lib/generators/social_stream/templates/public/images/HTML5_Styling.png +0 -0
  222. data/lib/generators/social_stream/templates/public/images/Jcrop.gif +0 -0
  223. data/lib/generators/social_stream/templates/public/images/boxy/boxy-ne.png +0 -0
  224. data/lib/generators/social_stream/templates/public/images/boxy/boxy-nw.png +0 -0
  225. data/lib/generators/social_stream/templates/public/images/boxy/boxy-se.png +0 -0
  226. data/lib/generators/social_stream/templates/public/images/boxy/boxy-sw.png +0 -0
  227. data/lib/generators/social_stream/templates/public/images/btn/1-facebook.png +0 -0
  228. data/lib/generators/social_stream/templates/public/images/btn/_notes/btn_certificates.png.mno +0 -4
  229. data/lib/generators/social_stream/templates/public/images/btn/arrowBlue.png +0 -0
  230. data/lib/generators/social_stream/templates/public/images/btn/arrows-ffffff.png +0 -0
  231. data/lib/generators/social_stream/templates/public/images/btn/bold.png +0 -0
  232. data/lib/generators/social_stream/templates/public/images/btn/btn_activities.png +0 -0
  233. data/lib/generators/social_stream/templates/public/images/btn/btn_bookmark.png +0 -0
  234. data/lib/generators/social_stream/templates/public/images/btn/btn_browse.png +0 -0
  235. data/lib/generators/social_stream/templates/public/images/btn/btn_certificates.png +0 -0
  236. data/lib/generators/social_stream/templates/public/images/btn/btn_check.png +0 -0
  237. data/lib/generators/social_stream/templates/public/images/btn/btn_close.png +0 -0
  238. data/lib/generators/social_stream/templates/public/images/btn/btn_comment.png +0 -0
  239. data/lib/generators/social_stream/templates/public/images/btn/btn_comment_add.png +0 -0
  240. data/lib/generators/social_stream/templates/public/images/btn/btn_conferences.png +0 -0
  241. data/lib/generators/social_stream/templates/public/images/btn/btn_config.png +0 -0
  242. data/lib/generators/social_stream/templates/public/images/btn/btn_date.png +0 -0
  243. data/lib/generators/social_stream/templates/public/images/btn/btn_delete.png +0 -0
  244. data/lib/generators/social_stream/templates/public/images/btn/btn_documents.png +0 -0
  245. data/lib/generators/social_stream/templates/public/images/btn/btn_down.png +0 -0
  246. data/lib/generators/social_stream/templates/public/images/btn/btn_edit.png +0 -0
  247. data/lib/generators/social_stream/templates/public/images/btn/btn_embebed.png +0 -0
  248. data/lib/generators/social_stream/templates/public/images/btn/btn_exit.png +0 -0
  249. data/lib/generators/social_stream/templates/public/images/btn/btn_find.png +0 -0
  250. data/lib/generators/social_stream/templates/public/images/btn/btn_follow.png +0 -0
  251. data/lib/generators/social_stream/templates/public/images/btn/btn_foward.png +0 -0
  252. data/lib/generators/social_stream/templates/public/images/btn/btn_friend.png +0 -0
  253. data/lib/generators/social_stream/templates/public/images/btn/btn_gallery.png +0 -0
  254. data/lib/generators/social_stream/templates/public/images/btn/btn_group.png +0 -0
  255. data/lib/generators/social_stream/templates/public/images/btn/btn_help.png +0 -0
  256. data/lib/generators/social_stream/templates/public/images/btn/btn_home.png +0 -0
  257. data/lib/generators/social_stream/templates/public/images/btn/btn_inbox.png +0 -0
  258. data/lib/generators/social_stream/templates/public/images/btn/btn_info.png +0 -0
  259. data/lib/generators/social_stream/templates/public/images/btn/btn_like.png +0 -0
  260. data/lib/generators/social_stream/templates/public/images/btn/btn_next.png +0 -0
  261. data/lib/generators/social_stream/templates/public/images/btn/btn_notification.png +0 -0
  262. data/lib/generators/social_stream/templates/public/images/btn/btn_notification_delete.png +0 -0
  263. data/lib/generators/social_stream/templates/public/images/btn/btn_notifications.png +0 -0
  264. data/lib/generators/social_stream/templates/public/images/btn/btn_outline.png +0 -0
  265. data/lib/generators/social_stream/templates/public/images/btn/btn_page_link.png +0 -0
  266. data/lib/generators/social_stream/templates/public/images/btn/btn_partner.png +0 -0
  267. data/lib/generators/social_stream/templates/public/images/btn/btn_photo.png +0 -0
  268. data/lib/generators/social_stream/templates/public/images/btn/btn_printer.png +0 -0
  269. data/lib/generators/social_stream/templates/public/images/btn/btn_profile.png +0 -0
  270. data/lib/generators/social_stream/templates/public/images/btn/btn_rank.png +0 -0
  271. data/lib/generators/social_stream/templates/public/images/btn/btn_security.png +0 -0
  272. data/lib/generators/social_stream/templates/public/images/btn/btn_send.png +0 -0
  273. data/lib/generators/social_stream/templates/public/images/btn/btn_spam.png +0 -0
  274. data/lib/generators/social_stream/templates/public/images/btn/btn_star.png +0 -0
  275. data/lib/generators/social_stream/templates/public/images/btn/btn_tag.png +0 -0
  276. data/lib/generators/social_stream/templates/public/images/btn/btn_video.png +0 -0
  277. data/lib/generators/social_stream/templates/public/images/btn/btn_write.png +0 -0
  278. data/lib/generators/social_stream/templates/public/images/btn/close.png +0 -0
  279. data/lib/generators/social_stream/templates/public/images/btn/date.png +0 -0
  280. data/lib/generators/social_stream/templates/public/images/btn/edit.png +0 -0
  281. data/lib/generators/social_stream/templates/public/images/btn/error.png +0 -0
  282. data/lib/generators/social_stream/templates/public/images/btn/facebook.png +0 -0
  283. data/lib/generators/social_stream/templates/public/images/btn/flag.png +0 -0
  284. data/lib/generators/social_stream/templates/public/images/btn/flyer.png +0 -0
  285. data/lib/generators/social_stream/templates/public/images/btn/group_left.png +0 -0
  286. data/lib/generators/social_stream/templates/public/images/btn/group_right.png +0 -0
  287. data/lib/generators/social_stream/templates/public/images/btn/index_71.png +0 -0
  288. data/lib/generators/social_stream/templates/public/images/btn/info.png +0 -0
  289. data/lib/generators/social_stream/templates/public/images/btn/italic.png +0 -0
  290. data/lib/generators/social_stream/templates/public/images/btn/keynote.png +0 -0
  291. data/lib/generators/social_stream/templates/public/images/btn/like.png +0 -0
  292. data/lib/generators/social_stream/templates/public/images/btn/linkedin.png +0 -0
  293. data/lib/generators/social_stream/templates/public/images/btn/live.png +0 -0
  294. data/lib/generators/social_stream/templates/public/images/btn/message_conversation.png +0 -0
  295. data/lib/generators/social_stream/templates/public/images/btn/message_inbox.png +0 -0
  296. data/lib/generators/social_stream/templates/public/images/btn/message_new.png +0 -0
  297. data/lib/generators/social_stream/templates/public/images/btn/message_sentbox.png +0 -0
  298. data/lib/generators/social_stream/templates/public/images/btn/message_trash.png +0 -0
  299. data/lib/generators/social_stream/templates/public/images/btn/new.png +0 -0
  300. data/lib/generators/social_stream/templates/public/images/btn/next_conference.png +0 -0
  301. data/lib/generators/social_stream/templates/public/images/btn/next_space.png +0 -0
  302. data/lib/generators/social_stream/templates/public/images/btn/nolike.png +0 -0
  303. data/lib/generators/social_stream/templates/public/images/btn/notifications.png +0 -0
  304. data/lib/generators/social_stream/templates/public/images/btn/pixel.png +0 -0
  305. data/lib/generators/social_stream/templates/public/images/btn/point_blue.png +0 -0
  306. data/lib/generators/social_stream/templates/public/images/btn/point_gray.png +0 -0
  307. data/lib/generators/social_stream/templates/public/images/btn/search.png +0 -0
  308. data/lib/generators/social_stream/templates/public/images/btn/shadow.png +0 -0
  309. data/lib/generators/social_stream/templates/public/images/btn/share.png +0 -0
  310. data/lib/generators/social_stream/templates/public/images/btn/subtime.png +0 -0
  311. data/lib/generators/social_stream/templates/public/images/btn/success.png +0 -0
  312. data/lib/generators/social_stream/templates/public/images/btn/tag_cloud.png +0 -0
  313. data/lib/generators/social_stream/templates/public/images/btn/time.png +0 -0
  314. data/lib/generators/social_stream/templates/public/images/btn/twitter-follow-icon.png +0 -0
  315. data/lib/generators/social_stream/templates/public/images/btn/twitter.png +0 -0
  316. data/lib/generators/social_stream/templates/public/images/btn/uno.png +0 -0
  317. data/lib/generators/social_stream/templates/public/images/btn/viewer.png +0 -0
  318. data/lib/generators/social_stream/templates/public/images/btn/warning.png +0 -0
  319. data/lib/generators/social_stream/templates/public/images/cancel.png +0 -0
  320. data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.png +0 -0
  321. data/lib/generators/social_stream/templates/public/images/frontpage/comments.png +0 -0
  322. data/lib/generators/social_stream/templates/public/images/frontpage/green_sq.png +0 -0
  323. data/lib/generators/social_stream/templates/public/images/frontpage/join.gif +0 -0
  324. data/lib/generators/social_stream/templates/public/images/frontpage/meet.png +0 -0
  325. data/lib/generators/social_stream/templates/public/images/frontpage/people.png +0 -0
  326. data/lib/generators/social_stream/templates/public/images/frontpage/purple_sq.png +0 -0
  327. data/lib/generators/social_stream/templates/public/images/frontpage/right_comments.gif +0 -0
  328. data/lib/generators/social_stream/templates/public/images/frontpage/right_organizers.gif +0 -0
  329. data/lib/generators/social_stream/templates/public/images/frontpage/right_people.gif +0 -0
  330. data/lib/generators/social_stream/templates/public/images/frontpage/right_social.gif +0 -0
  331. data/lib/generators/social_stream/templates/public/images/frontpage/right_tags.gif +0 -0
  332. data/lib/generators/social_stream/templates/public/images/frontpage/right_webcam.gif +0 -0
  333. data/lib/generators/social_stream/templates/public/images/frontpage/share.png +0 -0
  334. data/lib/generators/social_stream/templates/public/images/frontpage/tags.png +0 -0
  335. data/lib/generators/social_stream/templates/public/images/frontpage/yellow_sq.png +0 -0
  336. data/lib/generators/social_stream/templates/public/images/header-logo.png +0 -0
  337. data/lib/generators/social_stream/templates/public/images/html5-badge-h-css3-semantics.png +0 -0
  338. data/lib/generators/social_stream/templates/public/images/icon_checkbox.png +0 -0
  339. data/lib/generators/social_stream/templates/public/images/icons/favicon.ico +0 -0
  340. data/lib/generators/social_stream/templates/public/images/left.png +0 -0
  341. data/lib/generators/social_stream/templates/public/images/loader.gif +0 -0
  342. data/lib/generators/social_stream/templates/public/images/logo.png +0 -0
  343. data/lib/generators/social_stream/templates/public/images/logos/actor/group.png +0 -0
  344. data/lib/generators/social_stream/templates/public/images/logos/actor/remote_subject.png +0 -0
  345. data/lib/generators/social_stream/templates/public/images/logos/actor/remote_user.png +0 -0
  346. data/lib/generators/social_stream/templates/public/images/logos/actor/user.png +0 -0
  347. data/lib/generators/social_stream/templates/public/images/logos/original/group.png +0 -0
  348. data/lib/generators/social_stream/templates/public/images/logos/original/user.png +0 -0
  349. data/lib/generators/social_stream/templates/public/images/logos/profile/group.png +0 -0
  350. data/lib/generators/social_stream/templates/public/images/logos/profile/user.png +0 -0
  351. data/lib/generators/social_stream/templates/public/images/logos/representation/group.png +0 -0
  352. data/lib/generators/social_stream/templates/public/images/logos/representation/user.png +0 -0
  353. data/lib/generators/social_stream/templates/public/images/logos/tie/group.png +0 -0
  354. data/lib/generators/social_stream/templates/public/images/logos/tie/user.png +0 -0
  355. data/lib/generators/social_stream/templates/public/images/pbar-ani.gif +0 -0
  356. data/lib/generators/social_stream/templates/public/images/right.png +0 -0
  357. data/lib/generators/social_stream/templates/public/images/title_background.png +0 -0
  358. data/lib/generators/social_stream/templates/public/javascripts/ajax.paginate.js +0 -46
  359. data/lib/generators/social_stream/templates/public/javascripts/avatars.js +0 -8
  360. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/.htaccess +0 -24
  361. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/adapters/jquery.js +0 -6
  362. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor.js +0 -141
  363. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_basic.js +0 -8
  364. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_basic_source.js +0 -20
  365. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_source.js +0 -25
  366. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/config.js +0 -21
  367. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/contents.css +0 -45
  368. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/images/spacer.gif +0 -0
  369. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/_languages.js +0 -6
  370. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/_translationstatus.txt +0 -60
  371. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/af.js +0 -6
  372. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ar.js +0 -6
  373. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bg.js +0 -6
  374. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bn.js +0 -6
  375. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bs.js +0 -6
  376. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ca.js +0 -6
  377. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/cs.js +0 -6
  378. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/cy.js +0 -6
  379. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/da.js +0 -6
  380. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/de.js +0 -6
  381. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/el.js +0 -6
  382. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-au.js +0 -6
  383. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-ca.js +0 -6
  384. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-gb.js +0 -6
  385. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en.js +0 -6
  386. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/eo.js +0 -6
  387. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/es.js +0 -6
  388. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/et.js +0 -6
  389. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/eu.js +0 -6
  390. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fa.js +0 -6
  391. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fi.js +0 -6
  392. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fo.js +0 -6
  393. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fr-ca.js +0 -6
  394. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fr.js +0 -6
  395. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/gl.js +0 -6
  396. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/gu.js +0 -6
  397. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/he.js +0 -6
  398. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hi.js +0 -6
  399. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hr.js +0 -6
  400. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hu.js +0 -6
  401. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/is.js +0 -6
  402. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/it.js +0 -6
  403. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ja.js +0 -6
  404. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/km.js +0 -6
  405. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ko.js +0 -6
  406. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/lt.js +0 -6
  407. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/lv.js +0 -6
  408. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/mn.js +0 -6
  409. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ms.js +0 -6
  410. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/nb.js +0 -6
  411. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/nl.js +0 -6
  412. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/no.js +0 -6
  413. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pl.js +0 -6
  414. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pt-br.js +0 -6
  415. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pt.js +0 -6
  416. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ro.js +0 -6
  417. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ru.js +0 -6
  418. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sk.js +0 -6
  419. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sl.js +0 -6
  420. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sr-latn.js +0 -6
  421. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sr.js +0 -6
  422. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sv.js +0 -6
  423. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/th.js +0 -6
  424. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/tr.js +0 -6
  425. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/uk.js +0 -6
  426. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/vi.js +0 -6
  427. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/zh-cn.js +0 -6
  428. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/zh.js +0 -6
  429. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -7
  430. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +0 -6
  431. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +0 -6
  432. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -6
  433. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  434. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/adobeair/plugin.js +0 -6
  435. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/autogrow/plugin.js +0 -6
  436. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -7
  437. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +0 -7
  438. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -4
  439. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -8
  440. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/find/dialogs/find.js +0 -9
  441. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -9
  442. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  443. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -6
  444. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -6
  445. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -6
  446. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -6
  447. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -6
  448. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -9
  449. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -6
  450. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -6
  451. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  452. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -7
  453. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  454. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js +0 -6
  455. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -13
  456. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -6
  457. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -11
  458. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
  459. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -6
  460. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  461. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -10
  462. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +0 -6
  463. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +0 -6
  464. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/lang/en.js +0 -6
  465. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
  466. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/plugin.js +0 -6
  467. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -8
  468. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -6
  469. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  470. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  471. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  472. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  473. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  474. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  475. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  476. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  477. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  478. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  479. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  480. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -7
  481. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  482. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  483. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  484. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  485. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  486. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  487. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  488. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  489. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  490. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  491. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  492. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  493. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  494. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  495. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  496. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  497. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  498. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  499. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  500. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  501. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  502. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -7
  503. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/specialchar/lang/en.js +0 -6
  504. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/styles/styles/default.js +0 -6
  505. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/table/dialogs/table.js +0 -9
  506. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/tableresize/plugin.js +0 -7
  507. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -8
  508. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -7
  509. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/default.js +0 -6
  510. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  511. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  512. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  513. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +0 -7
  514. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/lang/en.js +0 -6
  515. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/lang/he.js +0 -6
  516. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/plugin.js +0 -6
  517. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
  518. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
  519. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
  520. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
  521. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
  522. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +0 -6
  523. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/yui.js +0 -76
  524. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -49
  525. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -52
  526. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -6
  527. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -7
  528. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/dialog.css +0 -9
  529. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/editor.css +0 -13
  530. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/icons.png +0 -0
  531. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/icons_rtl.png +0 -0
  532. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
  533. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
  534. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
  535. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
  536. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
  537. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
  538. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
  539. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
  540. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/skin.js +0 -7
  541. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/templates.css +0 -6
  542. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/dialog.css +0 -9
  543. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/editor.css +0 -14
  544. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/icons.png +0 -0
  545. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/icons_rtl.png +0 -0
  546. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
  547. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
  548. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
  549. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
  550. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
  551. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
  552. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
  553. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/skin.js +0 -6
  554. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/templates.css +0 -6
  555. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/dialog.css +0 -9
  556. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/editor.css +0 -13
  557. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/icons.png +0 -0
  558. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/icons_rtl.png +0 -0
  559. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
  560. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
  561. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
  562. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
  563. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
  564. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
  565. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
  566. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
  567. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/skin.js +0 -6
  568. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/templates.css +0 -6
  569. data/lib/generators/social_stream/templates/public/javascripts/ckeditor/themes/default/theme.js +0 -8
  570. data/lib/generators/social_stream/templates/public/javascripts/hoverIntent.js +0 -84
  571. data/lib/generators/social_stream/templates/public/javascripts/jqcloud-0.1.3.min.js +0 -11
  572. data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js +0 -763
  573. data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-personalized-1.5.2.packed.js +0 -1
  574. data/lib/generators/social_stream/templates/public/javascripts/jquery-ui.min.js +0 -401
  575. data/lib/generators/social_stream/templates/public/javascripts/jquery.Jcrop.min.js +0 -163
  576. data/lib/generators/social_stream/templates/public/javascripts/jquery.ba-url.js +0 -1091
  577. data/lib/generators/social_stream/templates/public/javascripts/jquery.boxy.js +0 -570
  578. data/lib/generators/social_stream/templates/public/javascripts/jquery.fcbkcomplete.min.js +0 -77
  579. data/lib/generators/social_stream/templates/public/javascripts/jquery.fileupload-ui.js +0 -259
  580. data/lib/generators/social_stream/templates/public/javascripts/jquery.fileupload.js +0 -475
  581. data/lib/generators/social_stream/templates/public/javascripts/jquery.form.js +0 -815
  582. data/lib/generators/social_stream/templates/public/javascripts/jquery.js +0 -7179
  583. data/lib/generators/social_stream/templates/public/javascripts/jquery.livequery.js +0 -250
  584. data/lib/generators/social_stream/templates/public/javascripts/jquery.min.js +0 -167
  585. data/lib/generators/social_stream/templates/public/javascripts/jquery.scrollTo.min.js +0 -11
  586. data/lib/generators/social_stream/templates/public/javascripts/jquery.ui.mouse.js +0 -156
  587. data/lib/generators/social_stream/templates/public/javascripts/jquery.ui.slider.js +0 -684
  588. data/lib/generators/social_stream/templates/public/javascripts/jquery.ui.widget.js +0 -236
  589. data/lib/generators/social_stream/templates/public/javascripts/jquery.validate.js +0 -1124
  590. data/lib/generators/social_stream/templates/public/javascripts/main.js +0 -28
  591. data/lib/generators/social_stream/templates/public/javascripts/menu-collapsed.js +0 -42
  592. data/lib/generators/social_stream/templates/public/javascripts/menu.js +0 -25
  593. data/lib/generators/social_stream/templates/public/javascripts/rails.js +0 -158
  594. data/lib/generators/social_stream/templates/public/javascripts/superfish.js +0 -121
  595. data/lib/generators/social_stream/templates/public/javascripts/ui.checkbox.js +0 -309
  596. data/lib/generators/social_stream/templates/public/javascripts/ui.dropdownchecklist.js +0 -777
  597. data/lib/generators/social_stream/templates/public/stylesheets/default/activities.css +0 -72
  598. data/lib/generators/social_stream/templates/public/stylesheets/default/avatars.css +0 -79
  599. data/lib/generators/social_stream/templates/public/stylesheets/default/base.css +0 -194
  600. data/lib/generators/social_stream/templates/public/stylesheets/default/carousel.css +0 -23
  601. data/lib/generators/social_stream/templates/public/stylesheets/default/contacts.css +0 -88
  602. data/lib/generators/social_stream/templates/public/stylesheets/default/fcbkComplete.css +0 -44
  603. data/lib/generators/social_stream/templates/public/stylesheets/default/footer.css +0 -26
  604. data/lib/generators/social_stream/templates/public/stylesheets/default/frontpage.css +0 -54
  605. data/lib/generators/social_stream/templates/public/stylesheets/default/header.css +0 -209
  606. data/lib/generators/social_stream/templates/public/stylesheets/default/home.css +0 -45
  607. data/lib/generators/social_stream/templates/public/stylesheets/default/images/fcbkcomplete/close.gif +0 -0
  608. data/lib/generators/social_stream/templates/public/stylesheets/default/images/loading.gif +0 -0
  609. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  610. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  611. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  612. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  613. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  614. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  615. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  616. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  617. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_222222_256x240.png +0 -0
  618. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_2e83ff_256x240.png +0 -0
  619. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_454545_256x240.png +0 -0
  620. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_888888_256x240.png +0 -0
  621. data/lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_cd0a0a_256x240.png +0 -0
  622. data/lib/generators/social_stream/templates/public/stylesheets/default/jqcloud.css +0 -15
  623. data/lib/generators/social_stream/templates/public/stylesheets/default/jquery-ui.css +0 -620
  624. data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.Jcrop.css +0 -35
  625. data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.fileupload-ui.css +0 -73
  626. data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.ui.slider.css +0 -24
  627. data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.ui.slidertheme.css +0 -32
  628. data/lib/generators/social_stream/templates/public/stylesheets/default/menu.css +0 -27
  629. data/lib/generators/social_stream/templates/public/stylesheets/default/messages.css +0 -126
  630. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  631. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  632. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  633. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  634. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  635. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  636. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  637. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  638. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_222222_256x240.png +0 -0
  639. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  640. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_454545_256x240.png +0 -0
  641. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_888888_256x240.png +0 -0
  642. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  643. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/jquery-ui-1.7.3.custom.css +0 -405
  644. data/lib/generators/social_stream/templates/public/stylesheets/default/smoothness/jquery-ui-1.8.4.custom.css +0 -572
  645. data/lib/generators/social_stream/templates/public/stylesheets/default/spheres.css +0 -226
  646. data/lib/generators/social_stream/templates/relations.yml +0 -43
  647. data/lib/paperclip/social_stream.rb +0 -6
  648. data/lib/social_stream/ability.rb +0 -83
  649. data/lib/social_stream/controllers/helpers.rb +0 -83
  650. data/lib/social_stream/models/object.rb +0 -77
  651. data/lib/social_stream/models/subject.rb +0 -114
  652. data/lib/social_stream/models/supertype.rb +0 -44
  653. data/lib/social_stream/populate.rb +0 -26
  654. data/lib/social_stream/rails.rb +0 -89
  655. data/lib/social_stream/test_helpers.rb +0 -11
  656. data/lib/social_stream/test_helpers/controllers.rb +0 -119
  657. data/lib/tasks/db/populate.rake +0 -194
  658. data/spec/controllers/comments_controller_spec.rb +0 -42
  659. data/spec/controllers/contacts_controller_spec.rb +0 -41
  660. data/spec/controllers/groups_controller_spec.rb +0 -136
  661. data/spec/controllers/home_controller_spec.rb +0 -39
  662. data/spec/controllers/likes_controller_spec.rb +0 -29
  663. data/spec/controllers/permissions_controller_spec.rb +0 -46
  664. data/spec/controllers/posts_controller_spec.rb +0 -129
  665. data/spec/controllers/profiles_controller_spec.rb +0 -102
  666. data/spec/controllers/relation_customs_controller_spec.rb +0 -133
  667. data/spec/controllers/representations_spec.rb +0 -74
  668. data/spec/controllers/spheres_controller_spec.rb +0 -108
  669. data/spec/controllers/subjects_controller.rb +0 -14
  670. data/spec/controllers/users_controller_spec.rb +0 -74
  671. data/spec/factories/activity.rb +0 -10
  672. data/spec/factories/actor.rb +0 -5
  673. data/spec/factories/comment.rb +0 -4
  674. data/spec/factories/group.rb +0 -4
  675. data/spec/factories/post.rb +0 -4
  676. data/spec/factories/relation_custom.rb +0 -4
  677. data/spec/factories/sphere.rb +0 -5
  678. data/spec/factories/tie.rb +0 -37
  679. data/spec/factories/user.rb +0 -6
  680. data/spec/models/activity_spec.rb +0 -365
  681. data/spec/models/actor_spec.rb +0 -19
  682. data/spec/models/group_spec.rb +0 -12
  683. data/spec/models/like_spec.rb +0 -68
  684. data/spec/models/post_spec.rb +0 -33
  685. data/spec/models/profile_spec.rb +0 -39
  686. data/spec/models/relation_custom_spec.rb +0 -14
  687. data/spec/models/tie_activity_spec.rb +0 -109
  688. data/spec/models/tie_spec.rb +0 -166
  689. data/spec/models/user_spec.rb +0 -22
@@ -1,777 +0,0 @@
1
- ;(function($) {
2
- /*
3
- * ui.dropdownchecklist
4
- *
5
- * Copyright (c) 2008-2010 Adrian Tosca, Copyright (c) 2010 Ittrium LLC
6
- * Dual licensed under the MIT (MIT-LICENSE.txt)
7
- * and GPL (GPL-LICENSE.txt) licenses.
8
- *
9
- */
10
- // The dropdown check list jQuery plugin transforms a regular select html element into a dropdown check list.
11
- $.widget("ui.dropdownchecklist", {
12
- // Some globlals
13
- // $.ui.dropdownchecklist.gLastOpened - keeps track of last opened dropdowncheck list so we can close it
14
- // $.ui.dropdownchecklist.gIDCounter - simple counter to provide a unique ID as needed
15
- version: function() {
16
- alert('DropDownCheckList v1.1');
17
- },
18
- // Creates the drop container that keeps the items and appends it to the document
19
- _appendDropContainer: function( controlItem ) {
20
- var wrapper = $("<div/>");
21
- // the container is wrapped in a div
22
- wrapper.addClass("ui-dropdownchecklist ui-dropdownchecklist-dropcontainer-wrapper");
23
- wrapper.addClass("ui-widget");
24
- // assign an id
25
- wrapper.attr("id",controlItem.attr("id") + '-ddw');
26
- // initially hidden
27
- wrapper.css({ position: 'absolute', left: "-33000px", top: "-33000px" });
28
-
29
- var container = $("<div/>"); // the actual container
30
- container.addClass("ui-dropdownchecklist-dropcontainer ui-widget-content");
31
- container.css("overflow-y", "auto");
32
- wrapper.append(container);
33
-
34
- // insert the dropdown after the master control to try to keep the tab order intact
35
- // if you just add it to the end, tabbing out of the drop down takes focus off the page
36
- // @todo 22Sept2010 - check if size calculation is thrown off if the parent of the
37
- // selector is hidden. We may need to add it to the end of the document here,
38
- // calculate the size, and then move it back into proper position???
39
- //$(document.body).append(wrapper);
40
- wrapper.insertAfter(controlItem);
41
-
42
- // flag that tells if the drop container is shown or not
43
- wrapper.isOpen = false;
44
- return wrapper;
45
- },
46
- // Look for browser standard 'open' on a closed selector
47
- _isDropDownKeyShortcut: function(e,keycode) {
48
- return e.altKey && ($.ui.keyCode.DOWN == keycode);// Alt + Down Arrow
49
- },
50
- // Look for key that will tell us to close the open dropdown
51
- _isDropDownCloseKey: function(e,keycode) {
52
- return ($.ui.keyCode.ESCAPE == keycode) || ($.ui.keyCode.ENTER == keycode);
53
- },
54
- // Handler to change the active focus based on a keystroke, moving some count of
55
- // items from the element that has the current focus
56
- _keyFocusChange: function(target,delta,limitToItems) {
57
- // Find item with current focus
58
- var focusables = $(":focusable");
59
- var index = focusables.index(target);
60
- if ( index >= 0 ) {
61
- index += delta;
62
- if ( limitToItems ) {
63
- // Bound change to list of input elements
64
- var allCheckboxes = this.dropWrapper.find("input:not([disabled])");
65
- var firstIndex = focusables.index(allCheckboxes.get(0));
66
- var lastIndex = focusables.index(allCheckboxes.get(allCheckboxes.length-1));
67
- if ( index < firstIndex ) {
68
- index = lastIndex;
69
- } else if ( index > lastIndex ) {
70
- index = firstIndex;
71
- }
72
- }
73
- focusables.get(index).focus();
74
- }
75
- },
76
- // Look for navigation, open, close (wired to keyup)
77
- _handleKeyboard: function(e) {
78
- var self = this;
79
- var keyCode = (e.keyCode || e.which);
80
- if (!self.dropWrapper.isOpen && self._isDropDownKeyShortcut(e, keyCode)) {
81
- // Key command to open the dropdown
82
- e.stopImmediatePropagation();
83
- self._toggleDropContainer(true);
84
- } else if (self.dropWrapper.isOpen && self._isDropDownCloseKey(e, keyCode)) {
85
- // Key command to close the dropdown (but we retain focus in the control)
86
- e.stopImmediatePropagation();
87
- self._toggleDropContainer(false);
88
- self.controlSelector.focus();
89
- } else if (self.dropWrapper.isOpen
90
- && (e.target.type == 'checkbox')
91
- && ((keyCode == $.ui.keyCode.DOWN) || (keyCode == $.ui.keyCode.UP)) ) {
92
- // Up/Down to cycle throught the open items
93
- e.stopImmediatePropagation();
94
- self._keyFocusChange(e.target, (keyCode == $.ui.keyCode.DOWN) ? 1 : -1, true);
95
- } else if (self.dropWrapper.isOpen && (keyCode == $.ui.keyCode.TAB) ) {
96
- // I wanted to adjust normal 'tab' processing here, but research indicates
97
- // that TAB key processing is NOT a cancelable event. You have to use a timer
98
- // hack to pull the focus back to where you want it after browser tab
99
- // processing completes. Not going to work for us.
100
- //e.stopImmediatePropagation();
101
- //self._keyFocusChange(e.target, (e.shiftKey) ? -1 : 1, true);
102
- }
103
- },
104
- // Look for change of focus
105
- _handleFocus: function(e,focusIn,forDropdown) {
106
- var self = this;
107
- if (forDropdown && !self.dropWrapper.isOpen) {
108
- // if the focus changes when the control is NOT open, mark it to show where the focus is/is not
109
- e.stopImmediatePropagation();
110
- if (focusIn) {
111
- self.controlSelector.addClass("ui-state-hover");
112
- if ($.ui.dropdownchecklist.gLastOpened != null) {
113
- $.ui.dropdownchecklist.gLastOpened._toggleDropContainer( false );
114
- }
115
- } else {
116
- self.controlSelector.removeClass("ui-state-hover");
117
- }
118
- } else if (!forDropdown && !focusIn) {
119
- // The dropdown is open, and an item (NOT the dropdown) has just lost the focus.
120
- // we really need a reliable method to see who has the focus as we process the blur,
121
- // but that mechanism does not seem to exist. Instead we rely on a delay before
122
- // posting the blur, with a focus event cancelling it before the delay expires.
123
- if ( e != null ) { e.stopImmediatePropagation(); }
124
- self.controlSelector.removeClass("ui-state-hover");
125
- self._toggleDropContainer( false );
126
- }
127
- },
128
- // Clear the pending change of focus, which keeps us 'in' the control
129
- _cancelBlur: function(e) {
130
- var self = this;
131
- if (self.blurringItem != null) {
132
- clearTimeout(self.blurringItem);
133
- self.blurringItem = null;
134
- }
135
- },
136
- // Creates the control that will replace the source select and appends it to the document
137
- // The control resembles a regular select with single selection
138
- _appendControl: function() {
139
- var self = this, sourceSelect = this.sourceSelect, options = this.options;
140
-
141
- // the control is wrapped in a basic container
142
- var wrapper = $("<span/>");
143
- wrapper.addClass("ui-dropdownchecklist ui-dropdownchecklist-selector-wrapper ui-widget");
144
- wrapper.css({ cursor: "default", overflow: "hidden" });
145
-
146
- // assign an ID
147
- var baseID = sourceSelect.attr("id");
148
- if ((baseID == null) || (baseID == "")) {
149
- baseID = "ddcl-" + $.ui.dropdownchecklist.gIDCounter++;
150
- } else {
151
- baseID = "ddcl-" + baseID;
152
- }
153
- wrapper.attr("id",baseID);
154
-
155
- // the actual control which you can style
156
- // inline-block needed to enable 'width' but has interesting problems cross browser
157
- var control = $("<span/>");
158
- control.addClass("ui-dropdownchecklist-selector ui-state-default");
159
- control.css( { display: "inline-block", overflow: "hidden", 'white-space': 'nowrap'} );
160
- // Setting a tab index means we are interested in the tab sequence
161
- var tabIndex = sourceSelect.attr("tabIndex");
162
- if ( tabIndex == null ) {
163
- tabIndex = 0;
164
- } else {
165
- tabIndex = parseInt(tabIndex);
166
- if ( tabIndex < 0 ) {
167
- tabIndex = 0;
168
- }
169
- }
170
- control.attr("tabIndex", tabIndex);
171
- control.keyup(function(e) {self._handleKeyboard(e);});
172
- control.focus(function(e) {self._handleFocus(e,true,true);});
173
- control.blur(function(e) {self._handleFocus(e,false,true);});
174
- wrapper.append(control);
175
-
176
- // the optional icon (which is inherently a block)
177
- if (options.icon != null) {
178
- var iconPlacement = (options.icon.placement == null) ? "left" : options.icon.placement;
179
- var anIcon = $("<div/>");
180
- anIcon.addClass("ui-icon");
181
- anIcon.addClass( (options.icon.toOpen != null) ? options.icon.toOpen : "ui-icon-triangle-1-e");
182
- anIcon.css({ 'float': iconPlacement });
183
- control.append(anIcon);
184
- }
185
- // the text container keeps the control text that is built from the selected (checked) items
186
- // inline-block needed to enable 'width' but has interesting problems cross browser
187
- var textContainer = $("<span/>");
188
- textContainer.addClass("ui-dropdownchecklist-text");
189
- textContainer.css( { display: "inline-block", 'white-space': "nowrap", overflow: "hidden" } );
190
- control.append(textContainer);
191
-
192
- // add the hover styles to the control
193
- wrapper.hover(
194
- function() {
195
- if (!self.disabled) {
196
- control.addClass("ui-state-hover");
197
- }
198
- }
199
- , function() {
200
- if (!self.disabled) {
201
- control.removeClass("ui-state-hover");
202
- }
203
- }
204
- );
205
- // clicking on the control toggles the drop container
206
- wrapper.click(function(event) {
207
- if (!self.disabled) {
208
- event.stopImmediatePropagation();
209
- self._toggleDropContainer( !self.dropWrapper.isOpen );
210
- }
211
- });
212
- wrapper.insertAfter(sourceSelect);
213
-
214
- // Watch for a window resize and adjust the control if open
215
- $(window).resize(function() {
216
- if (!self.disabled && self.dropWrapper.isOpen) {
217
- // Reopen yourself to get the position right
218
- self._toggleDropContainer(true);
219
- }
220
- });
221
- return wrapper;
222
- },
223
- // Creates a drop item that coresponds to an option element in the source select
224
- _createDropItem: function(index, tabIndex, value, text, checked, disabled, indent) {
225
- var self = this, options = this.options, sourceSelect = this.sourceSelect, controlWrapper = this.controlWrapper;
226
- // the item contains a div that contains a checkbox input and a lable for the text
227
- // the div
228
- var item = $("<div/>");
229
- item.addClass("ui-dropdownchecklist-item");
230
- item.css({'white-space': "nowrap"});
231
- var checkedString = checked ? ' checked="checked"' : '';
232
- var classString = disabled ? ' class="inactive"' : ' class="active"';
233
-
234
- // generated id must be a bit unique to keep from colliding
235
- var idBase = controlWrapper.attr("id");
236
- var id = idBase + '-i' + index;
237
- var checkBox;
238
-
239
- // all items start out disabled to keep them out of the tab order
240
- if (self.isMultiple) { // the checkbox
241
- checkBox = $('<input disabled type="checkbox" id="' + id + '"' + checkedString + classString + ' tabindex="' + tabIndex + '" />');
242
- } else { // the radiobutton
243
- checkBox = $('<input disabled type="radio" id="' + id + '" name="' + idBase + '"' + checkedString + classString + ' tabindex="' + tabIndex + '" />');
244
- }
245
- checkBox = checkBox.attr("index", index).val(value);
246
- item.append(checkBox);
247
-
248
- // the text
249
- var label = $("<label for=" + id + "/>");
250
- label.addClass("ui-dropdownchecklist-text");
251
- label.css({ cursor: "default" });
252
- label.text(text);
253
- if (indent) {
254
- item.addClass("ui-dropdownchecklist-indent");
255
- }
256
- item.addClass("ui-state-default");
257
- if (disabled) {
258
- item.addClass("ui-state-disabled");
259
- }
260
- label.click(function(e) {e.stopImmediatePropagation();});
261
- item.append(label);
262
-
263
- // active items display themselves with hover
264
- item.hover(
265
- function(e) {
266
- var anItem = $(this);
267
- if (!anItem.hasClass("ui-state-disabled")) { anItem.addClass("ui-state-hover"); }
268
- }
269
- , function(e) {
270
- var anItem = $(this);
271
- anItem.removeClass("ui-state-hover");
272
- }
273
- );
274
- // clicking on the checkbox synchronizes the source select
275
- checkBox.click(function(e) {
276
- var aCheckBox = $(this);
277
- e.stopImmediatePropagation();
278
- if (aCheckBox.hasClass("active") ) {
279
- // Active checkboxes take active action
280
- self._syncSelected(aCheckBox);
281
- self.sourceSelect.trigger("change", 'ddcl_internal');
282
- if (!self.isMultiple && options.closeRadioOnClick) {
283
- self._toggleDropContainer(false);
284
- }
285
- }
286
- });
287
- // we are interested in the focus leaving the check box
288
- // but we need to detect the focus leaving one check box but
289
- // entering another. There is no reliable way to detect who
290
- // received the focus on a blur, so post the blur in the future,
291
- // knowing we will cancel it if we capture the focus in a timely manner
292
- // 23Sept2010 - unfortunately, IE 7+ and Chrome like to post a blur
293
- // event to the current item with focus when the user
294
- // clicks in the scroll bar. So if you have a scrollable
295
- // dropdown with focus on an item, clicking in the scroll
296
- // will close the drop down.
297
- // I have no solution for blur processing at this time.
298
- /*********
299
- var timerFunction = function(){
300
- // I had a hell of a time getting setTimeout to fire this, do not try to
301
- // define it within the blur function
302
- try { self._handleFocus(null,false,false); } catch(ex){ alert('timer failed: '+ex);}
303
- };
304
- checkBox.blur(function(e) {
305
- self.blurringItem = setTimeout( timerFunction, 200 );
306
- });
307
- checkBox.focus(function(e) {self._cancelBlur();});
308
- **********/
309
- // check/uncheck the item on clicks on the entire item div
310
- item.click(function(e) {
311
- var anItem = $(this);
312
- e.stopImmediatePropagation();
313
- if (!anItem.hasClass("ui-state-disabled") ) {
314
- // check/uncheck the underlying control
315
- var aCheckBox = anItem.find("input");
316
- var checked = aCheckBox.attr("checked");
317
- aCheckBox.attr("checked", !checked);
318
- self._syncSelected(aCheckBox);
319
- self.sourceSelect.trigger("change", 'ddcl_internal');
320
- if (!checked && !self.isMultiple && options.closeRadioOnClick) {
321
- self._toggleDropContainer(false);
322
- }
323
- } else {
324
- // retain the focus even if disabled
325
- anItem.focus();
326
- self._cancelBlur();
327
- }
328
- });
329
- // do not let the focus wander around
330
- item.focus(function(e) {
331
- var anItem = $(this);
332
- e.stopImmediatePropagation();
333
- });
334
- item.keyup(function(e) {self._handleKeyboard(e);});
335
- return item;
336
- },
337
- _createGroupItem: function(text,disabled) {
338
- var self = this;
339
- var group = $("<div />");
340
- group.addClass("ui-dropdownchecklist-group ui-widget-header");
341
- if (disabled) {
342
- group.addClass("ui-state-disabled");
343
- }
344
- group.css({'white-space': "nowrap"});
345
-
346
- var label = $("<span/>");
347
- label.addClass("ui-dropdownchecklist-text");
348
- label.css( { cursor: "default" });
349
- label.text(text);
350
- group.append(label);
351
-
352
- // anything interesting when you click the group???
353
- group.click(function(e) {
354
- var aGroup= $(this);
355
- e.stopImmediatePropagation();
356
- // retain the focus even if no action is taken
357
- aGroup.focus();
358
- self._cancelBlur();
359
- });
360
- // do not let the focus wander around
361
- group.focus(function(e) {
362
- var aGroup = $(this);
363
- e.stopImmediatePropagation();
364
- });
365
- return group;
366
- },
367
- // Creates the drop items and appends them to the drop container
368
- // Also calculates the size needed by the drop container and returns it
369
- _appendItems: function() {
370
- var self = this, sourceSelect = this.sourceSelect, dropWrapper = this.dropWrapper;
371
- var dropContainerDiv = dropWrapper.find(".ui-dropdownchecklist-dropcontainer");
372
- sourceSelect.children().each(function(index) { // when the select has groups
373
- var opt = $(this);
374
- if (opt.is("option")) {
375
- self._appendOption(opt, dropContainerDiv, index, false, false);
376
- } else if (opt.is("optgroup")) {
377
- var disabled = opt.attr("disabled");
378
- var text = opt.attr("label");
379
- if (text != "") {
380
- var group = self._createGroupItem(text,disabled);
381
- dropContainerDiv.append(group);
382
- }
383
- self._appendOptions(opt, dropContainerDiv, index, true, disabled);
384
- }
385
- });
386
- var divWidth = dropContainerDiv.outerWidth();
387
- var divHeight = dropContainerDiv.outerHeight();
388
- return { width: divWidth, height: divHeight };
389
- },
390
- _appendOptions: function(parent, container, parentIndex, indent, forceDisabled) {
391
- var self = this;
392
- parent.children("option").each(function(index) {
393
- var option = $(this);
394
- var childIndex = (parentIndex + "." + index);
395
- self._appendOption(option, container, childIndex, indent, forceDisabled);
396
- });
397
- },
398
- _appendOption: function(option, container, index, indent, forceDisabled) {
399
- var self = this;
400
- var text = option.text();
401
- var value = option.val();
402
- var selected = option.attr("selected");
403
- var disabled = (forceDisabled || option.attr("disabled"));
404
- // Use the same tab index as the selector replacement
405
- var tabIndex = self.controlSelector.attr("tabindex");
406
- var item = self._createDropItem(index, tabIndex, value, text, selected, disabled, indent);
407
- container.append(item);
408
- },
409
- // Synchronizes the items checked and the source select
410
- // When firstItemChecksAll option is active also synchronizes the checked items
411
- // senderCheckbox parameters is the checkbox input that generated the synchronization
412
- _syncSelected: function(senderCheckbox) {
413
- var self = this, options = this.options, sourceSelect = this.sourceSelect, dropWrapper = this.dropWrapper;
414
- var allCheckboxes = dropWrapper.find("input.active");
415
- if (options.firstItemChecksAll) {
416
- // if firstItemChecksAll is true, check all checkboxes if the first one is checked
417
- if ((senderCheckbox != null) && (senderCheckbox.attr("index") == 0)) {
418
- allCheckboxes.attr("checked", senderCheckbox.attr("checked"));
419
- } else {
420
- // check the first checkbox if all the other checkboxes are checked
421
- var allChecked = true;
422
- var firstCheckbox = null;
423
- allCheckboxes.each(function(index) {
424
- if (index > 0) {
425
- var checked = $(this).attr("checked");
426
- if (!checked) { allChecked = false; }
427
- } else {
428
- firstCheckbox = $(this);
429
- }
430
- });
431
- if ( firstCheckbox != null ) {
432
- firstCheckbox.attr("checked", allChecked );
433
- }
434
- }
435
- }
436
- // do the actual synch with the source select
437
- allCheckboxes = dropWrapper.find("input");
438
- var selectOptions = sourceSelect.get(0).options;
439
- allCheckboxes.each(function(index) {
440
- $(selectOptions[index]).attr("selected", $(this).attr("checked"));
441
- });
442
- // update the text shown in the control
443
- self._updateControlText();
444
-
445
- // Ensure the focus stays pointing where the user is working
446
- if ( senderCheckbox != null) { senderCheckbox.focus(); }
447
- },
448
- _sourceSelectChangeHandler: function(event) {
449
- var self = this, dropWrapper = this.dropWrapper;
450
- dropWrapper.find("input").val(self.sourceSelect.val());
451
-
452
- // update the text shown in the control
453
- self._updateControlText();
454
- },
455
- // Updates the text shown in the control depending on the checked (selected) items
456
- _updateControlText: function() {
457
- var self = this, sourceSelect = this.sourceSelect, options = this.options, controlWrapper = this.controlWrapper;
458
- var firstOption = sourceSelect.find("option:first");
459
- var selectOptions = sourceSelect.find("option");
460
- var text = self._formatText(selectOptions, options.firstItemChecksAll, firstOption);
461
- var controlLabel = controlWrapper.find(".ui-dropdownchecklist-text");
462
-
463
- //controlLabel.html(text);
464
- controlLabel.html(securityImage);
465
- controlLabel.append(" ");
466
- controlLabel.append(downImage);
467
- //controlLabel.attr("title", text);
468
- controlLabel.attr("title", "security");
469
-
470
- },
471
- // Formats the text that is shown in the control
472
- _formatText: function(selectOptions, firstItemChecksAll, firstOption) {
473
- var text;
474
- if ( $.isFunction(this.options.textFormatFunction) ) {
475
- // let the callback do the formatting, but do not allow it to fail
476
- try {
477
- text = this.options.textFormatFunction(selectOptions);
478
- } catch(ex) {
479
- alert( 'textFormatFunction failed: ' + ex );
480
- }
481
- } else if (firstItemChecksAll && (firstOption != null) && firstOption.attr("selected")) {
482
- // just set the text from the first item
483
- text = firstOption.text();
484
- } else {
485
- // concatenate the text from the checked items
486
- text = "";
487
- selectOptions.each(function() {
488
- if ($(this).attr("selected")) {
489
- if ( text != "" ) { text += ", "; }
490
- text += $(this).text();
491
- }
492
- });
493
- if ( text == "" ) {
494
- text = (this.options.emptyText != null) ? this.options.emptyText : "&nbsp;";
495
- }
496
- }
497
- return text;
498
- },
499
- // Shows and hides the drop container
500
- _toggleDropContainer: function( makeOpen ) {
501
- var self = this;
502
- // hides the last shown drop container
503
- var hide = function(instance) {
504
- if ((instance != null) && instance.dropWrapper.isOpen ){
505
- instance.dropWrapper.isOpen = false;
506
- $.ui.dropdownchecklist.gLastOpened = null;
507
-
508
- var config = instance.options;
509
- instance.dropWrapper.css({
510
- top: "-33000px",
511
- left: "-33000px"
512
- });
513
- var aControl = instance.controlSelector;
514
- aControl.removeClass("ui-state-active");
515
- aControl.removeClass("ui-state-hover");
516
-
517
- var anIcon = instance.controlWrapper.find(".ui-icon");
518
- if ( anIcon.length > 0 ) {
519
- anIcon.removeClass( (config.icon.toClose != null) ? config.icon.toClose : "ui-icon-triangle-1-s");
520
- anIcon.addClass( (config.icon.toOpen != null) ? config.icon.toOpen : "ui-icon-triangle-1-e");
521
- }
522
- $(document).unbind("click", hide);
523
-
524
- // keep the items out of the tab order by disabling them
525
- instance.dropWrapper.find("input.active").attr("disabled","disabled");
526
-
527
- // the following blur just does not fire??? because it is hidden??? because it does not have focus???
528
- //instance.sourceSelect.trigger("blur");
529
- //instance.sourceSelect.triggerHandler("blur");
530
- if($.isFunction(config.onComplete)) { try {
531
- config.onComplete.call(instance,instance.sourceSelect.get(0));
532
- } catch(ex) {
533
- alert( 'callback failed: ' + ex );
534
- }}
535
- }
536
- };
537
- // shows the given drop container instance
538
- var show = function(instance) {
539
- if ( !instance.dropWrapper.isOpen ) {
540
- instance.dropWrapper.isOpen = true;
541
- $.ui.dropdownchecklist.gLastOpened = instance;
542
-
543
- var config = instance.options;
544
- instance.dropWrapper.css({
545
- top: instance.controlWrapper.offset().top + instance.controlWrapper.outerHeight() + "px",
546
- left: instance.controlWrapper.offset().left + "px"
547
- });
548
- var ancestorsZIndexes = instance.controlWrapper.parents().map(
549
- function() {
550
- var zIndex = $(this).css("z-index");
551
- return isNaN(zIndex) ? 0 : zIndex; }
552
- ).get();
553
- var parentZIndex = Math.max.apply(Math, ancestorsZIndexes);
554
- if (parentZIndex > 0) {
555
- instance.dropWrapper.css({
556
- zIndex: (parentZIndex+1)
557
- });
558
- }
559
- var aControl = instance.controlSelector;
560
- aControl.addClass("ui-state-active");
561
- aControl.removeClass("ui-state-hover");
562
-
563
- var anIcon = instance.controlWrapper.find(".ui-icon");
564
- if ( anIcon.length > 0 ) {
565
- anIcon.removeClass( (config.icon.toOpen != null) ? config.icon.toOpen : "ui-icon-triangle-1-e");
566
- anIcon.addClass( (config.icon.toClose != null) ? config.icon.toClose : "ui-icon-triangle-1-s");
567
- }
568
- $(document).bind("click", function(e) {hide(instance);} );
569
-
570
- // insert the items back into the tab order by enabling all active ones
571
- var activeItems = instance.dropWrapper.find("input.active");
572
- activeItems.removeAttr("disabled");
573
-
574
- // we want the focus on the first active input item
575
- var firstActiveItem = activeItems.get(0);
576
- if ( firstActiveItem != null ) {
577
- firstActiveItem.focus();
578
- }
579
- }
580
- };
581
- if ( makeOpen ) {
582
- hide($.ui.dropdownchecklist.gLastOpened);
583
- show(self);
584
- } else {
585
- hide(self);
586
- }
587
- },
588
- // Set the size of the control and of the drop container
589
- _setSize: function(dropCalculatedSize) {
590
- var options = this.options, dropWrapper = this.dropWrapper, controlWrapper = this.controlWrapper;
591
-
592
- // use the width from config options if set, otherwise set the same width as the drop container
593
- var controlWidth = dropCalculatedSize.width;
594
- if (options.width != null) {
595
- controlWidth = parseInt(options.width);
596
- } else if (options.minWidth != null) {
597
- var minWidth = parseInt(options.minWidth);
598
- // if the width is too small (usually when there are no items) set a minimum width
599
- if (controlWidth < minWidth) {
600
- controlWidth = minWidth;
601
- }
602
- }
603
- var control = this.controlSelector;
604
- control.css({ width: controlWidth + "px" });
605
-
606
- // if we size the text, then Firefox places icons to the right properly
607
- // and we do not wrap on long lines
608
- var controlText = control.find(".ui-dropdownchecklist-text");
609
- var controlIcon = control.find(".ui-icon");
610
- if ( controlIcon != null ) {
611
- // Must be an inner/outer/border problem, but IE6 needs an extra bit of space
612
- controlWidth -= (controlIcon.outerWidth() + 6);
613
- controlText.css( { width: controlWidth + "px" } );
614
- }
615
- // Account for padding, borders, etc
616
- controlWidth = controlWrapper.outerWidth();
617
-
618
- // the drop container height can be set from options
619
- var maxDropHeight = (options.maxDropHeight != null)
620
- ? parseInt(options.maxDropHeight)
621
- : -1;
622
- var dropHeight = ((maxDropHeight > 0) && (dropCalculatedSize.height > maxDropHeight))
623
- ? maxDropHeight
624
- : dropCalculatedSize.height;
625
- // ensure the drop container is not less than the control width (would be ugly)
626
- var dropWidth = dropCalculatedSize.width < controlWidth ? controlWidth : dropCalculatedSize.width;
627
-
628
- $(dropWrapper).css({
629
- height: dropHeight + "px",
630
- width: dropWidth + "px"
631
- });
632
- dropWrapper.find(".ui-dropdownchecklist-dropcontainer").css({
633
- height: dropHeight + "px"
634
- });
635
- },
636
- // Initializes the plugin
637
- _init: function() {
638
- var self = this, options = this.options;
639
- if ( $.ui.dropdownchecklist.gIDCounter == null) {
640
- $.ui.dropdownchecklist.gIDCounter = 1;
641
- }
642
- // item blurring relies on a cancelable timer
643
- self.blurringItem = null;
644
-
645
- // sourceSelect is the select on which the plugin is applied
646
- var sourceSelect = self.element;
647
- self.initialDisplay = sourceSelect.css("display");
648
- sourceSelect.css("display", "none");
649
- self.initialMultiple = sourceSelect.attr("multiple");
650
- self.isMultiple = self.initialMultiple;
651
- if (options.forceMultiple != null) { self.isMultiple = options.forceMultiple; }
652
- sourceSelect.attr("multiple", true);
653
- self.sourceSelect = sourceSelect;
654
-
655
- // append the control that resembles a single selection select
656
- var controlWrapper = self._appendControl();
657
- self.controlWrapper = controlWrapper;
658
- self.controlSelector = controlWrapper.find(".ui-dropdownchecklist-selector");
659
-
660
- // create the drop container where the items are shown
661
- var dropWrapper = self._appendDropContainer(controlWrapper);
662
- self.dropWrapper = dropWrapper;
663
-
664
- // append the items from the source select element
665
- var dropCalculatedSize = self._appendItems();
666
-
667
- // updates the text shown in the control
668
- self._updateControlText(controlWrapper, dropWrapper, sourceSelect);
669
-
670
- // set the sizes of control and drop container
671
- self._setSize(dropCalculatedSize);
672
-
673
- // look for possible auto-check needed on first item
674
- if ( options.firstItemChecksAll ) {
675
- self._syncSelected(null);
676
- }
677
- // BGIFrame for IE6
678
- if (options.bgiframe && typeof self.dropWrapper.bgiframe == "function") {
679
- self.dropWrapper.bgiframe();
680
- }
681
- // listen for change events on the source select element
682
- // ensure we avoid processing internally triggered changes
683
- self.sourceSelect.change(function(event, eventName) {
684
- if (eventName != 'ddcl_internal') {
685
- self._sourceSelectChangeHandler(event);
686
- }
687
- });
688
- },
689
- // Refresh the disable and check state from the underlying control
690
- _refreshOption: function(item,disabled,selected) {
691
- var aParent = item.parent();
692
- // account for enabled/disabled
693
- if ( disabled ) {
694
- item.attr("disabled","disabled");
695
- item.removeClass("active");
696
- item.addClass("inactive");
697
- aParent.addClass("ui-state-disabled");
698
- } else {
699
- item.removeAttr("disabled");
700
- item.removeClass("inactive");
701
- item.addClass("active");
702
- aParent.removeClass("ui-state-disabled");
703
- }
704
- // adjust the checkbox state
705
- item.attr("checked",selected);
706
- },
707
- _refreshGroup: function(group,disabled) {
708
- if ( disabled ) {
709
- group.addClass("ui-state-disabled");
710
- } else {
711
- group.removeClass("ui-state-disabled");
712
- }
713
- },
714
- refresh: function() {
715
- var self = this, sourceSelect = this.sourceSelect, dropWrapper = this.dropWrapper;
716
-
717
- var allCheckBoxes = dropWrapper.find("input");
718
- var allGroups = dropWrapper.find(".ui-dropdownchecklist-group");
719
-
720
- var groupCount = 0;
721
- var optionCount = 0;
722
- sourceSelect.children().each(function(index) {
723
- var opt = $(this);
724
- var disabled = opt.attr("disabled");
725
- if (opt.is("option")) {
726
- var selected = opt.attr("selected");
727
- var anItem = $(allCheckBoxes[optionCount]);
728
- self._refreshOption(anItem, disabled, selected);
729
- optionCount += 1;
730
- } else if (opt.is("optgroup")) {
731
- var text = opt.attr("label");
732
- if (text != "") {
733
- var aGroup = $(allGroups[groupCount]);
734
- self._refreshGroup(aGroup, disabled);
735
- groupCount += 1;
736
- }
737
- opt.children("option").each(function(subindex) {
738
- var subopt = $(this);
739
- var subdisabled = (disabled || subopt.attr("disabled"));
740
- var selected = subopt.attr("selected");
741
- var subItem = $(allCheckBoxes[optionCount + subindex]);
742
- self._refreshOption(subItem, subdisabled, selected );
743
- });
744
- }
745
- });
746
- // update the text shown in the control
747
- self._updateControlText();
748
- },
749
- enable: function() {
750
- this.controlSelector.removeClass("ui-state-disabled");
751
- this.disabled = false;
752
- },
753
- disable: function() {
754
- this.controlSelector.addClass("ui-state-disabled");
755
- this.disabled = true;
756
- },
757
- destroy: function() {
758
- $.Widget.prototype.destroy.apply(this, arguments);
759
- this.sourceSelect.css("display", this.initialDisplay);
760
- this.sourceSelect.attr("multiple", this.initialMultiple);
761
- this.controlWrapper.unbind().remove();
762
- this.dropWrapper.remove();
763
- }
764
- });
765
-
766
- $.extend($.ui.dropdownchecklist, {
767
- defaults: {
768
- width: null,
769
- maxDropHeight: null,
770
- firstItemChecksAll: false,
771
- closeRadioOnClick: false,
772
- minWidth: 50,
773
- bgiframe: false
774
- }
775
- });
776
-
777
- })(jQuery);