social_stream 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/api_controller.rb +0 -4
- data/app/controllers/frontpage_controller.rb +5 -0
- data/app/controllers/logos_controller.rb +18 -2
- data/app/controllers/messages_controller.rb +148 -0
- data/app/controllers/pshb_controller.rb +19 -0
- data/app/controllers/subjects_controller.rb +7 -0
- data/app/controllers/ties_controller.rb +1 -4
- data/app/helpers/subjects_helper.rb +40 -4
- data/app/models/activity_verb.rb +1 -1
- data/app/models/actor.rb +12 -4
- data/app/models/logo.rb +46 -9
- data/app/models/tie.rb +21 -1
- data/app/views/activities/_activities.html.erb +34 -8
- data/app/views/devise/registrations/new.html.erb +1 -1
- data/app/views/frontpage/host_meta.xml.builder +11 -0
- data/app/views/groups/_logo.html.erb +1 -0
- data/app/views/groups/_new.html.erb +8 -5
- data/app/views/groups/_sidebar_show.html.erb +2 -1
- data/app/views/groups/edit.html.erb +4 -5
- data/app/views/groups/index.html.erb +1 -1
- data/app/views/groups/new.html.erb +1 -1
- data/app/views/groups/show.html.erb +1 -9
- data/app/views/home/index.html.erb +1 -1
- data/app/views/layouts/_header.erb +2 -3
- data/app/views/layouts/_representation.html.erb +2 -5
- data/app/views/logos/_precrop.html.erb +5 -2
- data/app/views/logos/index.html.erb +1 -1
- data/app/views/menu/_group.html.erb +1 -1
- data/app/views/menu/_optionsGroups.html.erb +11 -0
- data/app/views/menu/{_options.html.erb → _optionsUser.html.erb} +2 -2
- data/app/views/menu/_user.html.erb +1 -1
- data/app/views/messages/_conversation.html.erb +34 -0
- data/app/views/messages/_conversation_full.html.erb +65 -0
- data/app/views/messages/_conversations.html.erb +4 -0
- data/app/views/messages/_form.html.erb +86 -0
- data/app/views/{mailbox/_show.html.erb → messages/_index.html.erb} +5 -1
- data/app/views/messages/_location.html.erb +3 -0
- data/app/views/{mailbox → messages}/_menu_options.html.erb +5 -5
- data/app/views/{mailbox/conversation → messages}/_new.html.erb +6 -4
- data/app/views/messages/_show.html.erb +22 -0
- data/app/views/{mailbox → messages}/edit.html.erb +0 -0
- data/app/views/{mailbox → messages}/index.html.erb +1 -2
- data/app/views/{mailbox → messages}/index.js.erb +0 -0
- data/app/views/{mailbox/show.html.erb → messages/new.html.erb} +3 -4
- data/app/views/{mailbox/conversation → messages}/new.js.erb +0 -0
- data/app/views/messages/show.html.erb +10 -0
- data/app/views/{mailbox → messages}/show.js.erb +0 -0
- data/app/views/profiles/show.html.erb +180 -1
- data/app/views/{groups → subjects}/_tabs.html.erb +0 -0
- data/app/views/subjects/_toolbar_home.html.erb +9 -0
- data/app/views/subjects/_toolbar_home_menu.html.erb +6 -0
- data/app/views/subjects/_toolbar_home_menu_options.html.erb +28 -0
- data/app/views/subjects/_toolbar_home_menu_options_subjects.html.erb +15 -0
- data/app/views/subjects/_toolbar_logo.html.erb +4 -0
- data/app/views/subjects/_toolbar_profile.html.erb +21 -0
- data/app/views/subjects/_toolbar_profile_menu.html.erb +13 -0
- data/app/views/subjects/_toolbar_profile_menu_basic_options.html.erb +12 -0
- data/app/views/subjects/_toolbar_profile_menu_tie_options.html.erb +28 -0
- data/app/views/ties/_new.html.erb +4 -1
- data/app/views/ties/new.js.erb +9 -0
- data/app/views/users/_sidebar_show.html.erb +1 -1
- data/app/views/users/edit.html.erb +4 -5
- data/app/views/users/index.html.erb +1 -1
- data/app/views/users/show.html.erb +1 -3
- data/app/views/users/update.js.erb +1 -1
- data/config/locales/en.yml +11 -7
- data/config/routes.rb +13 -5
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/.htaccess +24 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/adapters/jquery.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor.js +141 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_basic.js +8 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_basic_source.js +20 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/ckeditor_source.js +25 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/config.js +21 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/contents.css +45 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/images/spacer.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/_languages.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/_translationstatus.txt +60 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/af.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ar.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bg.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bn.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/bs.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ca.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/cs.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/cy.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/da.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/de.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/el.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-au.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-ca.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en-gb.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/en.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/eo.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/es.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/et.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/eu.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fa.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fi.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fo.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fr-ca.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/fr.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/gl.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/gu.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/he.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hi.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hr.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/hu.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/is.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/it.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ja.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/km.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ko.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/lt.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/lv.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/mn.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ms.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/nb.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/nl.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/no.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pl.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pt-br.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/pt.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ro.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/ru.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sk.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sl.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sr-latn.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sr.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/sv.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/th.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/tr.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/uk.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/vi.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/zh-cn.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/lang/zh.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/lang/en.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/a11yhelp/lang/he.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/about/dialogs/about.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/adobeair/plugin.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/autogrow/plugin.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/div/dialogs/div.js +8 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/find/dialogs/find.js +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/flash/dialogs/flash.js +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/button.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/form.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/radio.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/select.js +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/iframedialog/plugin.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/image/dialogs/image.js +13 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/dialogs/anchor.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/dialogs/link.js +11 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/link/images/anchor.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pastefromword/filter/default.js +10 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/pastetext/dialogs/pastetext.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/dialogs/placeholder.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/lang/en.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/placeholder.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/placeholder/plugin.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/scayt/dialogs/options.js +8 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/specialchar/lang/en.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/styles/styles/default.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/table/dialogs/table.js +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/tableresize/plugin.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +8 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/dialogs/templates.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/default.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/dialogs/uicolor.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/lang/en.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/lang/he.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/plugin.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/uicolor.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_bg.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/hue_thumb.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_mask.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/picker_thumb.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/assets/yui.css +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/uicolor/yui/yui.js +76 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/dialog.css +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/editor.css +13 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/icons.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/icons_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/mini.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/noimage.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/sprites.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/sprites_ie6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/images/toolbar_start.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/skin.js +7 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/kama/templates.css +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/dialog.css +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/editor.css +14 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/icons.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/icons_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/mini.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/noimage.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/sprites.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/images/sprites_ie6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/skin.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/office2003/templates.css +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/dialog.css +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/editor.css +13 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/icons.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/icons_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/dialog_sides_rtl.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/mini.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/noimage.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/sprites.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/sprites_ie6.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/images/toolbar_start.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/skin.js +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/skins/v2/templates.css +6 -0
- data/lib/generators/social_stream/templates/public/javascripts/ckeditor/themes/default/theme.js +8 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery.fcbkcomplete.min.js +1 -1
- data/lib/generators/social_stream/templates/public/javascripts/jquery.scrollTo.min.js +11 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/base.css +32 -54
- data/lib/generators/social_stream/templates/public/stylesheets/default/fcbkComplete.css +13 -5
- data/lib/generators/social_stream/templates/public/stylesheets/default/header.css +13 -5
- data/lib/generators/social_stream/templates/public/stylesheets/default/home.css +1 -1
- data/lib/generators/social_stream/templates/public/{images → stylesheets/default/images}/fcbkcomplete/close.gif +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery-ui.css +98 -51
- data/lib/generators/social_stream/templates/public/stylesheets/default/messages.css +44 -0
- data/lib/social_stream/rails.rb +4 -0
- data/lib/social_stream/version.rb +1 -1
- data/social_stream.gemspec +1 -1
- data/spec/controllers/frontpage_controller_spec.rb +5 -0
- data/spec/controllers/subjects_controller.rb +14 -0
- data/spec/dummy/db/schema.rb +10 -1
- data/spec/support/db.rb +17 -5
- metadata +253 -38
- data/app/controllers/mailbox/conversation_controller.rb +0 -110
- data/app/controllers/mailbox_controller.rb +0 -35
- data/app/views/groups/_toolbar_show.html.erb +0 -12
- data/app/views/mailbox/_conversation.html.erb +0 -23
- data/app/views/mailbox/_conversations.html.erb +0 -9
- data/app/views/mailbox/_index.html.erb +0 -16
- data/app/views/mailbox/_location.html.erb +0 -3
- data/app/views/mailbox/conversation/_conversation.html.erb +0 -40
- data/app/views/mailbox/conversation/_form.html.erb +0 -54
- data/app/views/mailbox/conversation/_location.html.erb +0 -3
- data/app/views/mailbox/conversation/_show.html.erb +0 -27
- data/app/views/mailbox/conversation/edit.html.erb +0 -6
- data/app/views/mailbox/conversation/new.html.erb +0 -10
- data/app/views/mailbox/conversation/show.html.erb +0 -1
- data/app/views/mailbox/new.html.erb +0 -14
- data/app/views/subjects/_menu_options.html.erb +0 -14
- data/app/views/subjects/_toolbar.html.erb +0 -15
- data/app/views/users/_logo.html.erb +0 -4
- data/app/views/users/_toolbar_show.html.erb +0 -17
@@ -14,8 +14,24 @@ class LogosController < InheritedResources::Base
|
|
14
14
|
|
15
15
|
end
|
16
16
|
=end
|
17
|
-
|
17
|
+
begin
|
18
|
+
def create
|
19
|
+
@logo = Logo.create(params[:logo])
|
20
|
+
#debugger
|
21
|
+
#{:original=>#<File:/var/folders/EZ/EZmst6HwE0ipKa3hozX2Zk+++TI/-Tmp-/stream20110322-5217-ft6j6l-0.jpg>}
|
18
22
|
|
19
|
-
|
23
|
+
|
24
|
+
if @logo.new_record?
|
25
|
+
render :new
|
26
|
+
else
|
27
|
+
#redirect_to @logo
|
28
|
+
redirect_to logos_path
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
20
36
|
|
21
37
|
end
|
@@ -0,0 +1,148 @@
|
|
1
|
+
class MessagesController < ApplicationController
|
2
|
+
|
3
|
+
before_filter :get_mailbox, :get_box
|
4
|
+
def index
|
5
|
+
if @box.eql?"inbox"
|
6
|
+
@conversations = @mailbox.inbox.paginate(:per_page => 9, :page => params[:page])
|
7
|
+
elsif @box.eql?"sentbox"
|
8
|
+
@conversations = @mailbox.sentbox.paginate(:per_page => 9, :page => params[:page])
|
9
|
+
else
|
10
|
+
@conversations = @mailbox.trash.paginate(:per_page => 9, :page => params[:page])
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# GET /messages/1
|
15
|
+
# GET /messages/1.xml
|
16
|
+
def show
|
17
|
+
@actor = Actor.normalize(current_subject)
|
18
|
+
@conversation = Conversation.find_by_id(params[:id])
|
19
|
+
if @conversation.nil? or !@conversation.is_participant?(@actor)
|
20
|
+
redirect_to mailbox_index_path
|
21
|
+
return
|
22
|
+
end
|
23
|
+
if @box.eql? 'trash'
|
24
|
+
@receipts = @conversation.receipts(@actor).trash
|
25
|
+
else
|
26
|
+
@conversation.mark_as_read(@actor)
|
27
|
+
@receipts = @conversation.receipts(@actor).not_trash
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
# GET /messages/new
|
33
|
+
# GET /messages/new.xml
|
34
|
+
def new
|
35
|
+
if params[:receiver].present?
|
36
|
+
@recipient = Actor.find_by_slug(params[:receiver])
|
37
|
+
@recipient = nil if Actor.normalize(@recipient)==Actor.normalize(current_subject)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# GET /messages/1/edit
|
42
|
+
def edit
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
# POST /messages
|
47
|
+
# POST /messages.xml
|
48
|
+
def create
|
49
|
+
@conversation = Conversation.new
|
50
|
+
if params[:subject].blank?
|
51
|
+
@conversation.errors.add("subject", "can't be empty")
|
52
|
+
end
|
53
|
+
if params[:body].blank?
|
54
|
+
@conversation.errors.add("body", "can't be empty")
|
55
|
+
end
|
56
|
+
if params[:_recipients].nil? or params[:_recipients]==[]
|
57
|
+
@conversation.errors.add("recipients", "can't be empty")
|
58
|
+
end
|
59
|
+
if @conversation.errors.any?
|
60
|
+
render :action => :new
|
61
|
+
return
|
62
|
+
end
|
63
|
+
@actor = current_subject
|
64
|
+
@recipients = Array.new
|
65
|
+
params[:_recipients].each do |recp_id|
|
66
|
+
recp = Actor.find_by_id(recp_id)
|
67
|
+
next if recp.nil?
|
68
|
+
@recipients << recp
|
69
|
+
end
|
70
|
+
|
71
|
+
if (mail = @actor.send_message(@recipients, params[:body], params[:subject]))
|
72
|
+
@conversation = mail.conversation
|
73
|
+
redirect_to message_path(@conversation, :box => :sentbox)
|
74
|
+
else
|
75
|
+
render :action => :new
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# PUT /messages/1
|
80
|
+
# PUT /messages/1.xml
|
81
|
+
def update
|
82
|
+
@actor = Actor.normalize(current_subject)
|
83
|
+
@conversation = Conversation.find_by_id(params[:id])
|
84
|
+
if @conversation.nil? or !@conversation.is_participant?(@actor)
|
85
|
+
redirect_to messages_path(:box => @box)
|
86
|
+
return
|
87
|
+
end
|
88
|
+
|
89
|
+
if params[:untrash].present?
|
90
|
+
@conversation.untrash(@actor)
|
91
|
+
end
|
92
|
+
|
93
|
+
if params[:reply_all].present?
|
94
|
+
if params[:body].present?
|
95
|
+
last_receipt = @conversation.receipts(@actor).last
|
96
|
+
@actor.reply_to_all(last_receipt, params[:body])
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
if @box.eql? 'trash'
|
101
|
+
@receipts = @conversation.receipts(@actor).trash
|
102
|
+
else
|
103
|
+
@conversation.mark_as_read(@actor)
|
104
|
+
@receipts = @conversation.receipts(@actor).not_trash
|
105
|
+
end
|
106
|
+
render :action => :show
|
107
|
+
end
|
108
|
+
|
109
|
+
# DELETE /messages/1
|
110
|
+
# DELETE /messages/1.xml
|
111
|
+
def destroy
|
112
|
+
@actor = Actor.normalize(current_subject)
|
113
|
+
@conversation = Conversation.find_by_id(params[:id])
|
114
|
+
if @conversation.nil? or !@conversation.is_participant?(@actor)
|
115
|
+
redirect_to messages_path(:box => @box)
|
116
|
+
return
|
117
|
+
end
|
118
|
+
|
119
|
+
@conversation.move_to_trash(@actor)
|
120
|
+
|
121
|
+
if params[:location].present?
|
122
|
+
case params[:location]
|
123
|
+
when 'conversation'
|
124
|
+
redirect_to messages_path(:box => :trash)
|
125
|
+
return
|
126
|
+
else
|
127
|
+
redirect_to messages_path(:box => @box)
|
128
|
+
return
|
129
|
+
end
|
130
|
+
end
|
131
|
+
redirect_to messages_path(:box => @box)
|
132
|
+
end
|
133
|
+
|
134
|
+
private
|
135
|
+
|
136
|
+
def get_mailbox
|
137
|
+
@mailbox = current_subject.mailbox
|
138
|
+
end
|
139
|
+
|
140
|
+
def get_box
|
141
|
+
if params[:box].blank? or !["inbox","sentbox","trash"].include?params[:box]
|
142
|
+
@box = "inbox"
|
143
|
+
return
|
144
|
+
end
|
145
|
+
@box = params[:box]
|
146
|
+
end
|
147
|
+
|
148
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class PshbController < ApplicationController
|
2
|
+
|
3
|
+
def callback
|
4
|
+
#sync subscription verification
|
5
|
+
if params['hub.mode']=='subscribe'
|
6
|
+
render :text => params['hub.challenge'], :status => 200
|
7
|
+
# TO-DO: confirm that params['hub.topic'] is a real
|
8
|
+
# requested subscription by someone in this node
|
9
|
+
end
|
10
|
+
|
11
|
+
#sync unsubscription verification
|
12
|
+
if params['hub.mode']=='unsubscribe'
|
13
|
+
render :text => params['hub.challenge'], :status => 200
|
14
|
+
# TO-DO: confirm that params['hub.topic'] is a real
|
15
|
+
# requested unsubscription by someone in this node
|
16
|
+
# and delete permissions/remote actor if necessary
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -1,11 +1,47 @@
|
|
1
1
|
module SubjectsHelper
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
# Define the toolbar content for your view. There are two typical cases, depending on the value of
|
3
|
+
# options[:profile]
|
4
|
+
# * If present, render the profile menu for the {SocialStream::Models::Subject subject}
|
5
|
+
# * If blank, render the home menu
|
6
|
+
#
|
7
|
+
# The menu option allows overwriting a menu slot with the content of the given block
|
8
|
+
#
|
9
|
+
# Examples:
|
10
|
+
#
|
11
|
+
# Render the home toolbar:
|
12
|
+
#
|
13
|
+
# <% toolbar %>
|
14
|
+
#
|
15
|
+
# Render the profile toolbar for a user:
|
16
|
+
#
|
17
|
+
# <% toolbar :profile => @user %>
|
18
|
+
#
|
19
|
+
# Render the home toolbar changing the messages menu option:
|
20
|
+
#
|
21
|
+
# <% toolbar :option => :messages %>
|
22
|
+
#
|
23
|
+
# Render the profile toolbar for group changing the contacts menu option:
|
24
|
+
#
|
25
|
+
# <% toolbar :profile => @group, :option => :contacts %>
|
26
|
+
#
|
27
|
+
def toolbar(options = {}, &block)
|
28
|
+
if options[:option] && block_given?
|
29
|
+
menu_options[options[:option]] = capture(&block)
|
5
30
|
end
|
6
31
|
|
7
32
|
content_for(:toolbar) do
|
8
|
-
|
33
|
+
if options[:profile]
|
34
|
+
render :partial => 'subjects/toolbar_profile', :locals => { :subject => options[:profile] }
|
35
|
+
else
|
36
|
+
render :partial => 'subjects/toolbar_home'
|
37
|
+
end
|
9
38
|
end
|
10
39
|
end
|
40
|
+
|
41
|
+
# Cache menu options for toolbar
|
42
|
+
#
|
43
|
+
# @api private
|
44
|
+
def menu_options #:nodoc:
|
45
|
+
@menu_options ||= {}
|
46
|
+
end
|
11
47
|
end
|
data/app/models/activity_verb.rb
CHANGED
data/app/models/actor.rb
CHANGED
@@ -53,7 +53,9 @@ class Actor < ActiveRecord::Base
|
|
53
53
|
# Get actor's id from an object, if possible
|
54
54
|
def normalize_id(a)
|
55
55
|
case a
|
56
|
-
|
56
|
+
when Integer
|
57
|
+
a
|
58
|
+
when Array
|
57
59
|
a.map{ |e| normalize_id(e) }
|
58
60
|
else
|
59
61
|
Actor.normalize(a).id
|
@@ -62,11 +64,11 @@ class Actor < ActiveRecord::Base
|
|
62
64
|
# Get actor from object, if possible
|
63
65
|
def normalize(a)
|
64
66
|
case a
|
65
|
-
|
67
|
+
when Actor
|
66
68
|
a
|
67
|
-
|
69
|
+
when Integer
|
68
70
|
Actor.find a
|
69
|
-
|
71
|
+
when Array
|
70
72
|
a.map{ |e| Actor.normalize(e) }
|
71
73
|
else
|
72
74
|
begin
|
@@ -76,6 +78,12 @@ class Actor < ActiveRecord::Base
|
|
76
78
|
end
|
77
79
|
end
|
78
80
|
end
|
81
|
+
|
82
|
+
def find_by_webfinger!(link)
|
83
|
+
link =~ /(acct:)?(.*)@/
|
84
|
+
|
85
|
+
find_by_slug! $2
|
86
|
+
end
|
79
87
|
end
|
80
88
|
|
81
89
|
|
data/app/models/logo.rb
CHANGED
@@ -1,22 +1,59 @@
|
|
1
1
|
require 'RMagick'
|
2
2
|
|
3
3
|
class Logo < ActiveRecord::Base
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
has_attached_file :logo,
|
5
|
+
:styles => { :tie => "30x30>",
|
6
|
+
:actor => '35x35>',
|
7
|
+
:profile => '94x94' },
|
8
|
+
:default_url => "/images/:attachment/:style/:subtype_class.png"
|
9
|
+
|
9
10
|
before_post_process :process_precrop
|
10
|
-
|
11
|
-
|
11
|
+
# before_post_process :copy_temp_file
|
12
|
+
attr_accessor :crop_x, :crop_y, :crop_w, :crop_h, :name
|
13
|
+
validates_attachment_presence :logo, :if => :uploading_file?
|
14
|
+
|
15
|
+
after_validation :precrop_done
|
16
|
+
# after_validation :mylog
|
17
|
+
|
18
|
+
|
19
|
+
def uploading_file?
|
20
|
+
return @name.blank?
|
21
|
+
end
|
22
|
+
|
23
|
+
def precrop_done
|
24
|
+
return if @name.blank?
|
25
|
+
|
26
|
+
images_path = File.join(RAILS_ROOT, "public", "images")
|
27
|
+
tmp_path = FileUtils.mkdir_p(File.join(images_path, "tmp"))
|
28
|
+
precrop_path = File.join(tmp_path,@name)
|
29
|
+
|
30
|
+
make_precrop(precrop_path,@crop_x.to_i,@crop_y.to_i,@crop_w.to_i,@crop_h.to_i)
|
31
|
+
@logo = Logo.new :logo => File.open(precrop_path), :name => @name
|
32
|
+
|
33
|
+
self.logo = @logo.logo
|
34
|
+
|
35
|
+
FileUtils.remove_file(precrop_path)
|
36
|
+
end
|
37
|
+
|
38
|
+
def copy_temp_file
|
39
|
+
images_path = File.join(RAILS_ROOT, "public", "images")
|
40
|
+
tmp_path = FileUtils.mkdir_p(File.join(images_path, "tmp"))
|
41
|
+
end
|
12
42
|
|
13
43
|
def process_precrop
|
44
|
+
|
45
|
+
if @name.blank? && ( logo.content_type.present? && !logo.content_type.start_with?("image/"))
|
46
|
+
logo.errors['invalidType'] = "The file you uploaded isn't valid"
|
47
|
+
return false
|
48
|
+
end
|
49
|
+
|
50
|
+
return if !@name.blank?
|
14
51
|
logo.errors['precrop'] = "You have to make precrop"
|
15
52
|
|
16
53
|
images_path = File.join(RAILS_ROOT, "public", "images")
|
17
54
|
tmp_path = FileUtils.mkdir_p(File.join(images_path, "tmp"))
|
18
|
-
|
19
|
-
resize_image(logo.queued_for_write[:original].path,
|
55
|
+
|
56
|
+
resize_image(logo.queued_for_write[:original].path,500,500)
|
20
57
|
|
21
58
|
my_file_name = File.basename(logo.queued_for_write[:original].path)
|
22
59
|
FileUtils.cp(logo.queued_for_write[:original].path,tmp_path)
|
data/app/models/tie.rb
CHANGED
@@ -101,6 +101,7 @@ class Tie < ActiveRecord::Base
|
|
101
101
|
|
102
102
|
after_create :complete_weak_set
|
103
103
|
after_create :create_activity_after_add_contact
|
104
|
+
after_create :send_message
|
104
105
|
|
105
106
|
def relation_name
|
106
107
|
@relation_name || relation.try(:name)
|
@@ -253,7 +254,26 @@ class Tie < ActiveRecord::Base
|
|
253
254
|
|
254
255
|
|
255
256
|
def create_activity_after_add_contact
|
256
|
-
|
257
|
+
if self.original
|
258
|
+
p = Post.create :text =>
|
259
|
+
(I18n.t "tie.activity.add_contact", :active=>self.sender.name , :pasive=>self.receiver.name),
|
260
|
+
:_activity_tie_id => self.id
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
|
265
|
+
# Values of "receiver.subject_type": "User", "Group"
|
266
|
+
def send_message
|
267
|
+
if self.original
|
268
|
+
if((message!=nil)&&(message!="")&&(receiver.subject_type=="User"))
|
269
|
+
sender.send_message(receiver, get_private_message(message))
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
|
275
|
+
def get_private_message(message)
|
276
|
+
return (I18n.t "tie.private_messages.add_contact", :name=>sender.name) + ".\n" + message
|
257
277
|
end
|
258
278
|
|
259
279
|
|