social_stream 0.3.6 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +6 -0
  3. data/app/controllers/api_controller.rb +39 -0
  4. data/app/controllers/frontpage_controller.rb +2 -0
  5. data/app/controllers/groups_controller.rb +8 -2
  6. data/app/controllers/likes_controller.rb +9 -29
  7. data/app/controllers/logos_controller.rb +21 -0
  8. data/app/controllers/mailbox/conversation_controller.rb +110 -0
  9. data/app/controllers/mailbox_controller.rb +35 -0
  10. data/app/controllers/posts_controller.rb +2 -0
  11. data/app/controllers/profiles_controller.rb +3 -0
  12. data/app/controllers/ties_controller.rb +10 -0
  13. data/app/controllers/users_controller.rb +5 -5
  14. data/app/helpers/groups_helper.rb +0 -2
  15. data/app/helpers/subjects_helper.rb +11 -0
  16. data/app/helpers/ties_helper.rb +1 -1
  17. data/app/models/activity.rb +24 -1
  18. data/app/models/activity_object.rb +10 -0
  19. data/app/models/activity_object_activity.rb +10 -0
  20. data/app/models/actor.rb +87 -60
  21. data/app/models/group.rb +10 -4
  22. data/app/models/like.rb +34 -0
  23. data/app/models/logo.rb +51 -0
  24. data/app/models/permission.rb +7 -5
  25. data/app/models/profile.rb +24 -8
  26. data/app/models/tie.rb +15 -2
  27. data/app/models/user.rb +2 -2
  28. data/app/views/activities/_activities.html.erb +1 -1
  29. data/app/views/activities/_new.html.erb +12 -7
  30. data/app/views/api/activity_atom_feed.atom.builder +40 -0
  31. data/app/views/comments/_new.html.erb +1 -1
  32. data/app/views/devise/passwords/edit.html.erb +21 -0
  33. data/app/views/devise/passwords/new.html.erb +16 -0
  34. data/app/views/devise/registrations/new.html.erb +35 -19
  35. data/app/views/devise/sessions/new.html.erb +30 -0
  36. data/app/views/frontpage/_header.html.erb +18 -20
  37. data/app/views/frontpage/_search.html.erb +13 -0
  38. data/app/views/frontpage/_sponsor.html.erb +12 -13
  39. data/app/views/frontpage/index.html.erb +88 -80
  40. data/app/views/groups/_group.html.erb +2 -6
  41. data/app/views/groups/_index.html.erb +22 -25
  42. data/app/views/groups/_logo.html.erb +1 -1
  43. data/app/views/groups/_new.html.erb +56 -39
  44. data/app/views/groups/_profile.html.erb +142 -0
  45. data/app/views/groups/_sidebar_index.html.erb +73 -0
  46. data/app/views/groups/{_middle_show.html.erb → _sidebar_show.html.erb} +2 -2
  47. data/app/views/groups/_tabs.html.erb +37 -31
  48. data/app/views/groups/_toolbar_show.html.erb +12 -0
  49. data/app/views/groups/edit.html.erb +136 -0
  50. data/app/views/groups/index.html.erb +47 -46
  51. data/app/views/groups/new.html.erb +2 -0
  52. data/app/views/groups/show.html.erb +9 -4
  53. data/app/views/groups/update.js.erb +39 -0
  54. data/app/views/home/_groups.html.erb +4 -5
  55. data/app/views/{users/_middle_index.html.erb → home/_sidebar.html.erb} +0 -2
  56. data/app/views/home/index.html.erb +3 -5
  57. data/app/views/layouts/_footer.html.erb +4 -0
  58. data/app/views/layouts/_header.erb +29 -37
  59. data/app/views/layouts/_representation.html.erb +2 -2
  60. data/app/views/layouts/application.html.erb +47 -74
  61. data/app/views/layouts/frontpage.html.erb +27 -48
  62. data/app/views/layouts/test.html +44 -0
  63. data/app/views/likes/create.js.erb +1 -1
  64. data/app/views/likes/destroy.js.erb +1 -1
  65. data/app/views/logos/_form.html.erb +33 -0
  66. data/app/views/logos/_precrop.html.erb +48 -0
  67. data/app/views/logos/edit.html.erb +6 -0
  68. data/app/views/logos/index.html.erb +27 -0
  69. data/app/views/logos/new.html.erb +20 -0
  70. data/app/views/logos/show.html.erb +5 -0
  71. data/app/views/mailbox/_conversation.html.erb +23 -0
  72. data/app/views/mailbox/_conversations.html.erb +9 -0
  73. data/app/views/mailbox/_index.html.erb +16 -0
  74. data/app/views/{messages → mailbox}/_location.html.erb +0 -0
  75. data/app/views/mailbox/_menu_options.html.erb +19 -0
  76. data/app/views/mailbox/_show.html.erb +15 -0
  77. data/app/views/mailbox/conversation/_conversation.html.erb +40 -0
  78. data/app/views/mailbox/conversation/_form.html.erb +54 -0
  79. data/app/views/mailbox/conversation/_location.html.erb +3 -0
  80. data/app/views/mailbox/conversation/_new.html.erb +19 -0
  81. data/app/views/mailbox/conversation/_show.html.erb +27 -0
  82. data/app/views/mailbox/conversation/edit.html.erb +6 -0
  83. data/app/views/mailbox/conversation/new.html.erb +10 -0
  84. data/app/views/mailbox/conversation/new.js.erb +1 -0
  85. data/app/views/mailbox/conversation/show.html.erb +1 -0
  86. data/app/views/{messages → mailbox}/edit.html.erb +0 -0
  87. data/app/views/mailbox/index.html.erb +10 -0
  88. data/app/views/{messages → mailbox}/index.js.erb +0 -0
  89. data/app/views/mailbox/new.html.erb +14 -0
  90. data/app/views/mailbox/show.html.erb +11 -0
  91. data/app/views/mailbox/show.js.erb +1 -0
  92. data/app/views/menu/_group.html.erb +15 -0
  93. data/{lib/generators/social_stream/templates/public/stylesheets/users.css → app/views/menu/_home_user.html.erb} +0 -0
  94. data/app/views/menu/_options.html.erb +11 -0
  95. data/app/views/menu/_services.html.erb +11 -0
  96. data/app/views/menu/_tiesGroup.html.erb +14 -0
  97. data/app/views/menu/_tiesUser.html.erb +11 -0
  98. data/app/views/menu/_user.html.erb +15 -0
  99. data/app/views/profiles/show.html.erb +1 -0
  100. data/app/views/subjects/_contacts.html.erb +8 -9
  101. data/app/views/subjects/_menu_options.html.erb +14 -0
  102. data/app/views/subjects/_toolbar.html.erb +15 -0
  103. data/app/views/ties/_new.html.erb +3 -2
  104. data/app/views/ties/_pendings.html.erb +7 -12
  105. data/app/views/ties/_suggestions.html.erb +12 -12
  106. data/app/views/ties/_tie.html.erb +9 -7
  107. data/app/views/ties/new.js.erb +1 -2
  108. data/app/views/users/_groups.html.erb +4 -3
  109. data/app/views/users/_index.html.erb +24 -22
  110. data/app/views/users/_logo.html.erb +1 -1
  111. data/app/views/users/_profile.html.erb +167 -164
  112. data/app/views/users/_sidebar_index.html.erb +6 -0
  113. data/app/views/users/{_middle_show.html.erb → _sidebar_show.html.erb} +0 -0
  114. data/app/views/users/_toolbar_show.html.erb +17 -0
  115. data/app/views/users/edit.html.erb +193 -165
  116. data/app/views/users/index.html.erb +34 -47
  117. data/{spec/dummy/public/stylesheets/.gitkeep → app/views/users/info.html.erb} +0 -0
  118. data/app/views/users/show.html.erb +4 -4
  119. data/app/views/users/show.xml.builder +28 -0
  120. data/app/views/users/update.js.erb +3 -1
  121. data/config/locales/en.yml +88 -9
  122. data/config/routes.rb +30 -14
  123. data/lib/generators/social_stream/install_generator.rb +8 -2
  124. data/lib/generators/social_stream/templates/migration.rb +75 -81
  125. data/lib/generators/social_stream/templates/public/images/{frontpage/facebook.png → btn/1-facebook.png} +0 -0
  126. data/lib/generators/social_stream/templates/public/images/btn/edit.png +0 -0
  127. data/lib/generators/social_stream/templates/public/images/btn/facebook.png +0 -0
  128. data/lib/generators/social_stream/templates/public/images/btn/linkedin.png +0 -0
  129. data/lib/generators/social_stream/templates/public/images/btn/twitter-follow-icon.png +0 -0
  130. data/lib/generators/social_stream/templates/public/images/btn/twitter.png +0 -0
  131. data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.png +0 -0
  132. data/lib/generators/social_stream/templates/public/images/frontpage/meet.png +0 -0
  133. data/lib/generators/social_stream/templates/public/images/frontpage/share.png +0 -0
  134. data/lib/generators/social_stream/templates/public/images/icons/favicon.ico +0 -0
  135. data/lib/generators/social_stream/templates/public/images/logo.png +0 -0
  136. data/lib/generators/social_stream/templates/public/images/w3c_css.png +0 -0
  137. data/lib/generators/social_stream/templates/public/images/w3c_xhtml.png +0 -0
  138. data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js +3 -3
  139. data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-personalized-1.5.2.packed.js +1 -0
  140. data/lib/generators/social_stream/templates/public/javascripts/jquery-ui.min.js +3 -3
  141. data/lib/generators/social_stream/templates/public/javascripts/jquery.Jcrop.min.js +163 -0
  142. data/lib/generators/social_stream/templates/public/javascripts/jquery.fcbkcomplete.min.js +76 -76
  143. data/lib/generators/social_stream/templates/public/javascripts/jquery.min.js +156 -5
  144. data/lib/generators/social_stream/templates/public/javascripts/main.js +9 -0
  145. data/lib/generators/social_stream/templates/public/javascripts/menu-collapsed.js +42 -0
  146. data/lib/generators/social_stream/templates/public/javascripts/menu.js +1 -1
  147. data/lib/generators/social_stream/templates/public/javascripts/rails.js +30 -29
  148. data/lib/generators/social_stream/templates/public/javascripts/superfish.js +121 -0
  149. data/lib/generators/social_stream/templates/public/stylesheets/default/activities.css +72 -0
  150. data/lib/generators/social_stream/templates/public/stylesheets/default/base.css +150 -0
  151. data/lib/generators/social_stream/templates/public/stylesheets/default/carousel.css +23 -0
  152. data/lib/generators/social_stream/templates/public/stylesheets/{fcbkComplete.css → default/fcbkComplete.css} +2 -2
  153. data/lib/generators/social_stream/templates/public/stylesheets/default/footer.css +25 -0
  154. data/lib/generators/social_stream/templates/public/stylesheets/default/frontpage.css +54 -0
  155. data/lib/generators/social_stream/templates/public/stylesheets/default/header.css +44 -0
  156. data/lib/generators/social_stream/templates/public/stylesheets/default/home.css +44 -0
  157. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  158. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_flat_75_ffffff_40x100.png +0 -0
  159. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  160. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_65_ffffff_1x400.png +0 -0
  161. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_75_dadada_1x400.png +0 -0
  162. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  163. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  164. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  165. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_222222_256x240.png +0 -0
  166. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_2e83ff_256x240.png +0 -0
  167. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_454545_256x240.png +0 -0
  168. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_888888_256x240.png +0 -0
  169. data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_cd0a0a_256x240.png +0 -0
  170. data/lib/generators/social_stream/templates/public/stylesheets/default/jqcloud.css +15 -0
  171. data/lib/generators/social_stream/templates/public/stylesheets/{jquery-ui.css → default/jquery-ui.css} +0 -0
  172. data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.Jcrop.css +35 -0
  173. data/lib/generators/social_stream/templates/public/stylesheets/default/menu.css +33 -0
  174. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  175. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  176. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  177. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  178. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  179. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  180. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  181. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  182. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_222222_256x240.png +0 -0
  183. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_2e83ff_256x240.png +0 -0
  184. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_454545_256x240.png +0 -0
  185. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_888888_256x240.png +0 -0
  186. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_cd0a0a_256x240.png +0 -0
  187. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/jquery-ui-1.7.3.custom.css +0 -0
  188. data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/jquery-ui-1.8.4.custom.css +0 -0
  189. data/lib/social_stream.rb +11 -2
  190. data/lib/social_stream/ability.rb +21 -3
  191. data/lib/social_stream/models/object.rb +5 -3
  192. data/lib/social_stream/models/subject.rb +50 -31
  193. data/lib/social_stream/rails.rb +5 -0
  194. data/lib/social_stream/test_helpers.rb +11 -0
  195. data/lib/social_stream/test_helpers/controllers.rb +64 -0
  196. data/lib/social_stream/version.rb +1 -1
  197. data/lib/tasks/db/populate.rake +110 -25
  198. data/social_stream.gemspec +7 -1
  199. data/spec/controllers/contacts_controller_spec.rb +1 -1
  200. data/spec/controllers/groups_controller_spec.rb +8 -0
  201. data/spec/controllers/home_controller_spec.rb +15 -0
  202. data/spec/controllers/likes_controller_spec.rb +29 -0
  203. data/spec/controllers/posts_controller_spec.rb +41 -0
  204. data/spec/controllers/profiles_controller_spec.rb +46 -0
  205. data/spec/controllers/users_controller_spec.rb +2 -2
  206. data/spec/dummy/.gitignore +4 -0
  207. data/spec/dummy/config/database.yml +8 -0
  208. data/spec/dummy/config/environments/test_pg.rb +35 -0
  209. data/spec/dummy/config/routes.rb +2 -0
  210. data/spec/factories/group.rb +1 -1
  211. data/spec/integration/navigation_spec.rb +1 -1
  212. data/spec/models/actor_spec.rb +4 -4
  213. data/spec/models/user_spec.rb +2 -2
  214. data/spec/spec_helper.rb +1 -1
  215. data/spec/support/db.rb +7 -0
  216. metadata +198 -116
  217. data/app/controllers/messages_controller.rb +0 -3
  218. data/app/models/message.rb +0 -2
  219. data/app/views/groups/_middle_index.html.erb +0 -74
  220. data/app/views/groups/_right_index.html.erb +0 -19
  221. data/app/views/groups/_right_show.html.erb +0 -8
  222. data/app/views/home/_middle.html.erb +0 -4
  223. data/app/views/home/_options.html.erb +0 -8
  224. data/app/views/home/_right.html.erb +0 -17
  225. data/app/views/messages/_form.html.erb +0 -24
  226. data/app/views/messages/_index.html.erb +0 -24
  227. data/app/views/messages/_message.html.erb +0 -17
  228. data/app/views/messages/_messages.html.erb +0 -2
  229. data/app/views/messages/index.html.erb +0 -1
  230. data/app/views/messages/new.html.erb +0 -14
  231. data/app/views/messages/show.html.erb +0 -21
  232. data/app/views/users/_menu.html.erb +0 -7
  233. data/app/views/users/_options.html.erb +0 -5
  234. data/app/views/users/_right_index.html.erb +0 -19
  235. data/app/views/users/_right_show.html.erb +0 -14
  236. data/lib/generators/social_stream/templates/public/images/btn/btn_share.png +0 -0
  237. data/lib/generators/social_stream/templates/public/images/favicon.ico +0 -0
  238. data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.gif +0 -0
  239. data/lib/generators/social_stream/templates/public/images/frontpage/meet.gif +0 -0
  240. data/lib/generators/social_stream/templates/public/images/frontpage/share.gif +0 -0
  241. data/lib/generators/social_stream/templates/public/javascripts/hoverIntent.js +0 -84
  242. data/lib/generators/social_stream/templates/public/stylesheets/activities.css +0 -235
  243. data/lib/generators/social_stream/templates/public/stylesheets/base.css +0 -68
  244. data/lib/generators/social_stream/templates/public/stylesheets/boxy.css +0 -49
  245. data/lib/generators/social_stream/templates/public/stylesheets/browse.css +0 -162
  246. data/lib/generators/social_stream/templates/public/stylesheets/carousel.css +0 -57
  247. data/lib/generators/social_stream/templates/public/stylesheets/edit_user.css +0 -104
  248. data/lib/generators/social_stream/templates/public/stylesheets/frontpage.css +0 -708
  249. data/lib/generators/social_stream/templates/public/stylesheets/header.css +0 -116
  250. data/lib/generators/social_stream/templates/public/stylesheets/home.css +0 -121
  251. data/lib/generators/social_stream/templates/public/stylesheets/index.css +0 -625
  252. data/lib/generators/social_stream/templates/public/stylesheets/jqcloud.css +0 -62
  253. data/lib/generators/social_stream/templates/public/stylesheets/menu.css +0 -83
  254. data/lib/generators/social_stream/templates/public/stylesheets/message.css +0 -46
  255. data/lib/generators/social_stream/templates/public/stylesheets/middle.css +0 -113
  256. data/lib/generators/social_stream/templates/public/stylesheets/right.css +0 -58
  257. data/lib/generators/social_stream/templates/public/stylesheets/social_stream.css +0 -78
  258. data/lib/generators/social_stream/templates/public/stylesheets/ui.dropdownchecklist.css +0 -21
  259. data/spec/dummy/db/.gitignore +0 -2
  260. data/spec/dummy/log/.gitignore +0 -1
  261. data/spec/dummy/public/javascripts/application.js +0 -2
  262. data/spec/dummy/public/javascripts/controls.js +0 -965
  263. data/spec/dummy/public/javascripts/dragdrop.js +0 -974
  264. data/spec/dummy/public/javascripts/effects.js +0 -1123
  265. data/spec/dummy/public/javascripts/prototype.js +0 -6001
  266. data/spec/dummy/public/javascripts/rails.js +0 -175
