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
@@ -1,6 +1,13 @@
|
|
1
|
-
<% content_for :headers
|
1
|
+
<% content_for :headers do %>
|
2
|
+
<%= stylesheet_link_tag "activities", :media => "screen, projection" %>
|
3
|
+
<%= stylesheet_link_tag "jquery-ui", :media => "screen, projection" %>
|
4
|
+
<% end %>
|
5
|
+
|
2
6
|
<% content_for :javascript do %>
|
3
7
|
<%= render :partial => 'activities/jquery' %>
|
8
|
+
$(document).ready(function() {
|
9
|
+
$("#tabs").tabs();
|
10
|
+
});
|
4
11
|
<% end -%>
|
5
12
|
|
6
13
|
<div id="wrapper_activities">
|
@@ -10,11 +17,30 @@
|
|
10
17
|
</div>
|
11
18
|
<%= render :partial => 'activities/new', :locals => { :receiver => owner } %>
|
12
19
|
</div>
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
+
|
21
|
+
<div id="tabs">
|
22
|
+
<ul>
|
23
|
+
<li><a href="#fragment-1"><span>Group</span></a></li>
|
24
|
+
<li><a href="#fragment-2"><span>Followers</span></a></li>
|
25
|
+
<li><a href="#fragment-3"><span>Partners</span></a></li>
|
26
|
+
</ul>
|
27
|
+
<div id="fragment-1">
|
28
|
+
<div id="wall">
|
29
|
+
<% activities = activities.paginate(:page => params[:page]) %>
|
30
|
+
<%- # should be activities.paginate(:page => params[:page], :count => { :select => 'activity.id', :distinct => true }) but it is not working in Rails 3.0.3 -%>
|
31
|
+
<%= render activities %>
|
32
|
+
<%= will_paginate activities %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div id="fragment-2">
|
36
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
37
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
38
|
+
</div>
|
39
|
+
<div id="fragment-3">
|
40
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
41
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
42
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
|
20
46
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div id="welcome">
|
2
2
|
<div id="login" class="block">
|
3
|
-
<h2><%= t('
|
3
|
+
<h2><%= t('sign_up').capitalize %></h2>
|
4
4
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
5
5
|
<%= devise_error_messages! %>
|
6
6
|
<div class="form_row">
|
@@ -0,0 +1,11 @@
|
|
1
|
+
xml.instruct!
|
2
|
+
xml.XRD :xmlns => 'http://docs.oasis-open.org/ns/xri/xrd-1.0',
|
3
|
+
"xmlns:hm" => 'http://host-meta.net/ns/1.0' do
|
4
|
+
|
5
|
+
xml.tag! "hm:Host", request.host_with_port
|
6
|
+
|
7
|
+
xml.Link :rel => "lrdd",
|
8
|
+
:template => "#{ root_url }subjects/lrdd/{uri}",
|
9
|
+
:type => "application/xrd+xml"
|
10
|
+
|
11
|
+
end
|
@@ -43,12 +43,15 @@ height: 6
|
|
43
43
|
</div>
|
44
44
|
</div>
|
45
45
|
<div class="form_row">
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
<div class="form_label">
|
47
|
+
<%= f.label t('group.new.participants') %>
|
48
|
+
</div>
|
49
|
+
<div class="form_field">
|
50
|
+
<%= f.select :_participants, [], :class => "form_tag" %>
|
51
|
+
</div>
|
50
52
|
</div>
|
51
|
-
<div class="form_row">
|
53
|
+
<div class="form_row form_label">
|
54
|
+
|
52
55
|
<%= f.label :description %>
|
53
56
|
</div>
|
54
57
|
<div class="form_row">
|
@@ -1,6 +1,5 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<% end %>
|
1
|
+
<% toolbar :option => :groups %>
|
2
|
+
|
4
3
|
<% content_for :sidebar do %>
|
5
4
|
<%= render :partial => 'sidebar_show' %>
|
6
5
|
<% end %>
|
@@ -65,7 +64,7 @@ $(".edit_group").validate();
|
|
65
64
|
<%= profile_form.text_field :country, :class => "form_tag" %>
|
66
65
|
</div>
|
67
66
|
</div>
|
68
|
-
<div class="form_row">
|
67
|
+
<div class="form_row form_label">
|
69
68
|
<%= profile_form.label :description %>
|
70
69
|
</div>
|
71
70
|
<div class="form_row">
|
@@ -127,7 +126,7 @@ $(".edit_group").validate();
|
|
127
126
|
<% end %>
|
128
127
|
<% end %>
|
129
128
|
</div>
|
130
|
-
<div class="form_row
|
129
|
+
<div class="form_row space_center">
|
131
130
|
<%= f.submit "Update", :class => "button" %>
|
132
131
|
<button class="button" onclick="window.location.href='<%= group_url(@group) %>';">
|
133
132
|
Cancel
|
@@ -1,16 +1,8 @@
|
|
1
|
-
<% content_for :headers do -%>
|
2
|
-
<%= stylesheet_link_tag 'fcbkComplete' %>
|
3
|
-
<% end -%>
|
4
|
-
|
5
|
-
|
6
1
|
<% content_for :sidebar do %>
|
7
2
|
<%= render :partial => 'sidebar_show' %>
|
8
3
|
<% end %>
|
9
4
|
|
10
|
-
<%
|
11
|
-
<%= render :partial => 'toolbar_show' %>
|
12
|
-
<% end %>
|
13
|
-
|
5
|
+
<% toolbar :profile => @group %>
|
14
6
|
|
15
7
|
<%= render :partial => 'location' %>
|
16
8
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="headerFront">
|
2
|
-
<div class="banner_top">
|
2
|
+
<div class="banner_top banner_top_height">
|
3
3
|
<div id="header_left">
|
4
4
|
<div id="logo_txt">
|
5
5
|
<%= link_to(image_tag('header-logo.png', :alt => t('socialstream')), root_path) %>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
</div>
|
19
19
|
<div id="header_right">
|
20
20
|
<% if user_signed_in? %>
|
21
|
-
<div class="menu_list menu_white" id="
|
21
|
+
<div class="menu_list menu_white" id="menu_account">
|
22
22
|
<ul>
|
23
23
|
<li class="btn_menu_config"><%= link_to t('account.one'), '#' %></li>
|
24
24
|
<li class="pipe">|</li>
|
@@ -30,5 +30,4 @@
|
|
30
30
|
<% end %>
|
31
31
|
</div>
|
32
32
|
</div>
|
33
|
-
<br class="clearfloat" />
|
34
33
|
</div>
|
@@ -1,15 +1,12 @@
|
|
1
|
-
<%= link_to(image_tag(current_user.logo.url(:tie), :width => 20, :height => 20), current_user) %>
|
2
1
|
|
3
|
-
|
2
|
+
<%= link_to(image_tag(current_user.logo.url(:tie), :width => 20, :height => 20, :class => 'menu_icon'), current_user) %>
|
4
3
|
<%= link_to(current_user.name, current_user) %>
|
5
|
-
|
6
4
|
<%= t('representation.action') %>
|
7
|
-
|
8
5
|
<%= form_for(Representation.new(current_subject), :url => representation_path) do |f| %>
|
9
6
|
<%= f.select :subject_dom_id, current_user.represented.unshift(current_user).map{ |s| [ s.name, dom_id(s) ] } %>
|
10
7
|
<%= f.submit t('representation.change') %>
|
11
8
|
<% end %>
|
12
|
-
|
9
|
+
|
13
10
|
|
14
11
|
<%-# this should be in content_for(:javascript), but the partial is rendered after yield(:javascript) -%>
|
15
12
|
<script type="text/javascript" charset="utf-8">
|
@@ -2,6 +2,7 @@ Crop your image:
|
|
2
2
|
|
3
3
|
|
4
4
|
<% my_file_name = File.basename(@logo.logo.queued_for_write[:original].path) %>
|
5
|
+
<%# my_file_name = params[:name] %>
|
5
6
|
<div style="width:100px;height:100px;overflow:hidden;margin-left:5px;">
|
6
7
|
<%= image_tag "tmp/#{my_file_name}",:id=>"preview" %>
|
7
8
|
</div>
|
@@ -30,7 +31,7 @@ function update_crop(coords) {
|
|
30
31
|
marginLeft: '-' + Math.round(rx * coords.x) + 'px',
|
31
32
|
marginTop: '-' + Math.round(ry * coords.y) + 'px'
|
32
33
|
});
|
33
|
-
var ratio =
|
34
|
+
var ratio = 1;//<% precrop_dimensions[:width] %> / <%= precrop_dimensions[:height] %>
|
34
35
|
$("#crop_x").val(Math.round(coords.x * ratio));
|
35
36
|
$("#crop_y").val(Math.round(coords.y * ratio));
|
36
37
|
$("#crop_w").val(Math.round(coords.w * ratio));
|
@@ -41,8 +42,10 @@ function update_crop(coords) {
|
|
41
42
|
<%= form_for :logo, @logo,:url => logos_path, :html => { :multipart => true } do |f| %>
|
42
43
|
|
43
44
|
<% for attribute in [:crop_x, :crop_y, :crop_w, :crop_h] %>
|
44
|
-
<%= f.
|
45
|
+
<%= f.hidden_field attribute, :id => attribute %>
|
45
46
|
<% end %>
|
47
|
+
<%= f.hidden_field :name, :value => my_file_name %>
|
48
|
+
|
46
49
|
<p><%= f.submit "Crop" %></p>
|
47
50
|
<% end %>
|
48
51
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<% #debugger %>
|
13
13
|
<td><%= image_tag logo.logo.url(:profile) %></image_tag></td>
|
14
14
|
<td><%= image_tag logo.logo.url(:tie) %></image_tag></td>
|
15
|
-
<td
|
15
|
+
<td><% image_tag logo.logo.url() %></image_tag></td>
|
16
16
|
<td><%= image_tag logo.logo.url(:actor) %></image_tag></td>
|
17
17
|
|
18
18
|
<td><%= link_to 'Show', logo %></td>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<ul class="menu noaccordion">
|
2
|
+
<li>
|
3
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('inbox.one'), messages_path) %>
|
4
|
+
</li>
|
5
|
+
<li>
|
6
|
+
<%= link_to( image_tag("btn/btn_edit.png", :class => "menu_icon")+t('menu.information'), [@group, :profile]) %>
|
7
|
+
</li>
|
8
|
+
<li>
|
9
|
+
<%= link_to( image_tag("btn/btn_friend.png", :class => "menu_icon")+t('contact.other'), '#') %>
|
10
|
+
</li>
|
11
|
+
</ul>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<ul class="menu noaccordion">
|
2
2
|
<li>
|
3
|
-
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('inbox.one'),
|
3
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('inbox.one'), messages_path) %>
|
4
4
|
</li>
|
5
5
|
<li>
|
6
|
-
<%= link_to( image_tag("btn/btn_edit.png", :class => "menu_icon")+t('menu.information'),
|
6
|
+
<%= link_to( image_tag("btn/btn_edit.png", :class => "menu_icon")+t('menu.information'), [@user, :profile]) %>
|
7
7
|
</li>
|
8
8
|
<li>
|
9
9
|
<%= link_to( image_tag("btn/btn_friend.png", :class => "menu_icon")+t('contact.other'), '#') %>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<%= div_for(conversation, :class => active) do %>
|
2
|
+
<div class="actor_photo">
|
3
|
+
<%= link_to image_tag(conversation.last_sender.logo.url(:actor),
|
4
|
+
:title => conversation.last_sender.name, :alt => conversation.last_sender.name),
|
5
|
+
conversation.last_sender.subject %>
|
6
|
+
</div>
|
7
|
+
<div class="content_left">
|
8
|
+
<div class="actor_name">
|
9
|
+
<%= link_to conversation.last_sender.name, conversation.last_sender.subject %>
|
10
|
+
</div>
|
11
|
+
<div class="date">
|
12
|
+
<%= conversation.updated_at %>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class="content_right">
|
16
|
+
<div class="subject">
|
17
|
+
<%= link_to(conversation.subject, message_path(conversation.id,:box => @box)) %>
|
18
|
+
</div>
|
19
|
+
<div class="briefing">
|
20
|
+
<%= truncate(conversation.last_message.body, :length => 50) %>
|
21
|
+
</div>
|
22
|
+
<div class="clearfloat"></div>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<% unless @box.eql?'trash' %>
|
26
|
+
<div class="action">
|
27
|
+
<%= link_to(image_tag('btn/btn_delete.png', :atl => "Delete", :title => "Delete"),
|
28
|
+
message_path(conversation, :location => @box, :box => @box),
|
29
|
+
:confirm => 'Do you want to move "' + conversation.subject + '" to trash?',
|
30
|
+
:method => :delete, :remote => true) %>
|
31
|
+
</div>
|
32
|
+
<% end %>
|
33
|
+
<div class="clearfloat"></div>
|
34
|
+
<% end %>
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<% content_for :headers do %>
|
2
|
+
<%= javascript_include_tag 'ckeditor/ckeditor.js','ckeditor/adapters/jquery.js','jquery.scrollTo.min.jsjquery.scrollTo.min.js', 'jquery.validate' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% content_for :javascript do %>
|
6
|
+
$('.cont_conversation').validate();
|
7
|
+
<% unless @box.eql?'trash' %>
|
8
|
+
$('#body').ckeditor(
|
9
|
+
function(){$('#cke_top_body').click( updateTextArea);},
|
10
|
+
function() {$.scrollTo('#message_<%= conversation.last_message.id %>');},
|
11
|
+
{ width:493 }
|
12
|
+
);
|
13
|
+
var editor = $('#body').ckeditorGet();
|
14
|
+
editor.on("instanceReady", function(){
|
15
|
+
this.document.on("keyup", updateTextArea);
|
16
|
+
this.document.on("paste", updateTextArea);
|
17
|
+
this.document.on("mousedown", updateTextArea);
|
18
|
+
});
|
19
|
+
|
20
|
+
var updateTextArea = function (){
|
21
|
+
editor.updateElement();
|
22
|
+
$("#body").trigger('keyup');
|
23
|
+
}
|
24
|
+
<% else %>
|
25
|
+
$.scrollTo('#message_<%= conversation.last_message.id %>');
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
|
29
|
+
<%= div_for (conversation) do %>
|
30
|
+
<%= conversation.subject %>
|
31
|
+
<br>
|
32
|
+
Actions: <% unless @box.eql?'trash' %><%= link_to ( image_tag('btn/btn_delete.png', :atl => "Delete", :title => "Delete"),
|
33
|
+
message_path(conversation, :location => 'conversation', :box => @box),
|
34
|
+
:confirm => 'Do you want to move "' + conversation.subject + '" to trash?',
|
35
|
+
:method => :delete, :remote => true) %><% end %>
|
36
|
+
<br>
|
37
|
+
<% conversation.get_recipients.each do |recp| %>
|
38
|
+
<%= link_to image_tag(recp.logo.url(:tie), :title=>recp.name, :alt => recp.name), recp.subject %>
|
39
|
+
<% end %><br>
|
40
|
+
|
41
|
+
<% @receipts.each do |receipt| %>
|
42
|
+
<% message= receipt.message %>
|
43
|
+
<%= div_for (message) do%>
|
44
|
+
<%= link_to image_tag(message.sender.logo.url(:tie),:alt => message.sender.name,:title =>message.sender.name), message.sender.subject %><br>
|
45
|
+
<%= message.sender.name %> on <%= message.created_at %> said:<br>
|
46
|
+
<%= raw (message.body) %>
|
47
|
+
<% end %>
|
48
|
+
<% end %>
|
49
|
+
<% unless @box.eql?'trash' %>
|
50
|
+
Write your answer:<br>
|
51
|
+
<% form_tag message_path(conversation.id), :method => :put, :class => "cont_conversation" do %>
|
52
|
+
<div class="block">
|
53
|
+
<div class="form_row">
|
54
|
+
<%= label_tag :body %>
|
55
|
+
</div>
|
56
|
+
<div class="form_row">
|
57
|
+
<%= text_area_tag :body, nil,:rows =>6, :cols=> 53, :class => "required form_tag" %>
|
58
|
+
</div>
|
59
|
+
<div class="actions center">
|
60
|
+
<%= submit_tag "Reply", :name => :reply_all,:class => "button" %>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<% end %>
|
64
|
+
<%end %>
|
65
|
+
<% end %>
|
@@ -0,0 +1,86 @@
|
|
1
|
+
<% content_for :headers do %>
|
2
|
+
<%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
|
3
|
+
<%= javascript_include_tag 'jquery.fcbkcomplete.min','jquery.validate','ckeditor/ckeditor.js','ckeditor/adapters/jquery.js' %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<% content_for :javascript do %>
|
7
|
+
|
8
|
+
var recipients = $("#_recipients").fcbkcomplete({
|
9
|
+
json_url: "../../contacts/index.json",
|
10
|
+
cache: true,
|
11
|
+
filter_case: true,
|
12
|
+
filter_hide: true,
|
13
|
+
newel: false,
|
14
|
+
height: 6
|
15
|
+
});
|
16
|
+
|
17
|
+
|
18
|
+
$('#body').ckeditor(
|
19
|
+
function(){
|
20
|
+
$('#cke_top_body').click( updateTextArea);
|
21
|
+
},
|
22
|
+
{ width:493 }
|
23
|
+
);
|
24
|
+
|
25
|
+
var editor = $('#body').ckeditorGet();
|
26
|
+
|
27
|
+
editor.on("instanceReady", function(){
|
28
|
+
this.document.on("keyup", updateTextArea);
|
29
|
+
this.document.on("paste", updateTextArea);
|
30
|
+
this.document.on("mousedown", updateTextArea);
|
31
|
+
});
|
32
|
+
|
33
|
+
var updateTextArea = function (){
|
34
|
+
editor.updateElement();
|
35
|
+
$("#body").trigger('keyup');
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
<% unless @recipient.nil? %>
|
40
|
+
$("#_recipients").trigger("addItem",[{"title": "<%= @recipient.name %>", "value": "<%= @recipient.id %>"}]);
|
41
|
+
<% end %>
|
42
|
+
|
43
|
+
$(".new_message").validate();
|
44
|
+
|
45
|
+
<% end %>
|
46
|
+
|
47
|
+
|
48
|
+
<h2>New Message</h2>
|
49
|
+
<%= form_tag messages_path, :method => :post , :class => "new_message" do %>
|
50
|
+
<% if @conversation and @conversation.errors.any? %>
|
51
|
+
<div id="notice">
|
52
|
+
<h2><%= pluralize(@conversation.errors.count, "error") %> prohibited this message from being sent:</h2>
|
53
|
+
<ul>
|
54
|
+
<% @conversation.errors.full_messages.each do |msg| %>
|
55
|
+
<li>
|
56
|
+
<%= msg %>
|
57
|
+
</li>
|
58
|
+
<% end %>
|
59
|
+
</ul>
|
60
|
+
</div>
|
61
|
+
<% end %>
|
62
|
+
<div class="block">
|
63
|
+
<div class="form_row">
|
64
|
+
<%= label_tag :recipients %>
|
65
|
+
</div>
|
66
|
+
<div class="form_row">
|
67
|
+
<%= select_tag :_recipients, "", :class => "required form_tag" %>
|
68
|
+
|
69
|
+
</div>
|
70
|
+
<div class="form_row">
|
71
|
+
<%= label_tag :subject %>
|
72
|
+
</div>
|
73
|
+
<div class="form_row">
|
74
|
+
<%= text_field_tag :subject,nil, :class => "required form_tag" %>
|
75
|
+
</div>
|
76
|
+
<div class="form_row">
|
77
|
+
<%= label_tag :body %>
|
78
|
+
</div>
|
79
|
+
<div class="form_row" id="ck_editor" >
|
80
|
+
<%= text_area_tag :body, nil,:rows =>6, :cols=> 53, :class => "required form_tag", :maxlength => 5000 %>
|
81
|
+
</div>
|
82
|
+
<div class="actions center">
|
83
|
+
<%= submit_tag "Send Message", :name => :send_message, :class => "button" %>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
<% end %>
|