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.
- data/.gitignore +1 -0
- data/Gemfile +6 -0
- data/app/controllers/api_controller.rb +39 -0
- data/app/controllers/frontpage_controller.rb +2 -0
- data/app/controllers/groups_controller.rb +8 -2
- data/app/controllers/likes_controller.rb +9 -29
- data/app/controllers/logos_controller.rb +21 -0
- data/app/controllers/mailbox/conversation_controller.rb +110 -0
- data/app/controllers/mailbox_controller.rb +35 -0
- data/app/controllers/posts_controller.rb +2 -0
- data/app/controllers/profiles_controller.rb +3 -0
- data/app/controllers/ties_controller.rb +10 -0
- data/app/controllers/users_controller.rb +5 -5
- data/app/helpers/groups_helper.rb +0 -2
- data/app/helpers/subjects_helper.rb +11 -0
- data/app/helpers/ties_helper.rb +1 -1
- data/app/models/activity.rb +24 -1
- data/app/models/activity_object.rb +10 -0
- data/app/models/activity_object_activity.rb +10 -0
- data/app/models/actor.rb +87 -60
- data/app/models/group.rb +10 -4
- data/app/models/like.rb +34 -0
- data/app/models/logo.rb +51 -0
- data/app/models/permission.rb +7 -5
- data/app/models/profile.rb +24 -8
- data/app/models/tie.rb +15 -2
- data/app/models/user.rb +2 -2
- data/app/views/activities/_activities.html.erb +1 -1
- data/app/views/activities/_new.html.erb +12 -7
- data/app/views/api/activity_atom_feed.atom.builder +40 -0
- data/app/views/comments/_new.html.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +21 -0
- data/app/views/devise/passwords/new.html.erb +16 -0
- data/app/views/devise/registrations/new.html.erb +35 -19
- data/app/views/devise/sessions/new.html.erb +30 -0
- data/app/views/frontpage/_header.html.erb +18 -20
- data/app/views/frontpage/_search.html.erb +13 -0
- data/app/views/frontpage/_sponsor.html.erb +12 -13
- data/app/views/frontpage/index.html.erb +88 -80
- data/app/views/groups/_group.html.erb +2 -6
- data/app/views/groups/_index.html.erb +22 -25
- data/app/views/groups/_logo.html.erb +1 -1
- data/app/views/groups/_new.html.erb +56 -39
- data/app/views/groups/_profile.html.erb +142 -0
- data/app/views/groups/_sidebar_index.html.erb +73 -0
- data/app/views/groups/{_middle_show.html.erb → _sidebar_show.html.erb} +2 -2
- data/app/views/groups/_tabs.html.erb +37 -31
- data/app/views/groups/_toolbar_show.html.erb +12 -0
- data/app/views/groups/edit.html.erb +136 -0
- data/app/views/groups/index.html.erb +47 -46
- data/app/views/groups/new.html.erb +2 -0
- data/app/views/groups/show.html.erb +9 -4
- data/app/views/groups/update.js.erb +39 -0
- data/app/views/home/_groups.html.erb +4 -5
- data/app/views/{users/_middle_index.html.erb → home/_sidebar.html.erb} +0 -2
- data/app/views/home/index.html.erb +3 -5
- data/app/views/layouts/_footer.html.erb +4 -0
- data/app/views/layouts/_header.erb +29 -37
- data/app/views/layouts/_representation.html.erb +2 -2
- data/app/views/layouts/application.html.erb +47 -74
- data/app/views/layouts/frontpage.html.erb +27 -48
- data/app/views/layouts/test.html +44 -0
- data/app/views/likes/create.js.erb +1 -1
- data/app/views/likes/destroy.js.erb +1 -1
- data/app/views/logos/_form.html.erb +33 -0
- data/app/views/logos/_precrop.html.erb +48 -0
- data/app/views/logos/edit.html.erb +6 -0
- data/app/views/logos/index.html.erb +27 -0
- data/app/views/logos/new.html.erb +20 -0
- data/app/views/logos/show.html.erb +5 -0
- data/app/views/mailbox/_conversation.html.erb +23 -0
- data/app/views/mailbox/_conversations.html.erb +9 -0
- data/app/views/mailbox/_index.html.erb +16 -0
- data/app/views/{messages → mailbox}/_location.html.erb +0 -0
- data/app/views/mailbox/_menu_options.html.erb +19 -0
- data/app/views/mailbox/_show.html.erb +15 -0
- data/app/views/mailbox/conversation/_conversation.html.erb +40 -0
- data/app/views/mailbox/conversation/_form.html.erb +54 -0
- data/app/views/mailbox/conversation/_location.html.erb +3 -0
- data/app/views/mailbox/conversation/_new.html.erb +19 -0
- data/app/views/mailbox/conversation/_show.html.erb +27 -0
- data/app/views/mailbox/conversation/edit.html.erb +6 -0
- data/app/views/mailbox/conversation/new.html.erb +10 -0
- data/app/views/mailbox/conversation/new.js.erb +1 -0
- data/app/views/mailbox/conversation/show.html.erb +1 -0
- data/app/views/{messages → mailbox}/edit.html.erb +0 -0
- data/app/views/mailbox/index.html.erb +10 -0
- data/app/views/{messages → mailbox}/index.js.erb +0 -0
- data/app/views/mailbox/new.html.erb +14 -0
- data/app/views/mailbox/show.html.erb +11 -0
- data/app/views/mailbox/show.js.erb +1 -0
- data/app/views/menu/_group.html.erb +15 -0
- data/{lib/generators/social_stream/templates/public/stylesheets/users.css → app/views/menu/_home_user.html.erb} +0 -0
- data/app/views/menu/_options.html.erb +11 -0
- data/app/views/menu/_services.html.erb +11 -0
- data/app/views/menu/_tiesGroup.html.erb +14 -0
- data/app/views/menu/_tiesUser.html.erb +11 -0
- data/app/views/menu/_user.html.erb +15 -0
- data/app/views/profiles/show.html.erb +1 -0
- data/app/views/subjects/_contacts.html.erb +8 -9
- data/app/views/subjects/_menu_options.html.erb +14 -0
- data/app/views/subjects/_toolbar.html.erb +15 -0
- data/app/views/ties/_new.html.erb +3 -2
- data/app/views/ties/_pendings.html.erb +7 -12
- data/app/views/ties/_suggestions.html.erb +12 -12
- data/app/views/ties/_tie.html.erb +9 -7
- data/app/views/ties/new.js.erb +1 -2
- data/app/views/users/_groups.html.erb +4 -3
- data/app/views/users/_index.html.erb +24 -22
- data/app/views/users/_logo.html.erb +1 -1
- data/app/views/users/_profile.html.erb +167 -164
- data/app/views/users/_sidebar_index.html.erb +6 -0
- data/app/views/users/{_middle_show.html.erb → _sidebar_show.html.erb} +0 -0
- data/app/views/users/_toolbar_show.html.erb +17 -0
- data/app/views/users/edit.html.erb +193 -165
- data/app/views/users/index.html.erb +34 -47
- data/{spec/dummy/public/stylesheets/.gitkeep → app/views/users/info.html.erb} +0 -0
- data/app/views/users/show.html.erb +4 -4
- data/app/views/users/show.xml.builder +28 -0
- data/app/views/users/update.js.erb +3 -1
- data/config/locales/en.yml +88 -9
- data/config/routes.rb +30 -14
- data/lib/generators/social_stream/install_generator.rb +8 -2
- data/lib/generators/social_stream/templates/migration.rb +75 -81
- data/lib/generators/social_stream/templates/public/images/{frontpage/facebook.png → btn/1-facebook.png} +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/edit.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/facebook.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/linkedin.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/twitter-follow-icon.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/twitter.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/meet.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/icons/favicon.ico +0 -0
- data/lib/generators/social_stream/templates/public/images/logo.png +0 -0
- data/lib/generators/social_stream/templates/public/images/w3c_css.png +0 -0
- data/lib/generators/social_stream/templates/public/images/w3c_xhtml.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js +3 -3
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-personalized-1.5.2.packed.js +1 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui.min.js +3 -3
- data/lib/generators/social_stream/templates/public/javascripts/jquery.Jcrop.min.js +163 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery.fcbkcomplete.min.js +76 -76
- data/lib/generators/social_stream/templates/public/javascripts/jquery.min.js +156 -5
- data/lib/generators/social_stream/templates/public/javascripts/main.js +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/menu-collapsed.js +42 -0
- data/lib/generators/social_stream/templates/public/javascripts/menu.js +1 -1
- data/lib/generators/social_stream/templates/public/javascripts/rails.js +30 -29
- data/lib/generators/social_stream/templates/public/javascripts/superfish.js +121 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/activities.css +72 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/base.css +150 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/carousel.css +23 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{fcbkComplete.css → default/fcbkComplete.css} +2 -2
- data/lib/generators/social_stream/templates/public/stylesheets/default/footer.css +25 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/frontpage.css +54 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/header.css +44 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/home.css +44 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_454545_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_888888_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/jqcloud.css +15 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{jquery-ui.css → default/jquery-ui.css} +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.Jcrop.css +35 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/menu.css +33 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_454545_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_888888_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/jquery-ui-1.7.3.custom.css +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/jquery-ui-1.8.4.custom.css +0 -0
- data/lib/social_stream.rb +11 -2
- data/lib/social_stream/ability.rb +21 -3
- data/lib/social_stream/models/object.rb +5 -3
- data/lib/social_stream/models/subject.rb +50 -31
- data/lib/social_stream/rails.rb +5 -0
- data/lib/social_stream/test_helpers.rb +11 -0
- data/lib/social_stream/test_helpers/controllers.rb +64 -0
- data/lib/social_stream/version.rb +1 -1
- data/lib/tasks/db/populate.rake +110 -25
- data/social_stream.gemspec +7 -1
- data/spec/controllers/contacts_controller_spec.rb +1 -1
- data/spec/controllers/groups_controller_spec.rb +8 -0
- data/spec/controllers/home_controller_spec.rb +15 -0
- data/spec/controllers/likes_controller_spec.rb +29 -0
- data/spec/controllers/posts_controller_spec.rb +41 -0
- data/spec/controllers/profiles_controller_spec.rb +46 -0
- data/spec/controllers/users_controller_spec.rb +2 -2
- data/spec/dummy/.gitignore +4 -0
- data/spec/dummy/config/database.yml +8 -0
- data/spec/dummy/config/environments/test_pg.rb +35 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/factories/group.rb +1 -1
- data/spec/integration/navigation_spec.rb +1 -1
- data/spec/models/actor_spec.rb +4 -4
- data/spec/models/user_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- data/spec/support/db.rb +7 -0
- metadata +198 -116
- data/app/controllers/messages_controller.rb +0 -3
- data/app/models/message.rb +0 -2
- data/app/views/groups/_middle_index.html.erb +0 -74
- data/app/views/groups/_right_index.html.erb +0 -19
- data/app/views/groups/_right_show.html.erb +0 -8
- data/app/views/home/_middle.html.erb +0 -4
- data/app/views/home/_options.html.erb +0 -8
- data/app/views/home/_right.html.erb +0 -17
- data/app/views/messages/_form.html.erb +0 -24
- data/app/views/messages/_index.html.erb +0 -24
- data/app/views/messages/_message.html.erb +0 -17
- data/app/views/messages/_messages.html.erb +0 -2
- data/app/views/messages/index.html.erb +0 -1
- data/app/views/messages/new.html.erb +0 -14
- data/app/views/messages/show.html.erb +0 -21
- data/app/views/users/_menu.html.erb +0 -7
- data/app/views/users/_options.html.erb +0 -5
- data/app/views/users/_right_index.html.erb +0 -19
- data/app/views/users/_right_show.html.erb +0 -14
- data/lib/generators/social_stream/templates/public/images/btn/btn_share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/favicon.ico +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/meet.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/share.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/hoverIntent.js +0 -84
- data/lib/generators/social_stream/templates/public/stylesheets/activities.css +0 -235
- data/lib/generators/social_stream/templates/public/stylesheets/base.css +0 -68
- data/lib/generators/social_stream/templates/public/stylesheets/boxy.css +0 -49
- data/lib/generators/social_stream/templates/public/stylesheets/browse.css +0 -162
- data/lib/generators/social_stream/templates/public/stylesheets/carousel.css +0 -57
- data/lib/generators/social_stream/templates/public/stylesheets/edit_user.css +0 -104
- data/lib/generators/social_stream/templates/public/stylesheets/frontpage.css +0 -708
- data/lib/generators/social_stream/templates/public/stylesheets/header.css +0 -116
- data/lib/generators/social_stream/templates/public/stylesheets/home.css +0 -121
- data/lib/generators/social_stream/templates/public/stylesheets/index.css +0 -625
- data/lib/generators/social_stream/templates/public/stylesheets/jqcloud.css +0 -62
- data/lib/generators/social_stream/templates/public/stylesheets/menu.css +0 -83
- data/lib/generators/social_stream/templates/public/stylesheets/message.css +0 -46
- data/lib/generators/social_stream/templates/public/stylesheets/middle.css +0 -113
- data/lib/generators/social_stream/templates/public/stylesheets/right.css +0 -58
- data/lib/generators/social_stream/templates/public/stylesheets/social_stream.css +0 -78
- data/lib/generators/social_stream/templates/public/stylesheets/ui.dropdownchecklist.css +0 -21
- data/spec/dummy/db/.gitignore +0 -2
- data/spec/dummy/log/.gitignore +0 -1
- data/spec/dummy/public/javascripts/application.js +0 -2
- data/spec/dummy/public/javascripts/controls.js +0 -965
- data/spec/dummy/public/javascripts/dragdrop.js +0 -974
- data/spec/dummy/public/javascripts/effects.js +0 -1123
- data/spec/dummy/public/javascripts/prototype.js +0 -6001
- data/spec/dummy/public/javascripts/rails.js +0 -175
@@ -0,0 +1,27 @@
|
|
1
|
+
<h1>Listing logos</h1>
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<tr>
|
5
|
+
<th></th>
|
6
|
+
<th></th>
|
7
|
+
<th></th>
|
8
|
+
</tr>
|
9
|
+
|
10
|
+
<% @logos.each do |logo| %>
|
11
|
+
<tr>
|
12
|
+
<% #debugger %>
|
13
|
+
<td><%= image_tag logo.logo.url(:profile) %></image_tag></td>
|
14
|
+
<td><%= image_tag logo.logo.url(:tie) %></image_tag></td>
|
15
|
+
<td><%= image_tag logo.logo.url() %></image_tag></td>
|
16
|
+
<td><%= image_tag logo.logo.url(:actor) %></image_tag></td>
|
17
|
+
|
18
|
+
<td><%= link_to 'Show', logo %></td>
|
19
|
+
<td><%= link_to 'Edit', edit_logo_path(logo) %></td>
|
20
|
+
<td><%= link_to 'Destroy', logo, :confirm => 'Are you sure?', :method => :delete %></td>
|
21
|
+
</tr>
|
22
|
+
<% end %>
|
23
|
+
</table>
|
24
|
+
|
25
|
+
<br />
|
26
|
+
|
27
|
+
<%= link_to 'New Logo', new_logo_path %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<% content_for :headers do %>
|
2
|
+
<%= javascript_include_tag 'jquery.Jcrop.min' %>
|
3
|
+
<%= stylesheet_link_tag "jquery.Jcrop", :media => "screen, projection" %>
|
4
|
+
<%= stylesheet_link_tag "logos", :media => "screen, projection" %>
|
5
|
+
<%end%>
|
6
|
+
<h1>Create a new logo</h1>
|
7
|
+
<% if current_subject.blank? %>
|
8
|
+
LOGUEATE
|
9
|
+
<% else %>
|
10
|
+
|
11
|
+
<% if !@logo.logo.errors['precrop'].blank? %>
|
12
|
+
<%= render :partial => 'precrop' %>
|
13
|
+
<% else %>
|
14
|
+
<%= render :partial => 'form' %>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<%= link_to 'Back', logos_path %>
|
18
|
+
|
19
|
+
|
20
|
+
<% end %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%= div_for (conversation) do %>
|
2
|
+
<h3>
|
3
|
+
<%= link_to(conversation.subject, mailbox_conversation_path(conversation.id,:box => params[:id])) %>
|
4
|
+
<% unless params[:id].present? and params[:id].eql?'trash' %>
|
5
|
+
<%= link_to ( image_tag('btn/btn_delete.png', :atl => "Delete", :title => "Delete"),
|
6
|
+
mailbox_conversation_path(conversation, :location => params[:id]),
|
7
|
+
:confirm => 'Do you want to move "' + conversation.subject + '" to trash?',
|
8
|
+
:method => :delete, :remote => true) %>
|
9
|
+
<% end %>
|
10
|
+
</h3>
|
11
|
+
<%= conversation.updated_at %>
|
12
|
+
<br>
|
13
|
+
<b>From:</b><br>
|
14
|
+
<%= link_to image_tag(conversation.last_sender.logo.url(:actor),
|
15
|
+
:title => conversation.last_sender.name, :alt => conversation.last_sender.name),
|
16
|
+
conversation.last_sender.subject
|
17
|
+
%><br>
|
18
|
+
<b>To:</b><br>
|
19
|
+
<% conversation.get_recipients.each do |recp| %>
|
20
|
+
<%next if Actor.normalize(conversation.last_sender)==Actor.normalize(recp)%>
|
21
|
+
<%= link_to image_tag(recp.logo.url(:tie), :atl => recp.name, :title => recp.name), recp.subject %>
|
22
|
+
<% end %><br>
|
23
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% content_for :headers, stylesheet_link_tag("message", :media => "screen, projection") %>
|
2
|
+
<hr>
|
3
|
+
<% @conversations.each do |conversation| %>
|
4
|
+
<br>
|
5
|
+
<%= render :partial => 'conversation', :object => conversation %>
|
6
|
+
<br>
|
7
|
+
<hr>
|
8
|
+
<% end %>
|
9
|
+
<%= will_paginate @conversations %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<br class="clearfloat" />
|
4
|
+
<div class="space_center">
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div id="new_message" ><%= link_to 'New Message', "" %></div>
|
8
|
+
<div class="space_center">
|
9
|
+
</div>
|
10
|
+
<div class="space_center">
|
11
|
+
</div>
|
12
|
+
<h1>Messages</h1>
|
13
|
+
<%= @mailbox.conversations.count.to_s %> conversations in total
|
14
|
+
<p><h3><%= link_to "Inbox", :action => :show, :id => "inbox" %></h3><%= "(" + @mailbox.inbox.count.to_s + " " + @mailbox.inbox[0].class.to_s + ")"%></p>
|
15
|
+
<p><h3><%= link_to "Sentbox", :action => :show, :id => "sentbox" %></h3><%= "(" + @mailbox.sentbox.count.to_s + " " + @mailbox.sentbox[0].class.to_s + ")"%></p>
|
16
|
+
<p><h3><%= link_to "Trash", :action => :show, :id => "trash" %></h3><%= "(" + @mailbox.trash.count.to_s + " " + @mailbox.trash[0].class.to_s + ")"%></p>
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<li>
|
2
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('mailbox.mailbox'), mailbox_index_path) %>
|
3
|
+
</li>
|
4
|
+
<li>
|
5
|
+
<ul>
|
6
|
+
<li>
|
7
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+ "New message", new_mailbox_conversation_path) %>
|
8
|
+
</li>
|
9
|
+
<li>
|
10
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('mailbox.inbox')+" (" + @mailbox.inbox(:unread => true).count.to_s + ")", mailbox_path(:id => :inbox), :remote => true) %>
|
11
|
+
</li>
|
12
|
+
<li>
|
13
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('mailbox.sentbox'), mailbox_path(:id => :sentbox), :remote => true) %>
|
14
|
+
</li>
|
15
|
+
<li>
|
16
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('mailbox.trash'), mailbox_path(:id => :trash), :remote => true) %>
|
17
|
+
</li>
|
18
|
+
</ul>
|
19
|
+
</li>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<br class="clearfloat" />
|
4
|
+
<div class="space_center">
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div id="new_message" ><%= link_to 'Back', :action=>:index %></div>
|
8
|
+
<div class="space_center">
|
9
|
+
</div><div class="space_center">
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<h1><%= params[:id].capitalize %></h1>
|
13
|
+
<div id="conversations">
|
14
|
+
<%= render :partial => 'conversations' %>
|
15
|
+
</div>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<%= div_for (conversation) do %>
|
2
|
+
<h2><%= conversation.subject %></h2>
|
3
|
+
<hr>
|
4
|
+
Actions: <%= link_to ( image_tag('btn/btn_delete.png', :atl => "Delete", :title => "Delete"),
|
5
|
+
mailbox_conversation_path(conversation, :location => 'conversation'),
|
6
|
+
:confirm => 'Do you want to move "' + conversation.subject + '" to trash?',
|
7
|
+
:method => :delete, :remote => true) %>
|
8
|
+
<hr>
|
9
|
+
<% conversation.get_recipients.each do |recp| %>
|
10
|
+
<%= link_to image_tag(recp.logo.url(:tie), :title=>recp.name, :alt => recp.name), recp.subject %>
|
11
|
+
<% end %><br>
|
12
|
+
|
13
|
+
<% @mails.each do |mail| %>
|
14
|
+
<hr><br>
|
15
|
+
<% message= mail.mailboxer_message %>
|
16
|
+
<%= link_to image_tag(message.sender.logo.url(:tie),:alt => message.sender.name,:title =>message.sender.name), message.sender.subject %><br>
|
17
|
+
<b><%= message.sender.name %></b> on <%= message.created_at %> said:<br>
|
18
|
+
<b><i><%= message.body %></i></b><br><br>
|
19
|
+
Debug:<br>
|
20
|
+
Message.Id: <%= message.id %><br>
|
21
|
+
Mail.Id: <%= mail.id %><br>
|
22
|
+
Mail.Type: <%= mail.mailbox_type %><br>
|
23
|
+
Message.Sender: <%= message.sender.class.to_s %>/<%= message.sender.id.to_s %><br><br>
|
24
|
+
<% end %>
|
25
|
+
<hr><br>
|
26
|
+
Write your answer:<br>
|
27
|
+
<% form_tag mailbox_conversation_path(conversation.id), :method => :put do %>
|
28
|
+
<div class="block">
|
29
|
+
<div class="form_row">
|
30
|
+
<%= label_tag :body %>
|
31
|
+
</div>
|
32
|
+
<div class="form_row">
|
33
|
+
<%= text_area_tag :body, nil,:rows =>6, :cols=> 53, :class => "required form_tag" %>
|
34
|
+
</div>
|
35
|
+
<div class="actions center">
|
36
|
+
<%= submit_tag "Reply", :name => :reply_all,:class => "button" %>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<% end %>
|
40
|
+
<% end %>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<% content_for :headers do %>
|
2
|
+
<%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
|
3
|
+
<%= javascript_include_tag 'jquery.fcbkcomplete.min','jquery.validate' %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<% content_for :javascript do %>
|
7
|
+
$("#_recipients").fcbkcomplete({
|
8
|
+
json_url: "../../contacts/index.json",
|
9
|
+
cache: true,
|
10
|
+
filter_case: true,
|
11
|
+
filter_hide: true,
|
12
|
+
newel: false,
|
13
|
+
height: 6
|
14
|
+
});
|
15
|
+
<% end %>
|
16
|
+
<h1>New Message</h1>
|
17
|
+
<hr>
|
18
|
+
<%= form_tag mailbox_conversation_index_path, :method => :post do %>
|
19
|
+
<% if @conversation and @conversation.errors.any? %>
|
20
|
+
<div id="notice">
|
21
|
+
<h2><%= pluralize(@conversation.errors.count, "error") %> prohibited this message from being sent:</h2>
|
22
|
+
<ul>
|
23
|
+
<% @conversation.errors.full_messages.each do |msg| %>
|
24
|
+
<li>
|
25
|
+
<%= msg %>
|
26
|
+
</li>
|
27
|
+
<% end %>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
<% end %>
|
31
|
+
<div class="block">
|
32
|
+
<div class="form_row">
|
33
|
+
<%= label_tag :recipients %>
|
34
|
+
</div>
|
35
|
+
<div class="form_row">
|
36
|
+
<%= select_tag :_recipients, "", :class => "form_tag" %>
|
37
|
+
</div>
|
38
|
+
<div class="form_row">
|
39
|
+
<%= label_tag :subject %>
|
40
|
+
</div>
|
41
|
+
<div class="form_row">
|
42
|
+
<%= text_field_tag :subject,nil, :class => "required form_tag" %>
|
43
|
+
</div>
|
44
|
+
<div class="form_row">
|
45
|
+
<%= label_tag :body %>
|
46
|
+
</div>
|
47
|
+
<div class="form_row">
|
48
|
+
<%= text_area_tag :body, nil,:rows =>6, :cols=> 53, :class => "required form_tag" %>
|
49
|
+
</div>
|
50
|
+
<div class="actions center">
|
51
|
+
<%= submit_tag "Send Message", :name => :send_message,:class => "button" %>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
<br class="clearfloat" />
|
4
|
+
<div class="space_center">
|
5
|
+
</div>
|
6
|
+
<div id="new_message">
|
7
|
+
<% if params[:box].present? %>
|
8
|
+
<%= link_to 'Back', mailbox_path(:id => params[:box]) %>
|
9
|
+
<% else %>
|
10
|
+
<%= link_to 'Back', mailbox_index_path %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
13
|
+
<div class="space_center">
|
14
|
+
</div>
|
15
|
+
<div class="space_center">
|
16
|
+
</div>
|
17
|
+
<div id="conversation">
|
18
|
+
<%= render :partial => 'form' %>
|
19
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% content_for :sidebar do %>
|
2
|
+
<%#= render :partial => 'home/sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% toolbar_menu(:mailbox) do %>
|
6
|
+
<%= render :partial => 'mailbox/menu_options' %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= render :partial => 'location' %>
|
10
|
+
<br class="clearfloat" />
|
11
|
+
<div class="space_center">
|
12
|
+
</div>
|
13
|
+
<div id="new_message">
|
14
|
+
<% if params[:box].present? %>
|
15
|
+
<%= link_to 'Back', mailbox_path(:id => params[:box]) %>
|
16
|
+
<% else %>
|
17
|
+
<%= link_to 'Back', mailbox_index_path %>
|
18
|
+
<% end %>
|
19
|
+
</div>
|
20
|
+
<div class="space_center">
|
21
|
+
</div>
|
22
|
+
<div class="space_center">
|
23
|
+
</div>
|
24
|
+
<div id="conversation">
|
25
|
+
<% content_for :headers, stylesheet_link_tag("message", :media => "screen, projection") %>
|
26
|
+
<%= render :partial => 'conversation', :locals =>{:conversation => @conversation} %>
|
27
|
+
</div>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<% content_for :sidebar do %>
|
2
|
+
<%#= render :partial => 'home/sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% toolbar_menu(:mailbox) do %>
|
6
|
+
<%= render :partial => 'mailbox/menu_options' %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<%= render :partial => 'mailbox/location' %>
|
10
|
+
<%= render :partial => 'new' %>
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#content").html("<%=escape_javascript(render :partial => 'new') %>");
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render :partial => 'show' %>
|
File without changes
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% content_for :sidebar do %>
|
2
|
+
<%= render :partial => 'home/sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% content_for :toolbar do %>
|
6
|
+
<%= render :partial => "home/toolbar" %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
|
10
|
+
<h1>New message</h1>
|
11
|
+
|
12
|
+
<%= render 'form' %>
|
13
|
+
|
14
|
+
<%= link_to 'Back', messages_path %>
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#content").html("<%=escape_javascript(render :partial => 'show') %>");
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div class="menu_header"><b><%=t('tie.options')%></b>
|
2
|
+
</div>
|
3
|
+
<div id="menu_lateral_ties">
|
4
|
+
<%= render :partial => "menu/tiesGroup" %>
|
5
|
+
</div>
|
6
|
+
<div class="space_center">
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="menu_header"><b><%=t('menu.options')%></b>
|
10
|
+
</div>
|
11
|
+
<div id="menu_lateral">
|
12
|
+
<%= render :partial => "menu/options" %>
|
13
|
+
</div>
|
14
|
+
<div class="space_center">
|
15
|
+
</div>
|
File without changes
|
@@ -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'), '#') %>
|
4
|
+
</li>
|
5
|
+
<li>
|
6
|
+
<%= link_to( image_tag("btn/btn_edit.png", :class => "menu_icon")+t('menu.information'), '#') %>
|
7
|
+
</li>
|
8
|
+
<li>
|
9
|
+
<%= link_to( image_tag("btn/btn_friend.png", :class => "menu_icon")+t('contact.other'), '#') %>
|
10
|
+
</li>
|
11
|
+
</ul>
|
@@ -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'), '#') %>
|
4
|
+
</li>
|
5
|
+
<li>
|
6
|
+
<%= link_to( image_tag("btn/btn_edit.png", :class => "menu_icon")+t('menu.information'), '#') %>
|
7
|
+
</li>
|
8
|
+
<li>
|
9
|
+
<%= link_to( image_tag("btn/btn_friend.png", :class => "menu_icon")+t('contact.other'), '#') %>
|
10
|
+
</li>
|
11
|
+
</ul>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<ul class="menu noaccordion">
|
2
|
+
<li>
|
3
|
+
<%= link_to( image_tag("btn/btn_bookmark.png", :class => "menu_icon")+t('tie.add.bookmark'), '#') %>
|
4
|
+
</li>
|
5
|
+
<li>
|
6
|
+
<%= link_to( image_tag("btn/twitter-follow-icon.png", :size => "19x19", :class => "menu_icon")+t('tie.add.follow'), '#') %>
|
7
|
+
</li>
|
8
|
+
<li>
|
9
|
+
<%= link_to( image_tag("btn/btn_partner.png", :class => "menu_icon")+t('tie.add.partner'), '#') %>
|
10
|
+
</li>
|
11
|
+
<li>
|
12
|
+
<%= link_to( image_tag("btn/btn_friend.png", :class => "menu_icon")+t('tie.add.contact'), '#') %>
|
13
|
+
</li>
|
14
|
+
</ul>
|