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
@@ -1,85 +1,93 @@
|
|
1
|
-
<div class="
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<br/>
|
9
|
-
<%= t('frontpage.stats', :users => User.count, :groups => Group.count) %>
|
10
|
-
</span>
|
11
|
-
</div>
|
12
|
-
<br/>
|
13
|
-
<div id="share">
|
14
|
-
<span><%=image_tag("../images/frontpage/share.gif") %></span>
|
15
|
-
<span>
|
16
|
-
<ul class="purple">
|
17
|
-
</li>
|
18
|
-
<li><%=image_tag("../images/frontpage/purple_sq.png") %><%= t('frontpage.share.sentence1') %>
|
19
|
-
</img>
|
20
|
-
</li>
|
21
|
-
<li>
|
22
|
-
<%=image_tag("../images/frontpage/purple_sq.png") %><%= t('frontpage.share.sentence2') %>
|
23
|
-
</img>
|
24
|
-
</li>
|
25
|
-
</ul>
|
26
|
-
</span>
|
27
|
-
</div>
|
28
|
-
<div id="meet" class="no_float_left">
|
29
|
-
<span><%=image_tag("../images/frontpage/meet.gif") %></span>
|
30
|
-
<span class="no_float">
|
31
|
-
<ul class="green">
|
32
|
-
<li><%=image_tag("../images/frontpage/green_sq.png") %><%= t('frontpage.meet.sentence1') %>
|
33
|
-
</img>
|
34
|
-
</li>
|
35
|
-
</ul>
|
36
|
-
</span>
|
37
|
-
</div>
|
38
|
-
<div id="collaborate" class="no_float_left">
|
39
|
-
<span><%=image_tag("../images/frontpage/collaborate.gif") %></span>
|
40
|
-
<span>
|
41
|
-
<ul class="yellow">
|
42
|
-
<li>
|
43
|
-
<%=image_tag("../images/frontpage/yellow_sq.png") %><%= t('frontpage.collaborate.sentence1') %>
|
44
|
-
</img>
|
45
|
-
</li>
|
46
|
-
<li>
|
47
|
-
<%=image_tag("../images/frontpage/yellow_sq.png") %><%= t('frontpage.collaborate.sentence2') %>
|
48
|
-
</img>
|
49
|
-
</li>
|
50
|
-
</ul>
|
51
|
-
</span>
|
52
|
-
</div>
|
53
|
-
<br/>
|
54
|
-
<div id="join_form" class="no_float_left">
|
55
|
-
<%= link_to image_tag("/images/frontpage/join.gif", :alt=>"register"), new_user_registration_path, :class => "register_link" %>
|
56
|
-
</div>
|
1
|
+
<div class="banner_busqueda">
|
2
|
+
<div id="espacio_busqueda">
|
3
|
+
<% flash.each do |name, msg| %>
|
4
|
+
<div id="<%= name %>">« <%= msg %> »</div>
|
5
|
+
<% end %>
|
6
|
+
</div>
|
7
|
+
<%= render :partial => "search" %>
|
57
8
|
</div>
|
58
|
-
</div>
|
59
|
-
<div class="right column span-12 borde">
|
60
|
-
<div id="caracteristics">
|
61
9
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
10
|
+
<div id="wrapper_left">
|
11
|
+
<div id="frontpage_title">
|
12
|
+
<%= t('frontpage.main_title') %>
|
13
|
+
<span id="text_bottom_title">
|
14
|
+
<br/>
|
15
|
+
<%= t('frontpage.stats', :users => User.count, :groups => Group.count) %>
|
16
|
+
</span>
|
17
|
+
</div>
|
18
|
+
<div class="espacio"></div>
|
19
|
+
<div class="espacio"></div>
|
20
|
+
<div id="share">
|
21
|
+
<div class="icon">
|
22
|
+
<div id="icon_share"></div>
|
23
|
+
<div class="icon_text"><%= t('frontpage.share.default')%> </div>
|
24
|
+
</div>
|
25
|
+
<div class="sentences">
|
26
|
+
<ul>
|
27
|
+
<li class="purple"><%= t('frontpage.share.sentence1') %></li>
|
28
|
+
<li class="purple"><%= t('frontpage.share.sentence2') %></li>
|
29
|
+
</ul>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="espacio"></div>
|
33
|
+
|
34
|
+
<div id="meet">
|
35
|
+
<div class="icon">
|
36
|
+
<div id="icon_meet"></div>
|
37
|
+
<div class="icon_text"><%= t('frontpage.meet.default')%> </div>
|
82
38
|
</div>
|
39
|
+
<div class="sentences">
|
40
|
+
<ul>
|
41
|
+
<li class="green"><%= t('frontpage.meet.sentence1') %></li>
|
42
|
+
</ul>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<div class="espacio"></div>
|
46
|
+
|
47
|
+
<div id="collaborate">
|
48
|
+
<div class="icon">
|
49
|
+
<div id="icon_collaborate"></div>
|
50
|
+
<div class="icon_text"><%= t('frontpage.collaborate.default')%> </div>
|
51
|
+
</div>
|
52
|
+
<div class="sentences">
|
53
|
+
<ul>
|
54
|
+
<li class="yellow"><%= t('frontpage.collaborate.sentence1') %></li>
|
55
|
+
<li class="yellow"><%= t('frontpage.collaborate.sentence2') %></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
<div class="espacio"></div>
|
60
|
+
|
61
|
+
<div id="join_form">
|
62
|
+
<%= link_to image_tag("/images/frontpage/join.gif", :alt=>"register"), new_user_registration_path, :class => "register_link" %>
|
63
|
+
</div>
|
83
64
|
</div>
|
84
|
-
|
65
|
+
|
66
|
+
<div id="wrapper_right">
|
67
|
+
<div id="caracteristics">
|
68
|
+
<ul>
|
69
|
+
<li class="participants">
|
70
|
+
<%= t('frontpage.elements.participants') %>
|
71
|
+
</li>
|
72
|
+
<li class="organizers">
|
73
|
+
<%= t('frontpage.elements.organizers') %>
|
74
|
+
</li>
|
75
|
+
<li class="spaces">
|
76
|
+
<%= t('frontpage.elements.groups') %>
|
77
|
+
</li>
|
78
|
+
<li class="comments">
|
79
|
+
<%= t('frontpage.elements.comments') %>
|
80
|
+
</li>
|
81
|
+
<li class="tags">
|
82
|
+
<%= t('frontpage.elements.tags') %>
|
83
|
+
</li>
|
84
|
+
<li class="networks">
|
85
|
+
<%= t('frontpage.elements.networks') %>
|
86
|
+
</li>
|
87
|
+
</ul>
|
88
|
+
</div>
|
85
89
|
</div>
|
90
|
+
|
91
|
+
<div id="espacio_body_bottom"></div>
|
92
|
+
|
93
|
+
|
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
<li>
|
3
|
-
<% end %>
|
1
|
+
<li>
|
4
2
|
<%= div_for group do %>
|
5
3
|
<div class="group_content">
|
6
4
|
<%=link_to(image_tag(group.logo.url(:actor), :class => 'btn_group', :alt => group.name, :title => group.name), group) %>
|
@@ -9,6 +7,4 @@
|
|
9
7
|
<%=link_to(group.name, group)%>
|
10
8
|
</div>
|
11
9
|
<% end %>
|
12
|
-
|
13
|
-
</li>
|
14
|
-
<% end %>
|
10
|
+
</li>
|
@@ -1,34 +1,31 @@
|
|
1
1
|
<% cont=0; %>
|
2
|
-
|
3
2
|
<% @groups.each do |group| %>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<div class="wrap_post">
|
3
|
+
<% if (cont%2) == 0 %>
|
4
|
+
<% cont+=1; %>
|
5
|
+
<div class="row">
|
8
6
|
<% end %>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
7
|
+
<div class="label">
|
8
|
+
<div class="logo">
|
9
|
+
<%= link_to (image_tag(group.logo.url , :size => "50x50", :alt => group.name )), group %>
|
10
|
+
</div>
|
11
|
+
<div class="sub-block">
|
12
|
+
<div class="name black" >
|
13
|
+
<%= link_to group.name, group %>
|
14
|
+
</div>
|
15
|
+
<div class="link">
|
16
|
+
<%= ties_to(group) %>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
23
20
|
<% if ((cont%2) == 0) %>
|
24
|
-
|
21
|
+
</div>
|
25
22
|
<% end %>
|
26
|
-
|
27
23
|
<% end %>
|
28
|
-
|
29
|
-
|
30
24
|
<% if ((cont%2) != 0) %>
|
25
|
+
<div class="label">
|
26
|
+
</div>
|
31
27
|
</div>
|
32
28
|
<% end %>
|
33
|
-
|
34
|
-
<%= will_paginate @groups %>
|
29
|
+
<div class="row">
|
30
|
+
<%= will_paginate @groups %>
|
31
|
+
</div>
|
@@ -1,44 +1,61 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<%=
|
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 %>
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
<% content_for :javascript do %>
|
7
|
+
$(function() {
|
8
|
+
$(".new_group").validate();
|
9
|
+
});
|
10
|
+
$("#group__participants").fcbkcomplete({
|
11
|
+
json_url: "../contacts/index.json",
|
12
|
+
cache: true,
|
13
|
+
filter_case: true,
|
14
|
+
filter_hide: true,
|
15
|
+
newel: false,
|
16
|
+
height: 6
|
17
|
+
});
|
18
|
+
<% end %>
|
8
19
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<% end %>
|
13
|
-
</ul>
|
14
|
-
</div>
|
15
|
-
<% end %>
|
20
|
+
<%= form_for @group do |f| %>
|
21
|
+
<% f.object._founder = current_subject.slug %>
|
22
|
+
<%= f.hidden_field :_founder %>
|
16
23
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
</div>
|
29
|
-
<br>
|
30
|
-
<div class="actions">
|
31
|
-
<%= f.submit %>
|
32
|
-
</div>
|
24
|
+
<% if @group.errors.any? %>
|
25
|
+
<div id="notice">
|
26
|
+
<h2><%= pluralize(@group.errors.count, "error") %> prohibited this group from being saved:</h2>
|
27
|
+
<ul>
|
28
|
+
<% @group.errors.full_messages.each do |msg| %>
|
29
|
+
<li>
|
30
|
+
<%= msg %>
|
31
|
+
</li>
|
32
|
+
<% end %>
|
33
|
+
</ul>
|
34
|
+
</div>
|
33
35
|
<% end %>
|
34
|
-
<
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
36
|
+
<div class="block">
|
37
|
+
<div class="form_row">
|
38
|
+
<div class="form_label">
|
39
|
+
<%= f.label t('group.new.name') %>
|
40
|
+
</div>
|
41
|
+
<div class="form_field">
|
42
|
+
<%= f.text_field :name, :class => "required form_tag" %>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<div class="form_row">
|
46
|
+
<%= f.label t('group.new.participants') %>
|
47
|
+
</div>
|
48
|
+
<div class="form_row">
|
49
|
+
<%= f.select :_participants, [], :class => "form_tag" %>
|
50
|
+
</div>
|
51
|
+
<div class="form_row">
|
52
|
+
<%= f.label :description %>
|
53
|
+
</div>
|
54
|
+
<div class="form_row">
|
55
|
+
<%= f.text_area :description, :rows =>6, :cols=> 53, :class => "form_tag" %>
|
56
|
+
</div>
|
57
|
+
<div class="actions center">
|
58
|
+
<%= f.submit :class => "button" %>
|
59
|
+
</div>
|
60
|
+
</div>
|
44
61
|
<% end %>
|
@@ -0,0 +1,142 @@
|
|
1
|
+
<% content_for :head do %>
|
2
|
+
<%= stylesheet_link_tag "edit_user", :media => "screen, projection" %>
|
3
|
+
<% end %>
|
4
|
+
<div class="space_center"></div>
|
5
|
+
|
6
|
+
<div class="block" id="personal_info" >
|
7
|
+
<div class="header">
|
8
|
+
<div class="header_text">
|
9
|
+
Group Information
|
10
|
+
</div>
|
11
|
+
<div class="header_icon_right">
|
12
|
+
<%= link_to (image_tag('/images/btn/edit.png')), :controller => :groups, :action => :edit, :section => :about_us %>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class="content">
|
16
|
+
|
17
|
+
<% if @group.profile.organization? %>
|
18
|
+
<div class="row">
|
19
|
+
<div class="label">
|
20
|
+
Organization:
|
21
|
+
</div>
|
22
|
+
<div class="field">
|
23
|
+
<%=h @group.profile.organization %>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<%end%>
|
27
|
+
<% if @group.profile.city? %>
|
28
|
+
<div class="row">
|
29
|
+
<div class="label">
|
30
|
+
City:
|
31
|
+
</div>
|
32
|
+
<div class="field">
|
33
|
+
<%=h @group.profile.city %>
|
34
|
+
<% if @group.profile.country? %>
|
35
|
+
, <%=@group.profile.country%>
|
36
|
+
<%end%>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<%end%>
|
40
|
+
<% if @group.profile.description? %>
|
41
|
+
<div class="row">
|
42
|
+
<div class="label">
|
43
|
+
Description:
|
44
|
+
</div>
|
45
|
+
<div class="field">
|
46
|
+
<%=h @group.profile.description %>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
<%end%>
|
50
|
+
<div class="row">
|
51
|
+
<div class="label">
|
52
|
+
Group created at:
|
53
|
+
</div>
|
54
|
+
<div class="field">
|
55
|
+
<%=h h I18n.l @group.created_at, :format => :long %>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
<div class="row">
|
59
|
+
<div class="label">
|
60
|
+
Group updated at:
|
61
|
+
</div>
|
62
|
+
<div class="field">
|
63
|
+
<%=h I18n.l @group.updated_at, :format => :long %>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<div class="block" id="contact_info">
|
70
|
+
<div class="header">
|
71
|
+
<div class="header_text">
|
72
|
+
Contact Information
|
73
|
+
</div>
|
74
|
+
<div class="header_icon_right">
|
75
|
+
<%= link_to (image_tag('/images/btn/edit.png')), :controller => :groups, :action => :edit, :section => :contact_info %>
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
<div class="content">
|
79
|
+
<% if @group.profile.phone? %>
|
80
|
+
<div class="row">
|
81
|
+
<div class="label">
|
82
|
+
Phone
|
83
|
+
</div>
|
84
|
+
<div class="field">
|
85
|
+
<%=h @group.profile.phone %>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
<%end%>
|
89
|
+
<% if @group.profile.mobile? %>
|
90
|
+
<div class="row">
|
91
|
+
<div class="label">
|
92
|
+
Mobile
|
93
|
+
</div>
|
94
|
+
<div class="field">
|
95
|
+
<%=h @group.profile.mobile %>
|
96
|
+
</div>
|
97
|
+
</div>
|
98
|
+
<%end%>
|
99
|
+
<% if @group.profile.fax? %>
|
100
|
+
<div class="row">
|
101
|
+
<div class="label">
|
102
|
+
Fax
|
103
|
+
</div>
|
104
|
+
<div class="field">
|
105
|
+
<%=h @group.profile.fax %>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
<%end%>
|
109
|
+
<% if @group.profile.address? %>
|
110
|
+
<div class="row">
|
111
|
+
<div class="label">
|
112
|
+
Address
|
113
|
+
</div>
|
114
|
+
<div class="field">
|
115
|
+
<%=h @group.profile.address %>
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
<%end%>
|
119
|
+
<% if @group.profile.website? %>
|
120
|
+
<div class="row">
|
121
|
+
<div class="label">
|
122
|
+
Website
|
123
|
+
</div>
|
124
|
+
<div class="field">
|
125
|
+
<a href="<%=h @group.profile.website %>"><%=h @group.profile.website %></a>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
<%end%>
|
129
|
+
<% if @group.email.present? %>
|
130
|
+
<div class="row">
|
131
|
+
<div class="label">
|
132
|
+
E-mail:
|
133
|
+
</div>
|
134
|
+
<div class="field">
|
135
|
+
<%=h @group.email %>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
<%end%>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
</div>
|
142
|
+
</div>
|