@@ -1,3 +0,0 @@
1
- class MessagesController < InheritedResources::Base
2
- respond_to :html, :xml, :js
3
- end
@@ -1,2 +0,0 @@
1
- class Message < ActiveRecord::Base
2
- end
@@ -1,74 +0,0 @@
1
- <% content_for :head, stylesheet_link_tag("jqcloud") %>
2
-
3
- <div class="space_center">
4
- </div>
5
- <div class="middle_box">
6
- <div class="middle_box_header">
7
- <%= image_tag('btn/btn_tag.png', :class => "middle_box_picture_icon") %>
8
- <div class="middle_box_text_header"><%= t 'group.cloud' %></div>
9
- <div class="title_righ">
10
- </div>
11
- </div>
12
-
13
- <div id="wordcloud"></div>
14
-
15
- </div>
16
-
17
- <% if user_signed_in? %>
18
- <div class="space_center"></div>
19
- <%= render :partial => "ties/suggestions" %>
20
- <div class="space_center"></div>
21
- <%= render :partial => 'ties/pendings' %>
22
-
23
- <%= javascript_include_tag "jqcloud-0.1.3.min.js" %>
24
- <% end %>
25
-
26
- <script type="text/javascript">
27
- var word_list = new Array(
28
- {text: "Lorem", weight: 13, url: "https://github.com/DukeLeNoir/jQCloud"},
29
- {text: "Ipsum", weight: 10.5, url: "http://jquery.com/"},
30
- {text: "Dolor", weight: 9.4},
31
- {text: "Sit", weight: 8},
32
- {text: "Amet", weight: 6.2},
33
- {text: "Consectetur", weight: 5},
34
- {text: "Adipiscing", weight: 5},
35
- {text: "Elit", weight: 5},
36
- {text: "Nam et", weight: 5},
37
- {text: "Leo", weight: 4},
38
- {text: "Sapien", weight: 4, url: "http://www.lucaongaro.eu/"},
39
- {text: "Pellentesque", weight: 3},
40
- {text: "habitant", weight: 3},
41
- {text: "morbi", weight: 3},
42
- {text: "tristisque", weight: 3},
43
- {text: "senectus", weight: 3},
44
- {text: "et netus", weight: 3},
45
- {text: "et malesuada", weight: 3},
46
- {text: "fames", weight: 2},
47
- {text: "ac turpis", weight: 2},
48
- {text: "egestas", weight: 2},
49
- {text: "Aenean", weight: 2},
50
- {text: "vestibulum", weight: 2},
51
- {text: "elit", weight: 2},
52
- {text: "sit amet", weight: 2},
53
- {text: "metus", weight: 2},
54
- {text: "adipiscing", weight: 2},
55
- {text: "ut ultrices", weight: 2},
56
- {text: "justo", weight: 1},
57
- {text: "dictum", weight: 1},
58
- {text: "Ut et leo", weight: 1},
59
- {text: "metus", weight: 1},
60
- {text: "at molestie", weight: 1},
61
- {text: "purus", weight: 1},
62
- {text: "Curabitur", weight: 1},
63
- {text: "diam", weight: 1},
64
- {text: "dui", weight: 1},
65
- {text: "ullamcorper", weight: 1},
66
- {text: "id vuluptate ut", weight: 1},
67
- {text: "mattis", weight: 1},
68
- {text: "et nulla", weight: 1},
69
- {text: "Sed", weight: 1}
70
- );
71
- $(document).ready(function() {
72
- $("#wordcloud").jQCloud(word_list);
73
- });
74
- </script>
@@ -1,19 +0,0 @@
1
- <% if user_signed_in? %>
2
- <div id="logo">
3
- <b><%= link_to(current_subject.name, current_subject)%></b><br/>
4
- <%= link_to(image_tag(current_subject.logo.url(:profile) , :alt => current_subject.name ), current_subject ) %>
5
- </div>
6
- <div class="space_center">
7
- </div>
8
- <div class="menu_header"><b><%=t('menu.options')%></b>
9
- </div>
10
- <div id="menu_lateral">
11
- <%= render :partial => "home/options" %>
12
- </div>
13
- <div class="space_center">
14
- </div>
15
- <div class="space_center">
16
- </div>
17
- <div class="space_center">
18
- </div>
19
- <% end %>
@@ -1,8 +0,0 @@
1
- <%= ties_to(@group) %>
2
-
3
- <%= render :partial => 'logo' %>
4
- <%= render :partial => 'tabs' %>
5
- <div class="space_center">
6
- </div>
7
-
8
- <%= render :partial => 'subjects/contacts', :locals => { :subject => @group } %>
@@ -1,4 +0,0 @@
1
- <div class="space_center"></div>
2
- <%= render :partial => "ties/suggestions" %>
3
- <div class="space_center"></div>
4
- <%= render :partial => 'ties/pendings' %>
@@ -1,8 +0,0 @@
1
- <ul class="menu noaccordion">
2
- <li>
3
- <%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('inbox.one'), messages_path, :remote => true) %>
4
- </li>
5
- <li>
6
- <%= link_to( image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.new.action'), new_group_path, :remote => true) %>
7
- </li>
8
- </ul>
@@ -1,17 +0,0 @@
1
- <div id="logo">
2
- <b><%= link_to(current_subject.name, current_subject)%></b><br/>
3
- <%= link_to(image_tag(current_subject.logo.url(:profile) , :alt => current_subject.name ), current_subject ) %>
4
- </div>
5
- <div class="space_center">
6
- </div>
7
- <div class="menu_header"><b><%=t('menu.options')%></b>
8
- </div>
9
- <div id="menu_lateral">
10
- <%= render :partial => "home/options" %>
11
- </div>
12
- <div class="space_center">
13
- </div>
14
- <div class="space_center">
15
- </div>
16
- <div class="space_center">
17
- </div>
@@ -1,24 +0,0 @@
1
- <%= form_for(@message) do |f| %>
2
- <% if @message.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(@message.errors.count, "error") %> prohibited this message from being saved:</h2>
5
-
6
- <ul>
7
- <% @message.errors.full_messages.each do |msg| %>
8
- <li><%= msg %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <%= f.hidden_field :sender_id %>
15
- <%= f.hidden_field :receiver_id %>
16
-
17
- <div class="field">
18
- <%= f.label :text %><br />
19
- <%= f.text_area :text %>
20
- </div>
21
- <div class="actions">
22
- <%= f.submit %>
23
- </div>
24
- <% end %>
@@ -1,24 +0,0 @@
1
- <% content_for :middle do %>
2
- <%= render :partial => 'home/middle' %>
3
- <% end %>
4
-
5
- <% content_for :right do %>
6
- <%= render :partial => "home/right" %>
7
- <% end %>
8
-
9
- <%= render :partial => 'location' %>
10
-
11
- <br class="clearfloat" />
12
- <div class="space_center">
13
- </div>
14
-
15
- <div id="new_message" ><%= link_to 'New Message', new_message_path %></div>
16
- <div class="space_center">
17
- </div>
18
- <div class="space_center">
19
- </div>
20
-
21
-
22
- <div id="messages">
23
- <%= render :partial => 'messages' %>
24
- </div>
@@ -1,17 +0,0 @@
1
- <%= div_for (message) do %>
2
- <div class="actor_logo">
3
- <%= link_to image_tag(message.text,
4
- :alt => message.text),
5
- message %>
6
- </div>
7
- <div class="activity_content_message">
8
- <div class="actor_name_message">
9
- <%= link_to(message.text, message) %>
10
- </div>
11
- <div class="option_msg">
12
- <div class="edit_message"><%= link_to ( image_tag('btn/btn_edit.png', :class=>"btn_config"), edit_message_path(message)) %></div>
13
- <div class="detele_message"><%= link_to ( image_tag('btn/btn_delete.png', :class=>"btn_config"), message, :confirm => 'Are you sure?', :method => :delete) %></div>
14
- </div>
15
- </div>
16
-
17
- <% end %>
@@ -1,2 +0,0 @@
1
- <% content_for :head, stylesheet_link_tag("message", :media => "screen, projection") %>
2
- <%= render @messages %>
@@ -1 +0,0 @@
1
- <%= render :partial => 'index' %>
@@ -1,14 +0,0 @@
1
- <% content_for :middle do %>
2
- <%= render :partial => 'home/middle' %>
3
- <% end %>
4
-
5
- <% content_for :right do %>
6
- <%= render :partial => "home/right" %>
7
- <% end %>
8
-
9
-
10
- <h1>New message</h1>
11
-
12
- <%= render 'form' %>
13
-
14
- <%= link_to 'Back', messages_path %>
@@ -1,21 +0,0 @@
1
-
2
- <p id="notice"><%= notice %></p>
3
-
4
- <p>
5
- <b>Sender:</b>
6
- <%= @message.sender %>
7
- </p>
8
-
9
- <p>
10
- <b>Receiver:</b>
11
- <%= @message.receiver %>
12
- </p>
13
-
14
- <p>
15
- <b>Text:</b>
16
- <%= @message.text %>
17
- </p>
18
-
19
-
20
- <%= link_to 'Edit', edit_message_path(@message) %> |
21
- <%= link_to 'Back', messages_path %>
@@ -1,7 +0,0 @@
1
- <div class="menu_header"><b><%=t('menu.options')%></b>
2
- </div>
3
- <div id="menu_lateral">
4
- <%= render :partial => "options" %>
5
- </div>
6
- <div class="space_center">
7
- </div>
@@ -1,5 +0,0 @@
1
- <ul class="menu noaccordion">
2
- <li>
3
- <%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('inbox.one'), '#') %>
4
- </li>
5
- </ul>
@@ -1,19 +0,0 @@
1
- <% if user_signed_in? %>
2
- <div id="logo">
3
- <b><%= link_to(current_subject.name, current_subject)%></b><br/>
4
- <%= link_to(image_tag(current_subject.logo.url(:profile) , :alt => current_subject.name ), current_subject ) %>
5
- </div>
6
- <div class="space_center">
7
- </div>
8
- <div class="menu_header"><b><%=t('menu.options')%></b>
9
- </div>
10
- <div id="menu_lateral">
11
- <%= render :partial => "home/options" %>
12
- </div>
13
- <div class="space_center">
14
- </div>
15
- <div class="space_center">
16
- </div>
17
- <div class="space_center">
18
- </div>
19
- <% end %>
@@ -1,14 +0,0 @@
1
- <%= render :partial => 'logo' %>
2
- <div class="space_center">
3
- </div>
4
- <%= render :partial => 'menu' %>
5
- <div class="space_center">
6
- </div>
7
-
8
- <%= render :partial => 'subjects/contacts', :locals => { :subject => @user } %>
9
-
10
- <div class="space_center">
11
- </div>
12
- <div class="space_center">
13
- </div>
14
-
@@ -1,84 +0,0 @@
1
- (function($){
2
- /* hoverIntent by Brian Cherne */
3
- $.fn.hoverIntent = function(f,g) {
4
- // default configuration options
5
- var cfg = {
6
- sensitivity: 7,
7
- interval: 100,
8
- timeout: 0
9
- };
10
- // override configuration options with user supplied object
11
- cfg = $.extend(cfg, g ? { over: f, out: g } : f );
12
-
13
- // instantiate variables
14
- // cX, cY = current X and Y position of mouse, updated by mousemove event
15
- // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
16
- var cX, cY, pX, pY;
17
-
18
- // A private function for getting mouse position
19
- var track = function(ev) {
20
- cX = ev.pageX;
21
- cY = ev.pageY;
22
- };
23
-
24
- // A private function for comparing current and previous mouse position
25
- var compare = function(ev,ob) {
26
- ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
27
- // compare mouse positions to see if they've crossed the threshold
28
- if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
29
- $(ob).unbind("mousemove",track);
30
- // set hoverIntent state to true (so mouseOut can be called)
31
- ob.hoverIntent_s = 1;
32
- return cfg.over.apply(ob,[ev]);
33
- } else {
34
- // set previous coordinates for next time
35
- pX = cX; pY = cY;
36
- // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
37
- ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
38
- }
39
- };
40
-
41
- // A private function for delaying the mouseOut function
42
- var delay = function(ev,ob) {
43
- ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
44
- ob.hoverIntent_s = 0;
45
- return cfg.out.apply(ob,[ev]);
46
- };
47
-
48
- // A private function for handling mouse 'hovering'
49
- var handleHover = function(e) {
50
- // next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
51
- var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
52
- while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
53
- if ( p == this ) { return false; }
54
-
55
- // copy objects to be passed into t (required for event object to be passed in IE)
56
- var ev = jQuery.extend({},e);
57
- var ob = this;
58
-
59
- // cancel hoverIntent timer if it exists
60
- if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
61
-
62
- // else e.type == "onmouseover"
63
- if (e.type == "mouseover") {
64
- // set "previous" X and Y position based on initial entry point
65
- pX = ev.pageX; pY = ev.pageY;
66
- // update "current" X and Y position based on mousemove
67
- $(ob).bind("mousemove",track);
68
- // start polling interval (self-calling timeout) to compare mouse coordinates over time
69
- if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
70
-
71
- // else e.type == "onmouseout"
72
- } else {
73
- // unbind expensive mousemove event
74
- $(ob).unbind("mousemove",track);
75
- // if hoverIntent state is true, then call the mouseOut function after the specified delay
76
- if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
77
- }
78
- };
79
-
80
- // bind the function to the two event listeners
81
- return this.mouseover(handleHover).mouseout(handleHover);
82
- };
83
-
84
- })(jQuery);
@@ -1,235 +0,0 @@
1
- /****************** WALL - ACTIVITIES *********************/
2
- #wrapper_activities {
3
-
4
- }
5
-
6
- #wall{
7
- text-align:center;
8
- }
9
-
10
- /****************** WALL - HEADER *********************/
11
- #wrapper_activities_header {
12
- padding-top: 5px;
13
- padding-bottom: 5px;
14
- background-color: #deeff8;
15
- }
16
-
17
- #activities_title {
18
- vertical-align: top;
19
- margin-left: 10px;
20
- font-weight: bold;
21
- }
22
-
23
- #activities_header {
24
- width: 100%;
25
- margin-bottom: 5px;
26
- text-align: center;
27
- padding-top: 5px;
28
- }
29
-
30
- #input_activities {
31
- border-color: #0656a4;
32
- color: #2A3890;
33
- padding: 5px 5px 5px 5px;
34
- border:1px solid #BDC7D8;
35
- width:95%;
36
- }
37
-
38
- #activities_share_btn {
39
- text-align: right;
40
- padding: 5px 16px 0px 10px;
41
- vertical-align: middle;
42
- }
43
-
44
- #securities{
45
- display:inline-block;
46
- text-align:left;
47
- }
48
-
49
- /******************* WALL - ACTIVITY ***************/
50
- .activity {
51
- text-align:left;
52
- display: block;
53
- vertical-align: top;
54
- padding: 10px 5px 0px 0px;
55
- display: inline-block;
56
- color: #000;
57
- width: 100%;
58
- font-size: 13px;
59
- color: #2A3890;
60
- }
61
-
62
- .actor_logo {
63
- width: 38px;
64
- padding: 8px 0px 8px 5px;
65
- display: inline-block;
66
- vertical-align: top;
67
- }
68
-
69
- .activity_content {
70
- padding: 8px 0px 0px 0px;
71
- display: inline-block;
72
- color: #000;
73
- width: 90%;
74
- }
75
-
76
-
77
- .actor_name {
78
- font-weight: bold;
79
- color: #2A3890;
80
- font-size: 13px;
81
- }
82
-
83
- .post a {
84
- color: #2A3890;
85
- }
86
-
87
- /***************** ACTIVITY OPTIONS ***/
88
- .activity_options {
89
- color: #2A3890;
90
- font-size: 10px;
91
- display: inline-block;
92
- }
93
-
94
- .actor_name-activity_objects{
95
- font-weight: bold;
96
- color: #2A3890;
97
- font-size:12px;
98
- }
99
- .subactivity_objects{
100
- color: #000;
101
- font-weight:normal;
102
- font-size:11px;
103
- }
104
-
105
- .post_time_ago {
106
- color: #6c6d6f;
107
- }
108
-
109
- .activity_options {
110
- list-style:none;
111
- margin:0;
112
- padding:0;
113
- }
114
-
115
- .activity_options li {
116
- padding-left:0px;
117
- padding-right:5px;
118
- float:left;
119
- }
120
-
121
- .activity_options li a {
122
- text-decoration:none;
123
- }
124
-
125
- .activity_options li a:hover {
126
- text-decoration:underline;
127
- }
128
-
129
- .icon_gray{
130
- list-style-image:url("/images/point_gray.png");
131
- }
132
-
133
- .activity_options .icon_blue{
134
- padding-left:5px;
135
- list-style-image:url("/images/point_blue.png");
136
- list-style-position:inside;
137
- }
138
-
139
-
140
-
141
- /************* ACTIVITY - FOOTER *********/
142
- .space_comments {
143
- padding-top: 1px;
144
- padding-bottom: 1px;
145
- }
146
-
147
- .space_activities {
148
- text-align:center;
149
- padding: 0px 0px 0px 1px;
150
- width:100%;
151
- }
152
-
153
- .space_sub_activities{
154
- padding: 1px 30px 0px 30px;
155
- border-bottom: thin solid #D4E4E4;
156
- width:100%;
157
- text-align:center;
158
- display: inline;
159
- }
160
-
161
- .space_sub{
162
- display: inline;
163
- padding: 1px 200px 1px 200px;
164
- border-bottom: thin solid #D4E4E4;
165
- font-size: 2px;
166
- text-align:center;
167
- }
168
-
169
-
170
- /****************** SUB-ACTIVITY by ACTIVITY ********/
171
-
172
- .activity_new_comment{
173
- font-size: 11px;
174
- padding-left: 5px;
175
- background: #deeff8;
176
- border: thin solid #D4E4E4;
177
- }
178
-
179
- .actor_logo_subactivity {
180
- width: 40px;
181
- padding: 5px 3px 5px 2px;
182
- display: inline-block;
183
- vertical-align: top;
184
-
185
- }
186
-
187
- .input_new_comments{
188
- border:1px solid #BDC7D8;
189
- width:98%;
190
- padding: 2px;
191
- }
192
-
193
- .activity_new_comment{
194
- font-size: 11px;
195
- width:100%;
196
- padding-top: 3px;
197
- padding-bottom: 3px;
198
- }
199
-
200
-
201
- .subactivity{
202
- font-size: 11px;
203
- padding: 0px 0px 0px 5px;
204
- background: #deeff8;
205
- border: thin solid #D4E4E4;
206
- }
207
-
208
- .space_comments {
209
- padding-top: 1px;
210
- padding-bottom: 1px;
211
- }
212
-
213
-
214
-
215
- #input_activities {
216
- border-color: #0656a4;
217
- color: #2A3890;
218
- padding: 5px 5px 5px 5px;
219
- border:1px solid #BDC7D8;
220
- }
221
-
222
- #activities_share_btn {
223
- text-align: right;
224
- padding: 5px 16px 0px 10px;
225
- vertical-align: middle;
226
- }
227
-
228
- .activities_comment_btn{
229
- text-align: right;
230
- padding: 2px 5px 2px 10px;
231
- vertical-align: middle;
232
- }
233
-
234
-
235
-