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,11 @@
|
|
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_friend.png", :class => "menu_icon")+t('tie.add.contact'), '#') %>
|
10
|
+
</li>
|
11
|
+
</ul>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<div class="menu_header"><b><%=t('tie.options')%></b>
|
2
|
+
</div>
|
3
|
+
<div id="menu_lateral_tie">
|
4
|
+
<%= render :partial => "menu/tiesUser" %>
|
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>
|
@@ -0,0 +1 @@
|
|
1
|
+
This is the profile for <%= link_to @profile.subject.name, @profile.subject %>
|
@@ -1,20 +1,19 @@
|
|
1
1
|
<% if (cs = subject.subjects(:direction => :receivers)).present? %>
|
2
2
|
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
|
3
|
+
<div class="block">
|
4
|
+
<div class="header">
|
5
|
+
<%=image_tag("btn/btn_friend.png", :class => "header_icon")%>
|
6
|
+
<div class="header_text">
|
6
7
|
<%= cs.count %> <%= t('contact', :count => cs.count) %>
|
7
8
|
</div>
|
9
|
+
</div>
|
8
10
|
</div>
|
9
|
-
<div class ="
|
10
|
-
<div class="contact">
|
11
|
+
<div class ="content">
|
12
|
+
<div class="contact space_center">
|
11
13
|
<% cs.each do |contact| %>
|
12
14
|
<%= link_to(image_tag(contact.logo.url, :alt => contact.name , :size => "40x40"), contact) %>
|
13
15
|
<% end %>
|
14
16
|
</div>
|
15
17
|
</div>
|
16
|
-
<div class="contacts_footer">
|
17
|
-
<%=link_to(image_tag("btn/btn_next.png", :alt => "next"), '#') %>
|
18
|
-
</div>
|
19
|
-
|
20
18
|
<% end %>
|
19
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
<ul class="menu noaccordion">
|
3
|
+
<%= content_for?(:menu_mailbox) ? content_for(:menu_mailbox) : capture do %>
|
4
|
+
<li>
|
5
|
+
<%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('mailbox.mailbox'), mailbox_index_path) %>
|
6
|
+
</li>
|
7
|
+
<% end %>
|
8
|
+
<li>
|
9
|
+
<%= link_to( image_tag("btn/btn_friend.png", :class => "menu_icon")+t('contact.other'), '#') %>
|
10
|
+
</li>
|
11
|
+
<li>
|
12
|
+
<%= link_to( image_tag("btn/btn_group.png", :class => "menu_icon")+t('group.new.action'), new_group_path) %>
|
13
|
+
</li>
|
14
|
+
</ul>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% content_for :headers, stylesheet_link_tag("menu", :media => "screen, projection") %>
|
2
|
+
|
3
|
+
<div id="logo_index" class="block">
|
4
|
+
<b><%= link_to(current_subject.name, current_subject)%></b><br/>
|
5
|
+
<%= link_to(image_tag(current_subject.logo.url(:profile) , :alt => current_subject.name ), current_subject ) %>
|
6
|
+
</div>
|
7
|
+
<div class="space_center">
|
8
|
+
</div>
|
9
|
+
<div class="menu_header"><b><%=t('menu.options')%></b>
|
10
|
+
</div>
|
11
|
+
<div id="menu_lateral">
|
12
|
+
<%= render :partial => "subjects/menu_options" %>
|
13
|
+
</div>
|
14
|
+
<div class="space_center">
|
15
|
+
</div>
|
@@ -8,8 +8,9 @@
|
|
8
8
|
</div>
|
9
9
|
<div class="activity_add_ties">
|
10
10
|
<div><%= t('message.one')+":" %><br />
|
11
|
-
|
12
|
-
|
11
|
+
|
12
|
+
<%= form_for @tie do |f| %>
|
13
|
+
|
13
14
|
<%= f.hidden_field :receiver_id %>
|
14
15
|
<%= f.hidden_field :sender_id %>
|
15
16
|
<%= f.text_area :message, :class =>"input_new_tie" %>
|
@@ -1,16 +1,11 @@
|
|
1
1
|
<% if current_subject.pending_ties.any? %>
|
2
|
-
<div class="
|
3
|
-
<div class="
|
4
|
-
<%= image_tag('btn/btn_notifications.png', :class => "
|
5
|
-
<div class="
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
<div class="block">
|
3
|
+
<div class="header">
|
4
|
+
<%= image_tag('btn/btn_notifications.png', :class => "header_icon") %>
|
5
|
+
<div class="header_text"><%= t 'tie.pending.other' %></div>
|
6
|
+
</div>
|
7
|
+
<div class="content">
|
8
|
+
<%= render current_subject.pending_ties %>
|
9
9
|
</div>
|
10
|
-
|
11
|
-
<%= render current_subject.pending_ties %>
|
12
|
-
|
13
10
|
</div>
|
14
11
|
<% end -%>
|
15
|
-
|
16
|
-
|
@@ -10,17 +10,17 @@
|
|
10
10
|
});
|
11
11
|
<% end %>
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
<div class="block">
|
14
|
+
<div class="header">
|
15
|
+
<%= image_tag('btn/notifications.png', :class => "header_icon") %>
|
16
|
+
<div class="header_text">
|
17
|
+
<%=t('tie.suggestion.one') %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="content">
|
21
|
+
<% if (sgs = current_subject.suggestions(2)).present? %>
|
22
|
+
<%= render :partial => '/ties/tie', :collection => sgs %>
|
23
|
+
<%end%>
|
24
|
+
</div>
|
19
25
|
</div>
|
20
|
-
</div>
|
21
|
-
<div class="suggestions">
|
22
|
-
<% if (sgs = current_subject.suggestions(2)).present? %>
|
23
|
-
<%= render sgs %>
|
24
|
-
<%end%>
|
25
|
-
</div>
|
26
26
|
<%end%>
|
@@ -1,21 +1,23 @@
|
|
1
|
-
<div id="tie_<%=dom_id(tie.receiver_subject)%>" class="
|
2
|
-
<div class="
|
1
|
+
<div id="tie_<%=dom_id(tie.receiver_subject)%>" class="row">
|
2
|
+
<div class="logo">
|
3
3
|
<%= link_to(image_tag(tie.receiver_subject.logo.url(:tie)),
|
4
4
|
tie.receiver_subject) %>
|
5
5
|
</div>
|
6
|
-
<div class="
|
7
|
-
<div class="
|
6
|
+
<div class="sub-block">
|
7
|
+
<div class="name">
|
8
8
|
<%= link_to(tie.receiver_subject.name, tie.receiver_subject, :class => "tie_link") %>
|
9
9
|
</div>
|
10
|
-
<div class="
|
10
|
+
<div class="brief">
|
11
11
|
<%= tie_brief(tie.receiver_subject) %>
|
12
12
|
</div>
|
13
|
-
<div class="
|
13
|
+
<div class="link" id="tie_link<%= dom_id(tie.receiver_subject)%>">
|
14
14
|
<%= new_tie_link(tie) %>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
|
-
<div class="
|
17
|
+
<div class="close"><%=link_to('X','#')%></div>
|
18
18
|
<div class="space_center">
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
|
22
|
+
|
23
|
+
|
data/app/views/ties/new.js.erb
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
{ title: "<%= escape_javascript(t('contact.new.title', :name => @tie.receiver_subject.name )) %>" });
|
1
|
+
$('#content').html("<%= escape_javascript(render(:partial => "ties/new")) %>");
|
@@ -4,16 +4,17 @@
|
|
4
4
|
</div>
|
5
5
|
<div id="groups_list" class="content_size">
|
6
6
|
<% if (user.recent_groups.count) > 10 %>
|
7
|
+
<% content_for :headers, stylesheet_link_tag("carousel") %>
|
7
8
|
<div id='carousel_container'>
|
8
9
|
<div id='left_scroll'><%=image_tag("btn/group_left.png")%></div>
|
9
10
|
<div id='carousel_inner'>
|
10
|
-
<ul id='carousel_ul'>
|
11
11
|
<% else %>
|
12
12
|
<div class="space_center"></div>
|
13
13
|
<%end%>
|
14
|
-
|
14
|
+
<ul id='carousel_ul' class="menu_list">
|
15
|
+
<%= render user.recent_groups %>
|
16
|
+
</ul>
|
15
17
|
<% if (user.recent_groups.count) > 10 %>
|
16
|
-
</ul>
|
17
18
|
</div>
|
18
19
|
<div id='right_scroll'><%=image_tag("btn/group_right.png")%></div>
|
19
20
|
</div>
|
@@ -1,31 +1,33 @@
|
|
1
|
-
|
2
1
|
<% cont=0; %>
|
3
|
-
<% @users.each do |user| %>
|
4
|
-
|
5
|
-
<% if (cont%2) == 0
|
6
|
-
cont+=1; %>
|
7
|
-
<div class="wrap_post">
|
8
|
-
<% end %>
|
9
2
|
|
10
|
-
|
11
|
-
<div class="post_picture"><%= link_to (image_tag(user.logo.url , :size => "50x50", :alt => user.name )),user %></div>
|
12
|
-
<div class="post_browse_content_people content_size">
|
13
|
-
<div class="post_browse_title content_size" ><%=link_to(user.name, user)%></div>
|
14
|
-
<div class="content_size">
|
15
|
-
<%= ties_to(user) %>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<% if ((cont%2) == 0) %>
|
21
|
-
</div>
|
22
|
-
<% end %>
|
3
|
+
<% @users.each do |user| %>
|
23
4
|
|
5
|
+
<% if (cont%2) == 0 %>
|
6
|
+
<% cont+=1; %>
|
7
|
+
<div class="row">
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<div class="label">
|
11
|
+
<div class="logo">
|
12
|
+
<%= link_to (image_tag(user.logo.url , :size => "50x50", :alt => user.name )),user %>
|
13
|
+
</div>
|
14
|
+
<div class="sub-block">
|
15
|
+
<div class="name black" >
|
16
|
+
<%=link_to(user.name, user)%>
|
17
|
+
</div>
|
18
|
+
<div class="link">
|
19
|
+
<%= ties_to(user) %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
24
23
|
<% end %>
|
25
24
|
|
26
|
-
|
27
25
|
<% if ((cont%2) != 0) %>
|
26
|
+
<div class="label">
|
27
|
+
</div>
|
28
28
|
</div>
|
29
29
|
<% end %>
|
30
30
|
|
31
|
-
|
31
|
+
<div class="row">
|
32
|
+
<%= will_paginate @users %>
|
33
|
+
</div>
|
@@ -1,168 +1,171 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
<%end%>
|
68
|
-
</div>
|
69
|
-
</div>
|
1
|
+
<div class="space_center"></div>
|
2
|
+
<div class="block" id="personal_info" >
|
3
|
+
<div class="header">
|
4
|
+
<div class="header_text">
|
5
|
+
<%=t('edit.personal_info')%>
|
6
|
+
</div>
|
7
|
+
<div class="header_icon_right">
|
8
|
+
<%= link_to (image_tag('/images/btn/edit.png')), :controller => :users, :action => :edit, :section => :about_me %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<div class="content">
|
12
|
+
<div class="sub-block" >
|
13
|
+
<% if @user.profile.organization? %>
|
14
|
+
<div class="row">
|
15
|
+
<div class="label">
|
16
|
+
<%=t('edit.organization')%>:
|
17
|
+
</div>
|
18
|
+
<div class="field">
|
19
|
+
<%=h @user.profile.organization %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<%end%>
|
23
|
+
<% if @user.profile.birthday? %>
|
24
|
+
<div class="row">
|
25
|
+
<div class="label">
|
26
|
+
<%=t('edit.birthday')%>:
|
27
|
+
</div>
|
28
|
+
<div class="field">
|
29
|
+
<%=h I18n.l @user.profile.birthday, :format => :long %>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="row">
|
33
|
+
<div class="label">
|
34
|
+
Age:
|
35
|
+
</div>
|
36
|
+
<div class="field">
|
37
|
+
<%=h @user.age %>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<%end%>
|
41
|
+
<% if @user.profile.city? %>
|
42
|
+
<div class="row">
|
43
|
+
<div class="label">
|
44
|
+
<%=t('edit.actualcity')%>:
|
45
|
+
</div>
|
46
|
+
<div class="field">
|
47
|
+
<%=h @user.profile.city %>
|
48
|
+
<% if @user.profile.country? %>
|
49
|
+
, <%=@user.profile.country%>
|
50
|
+
<%end%>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
<%end%>
|
54
|
+
<% if @user.profile.description? %>
|
55
|
+
<div class="row">
|
56
|
+
<div class="label">
|
57
|
+
<%=t('edit.aboutme')%>:
|
58
|
+
</div>
|
59
|
+
<div class="row">
|
60
|
+
<%=h @user.profile.description %>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<%end%>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
</div>
|
70
67
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<div class="info_post">
|
134
|
-
<div class="info_left">
|
135
|
-
E-mail
|
136
|
-
</div>
|
137
|
-
<div class="info_center">
|
138
|
-
<%=h @user.email %>
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div class="future_conference" id="experience_info">
|
146
|
-
<div class="future_header">
|
147
|
-
<div class="title_section">
|
148
|
-
Experience
|
149
|
-
</div>
|
150
|
-
<div class="title_righ">
|
151
|
-
<%= link_to "Edit", :controller => :users, :action => :edit, :section => :my_experience %>
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
<div class="post_future_conference">
|
155
|
-
<div class="future_content">
|
156
|
-
<div class="info_post">
|
157
|
-
|
158
|
-
<div class="info_center">
|
159
|
-
<%=h @user.profile.experience %>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
|
163
|
-
</div>
|
164
|
-
</div>
|
165
|
-
</div>
|
68
|
+
<div class="space_center"></div>
|
69
|
+
<div class="block" id="contact_info">
|
70
|
+
<div class="header">
|
71
|
+
<div class="header_text">
|
72
|
+
<%=t('edit.contact')%>
|
73
|
+
</div>
|
74
|
+
<div class="header_icon_right">
|
75
|
+
<%= link_to (image_tag('/images/btn/edit.png')), :controller => :users, :action => :edit, :section => :contact_info %>
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
<div class="content">
|
79
|
+
<% if @user.profile.phone? %>
|
80
|
+
<div class="row">
|
81
|
+
<div class="label">
|
82
|
+
<%=t('edit.phone')%>
|
83
|
+
</div>
|
84
|
+
<div class="field">
|
85
|
+
<%=h @user.profile.phone %>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
<%end%>
|
89
|
+
<% if @user.profile.mobile? %>
|
90
|
+
<div class="row">
|
91
|
+
<div class="label">
|
92
|
+
<%=t('edit.mobile')%>
|
93
|
+
</div>
|
94
|
+
<div class="field">
|
95
|
+
<%=h @user.profile.mobile %>
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
<%end%>
|
99
|
+
<% if @user.profile.fax? %>
|
100
|
+
<div class="row">
|
101
|
+
<div class="label">
|
102
|
+
<%=t('edit.fax')%>
|
103
|
+
</div>
|
104
|
+
<div class="field">
|
105
|
+
<%=h @user.profile.fax %>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
<%end%>
|
109
|
+
<% if @user.profile.address? %>
|
110
|
+
<div class="row">
|
111
|
+
<div class="label">
|
112
|
+
<%=t('edit.address')%>
|
113
|
+
</div>
|
114
|
+
<div class="field">
|
115
|
+
<%=h @user.profile.address %>
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
<%end%>
|
119
|
+
<% if @user.profile.website? %>
|
120
|
+
<div class="row">
|
121
|
+
<div class="label">
|
122
|
+
<%=t('edit.website')%>
|
123
|
+
</div>
|
124
|
+
<div class="field">
|
125
|
+
<a href="<%=h @user.profile.website %>"><%=h @user.profile.website %></a>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
<%end%>
|
166
129
|
|
130
|
+
<div class="row">
|
131
|
+
<div class="label">
|
132
|
+
<%=t('edit.email')%>:
|
133
|
+
</div>
|
134
|
+
<div class="row">
|
135
|
+
<%=h @user.email %>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
</div>
|
167
140
|
|
141
|
+
<div class="space_center"></div>
|
142
|
+
<div class="block" id="experience_info">
|
143
|
+
<div class="header">
|
144
|
+
<div class="header_text">
|
145
|
+
<%=t('edit.experience')%>
|
146
|
+
</div>
|
147
|
+
<div class="header_icon_right">
|
148
|
+
<%= link_to (image_tag('/images/btn/edit.png')), :controller => :users, :action => :edit, :section => :my_experience %>
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
<div class="content">
|
152
|
+
<div class="row">
|
153
|
+
<%=h @user.profile.experience %>
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
</div>
|
168
157
|
|
158
|
+
<div class="space_center"></div>
|
159
|
+
<% if (@user.to_param==current_user.to_param and @user.authentication_token) %>
|
160
|
+
<div class="block" id="developer_info">
|
161
|
+
<div class="header">
|
162
|
+
<div class="header_text">
|
163
|
+
ApiKey: <%= @user.authentication_token %>
|
164
|
+
</div>
|
165
|
+
<div class="header_icon_right">
|
166
|
+
<%= link_to (image_tag('/images/btn/edit.png')), :controller => :api,
|
167
|
+
:action => :create_key %>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
</div>
|
171
|
+
<% end %>
|