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,73 @@
|
|
1
|
+
<% content_for :headers, stylesheet_link_tag("jqcloud") %>
|
2
|
+
|
3
|
+
<div class="space_center"></div>
|
4
|
+
|
5
|
+
<div class="block">
|
6
|
+
<div class="header">
|
7
|
+
<%= image_tag('btn/btn_tag.png', :class => "icon", :size => "15x15") %>
|
8
|
+
<div class="header_text">
|
9
|
+
<%= t 'group.cloud' %>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<div id="wordcloud" class="content"></div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<% if user_signed_in? %>
|
16
|
+
<div class="space_center"></div>
|
17
|
+
<%= render :partial => "ties/suggestions" %>
|
18
|
+
<div class="space_center"></div>
|
19
|
+
<%= render :partial => 'ties/pendings' %>
|
20
|
+
|
21
|
+
|
22
|
+
<%= javascript_include_tag "jqcloud-0.1.3.min.js" %>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<script type="text/javascript">
|
26
|
+
var word_list = new Array(
|
27
|
+
{text: "Lorem", weight: 13, url: "https://github.com/DukeLeNoir/jQCloud"},
|
28
|
+
{text: "Ipsum", weight: 10.5, url: "http://jquery.com/"},
|
29
|
+
{text: "Dolor", weight: 9.4},
|
30
|
+
{text: "Sit", weight: 8},
|
31
|
+
{text: "Amet", weight: 6.2},
|
32
|
+
{text: "Consectetur", weight: 5},
|
33
|
+
{text: "Adipiscing", weight: 5},
|
34
|
+
{text: "Elit", weight: 5},
|
35
|
+
{text: "Nam et", weight: 5},
|
36
|
+
{text: "Leo", weight: 4},
|
37
|
+
{text: "Sapien", weight: 4, url: "http://www.lucaongaro.eu/"},
|
38
|
+
{text: "Pellentesque", weight: 3},
|
39
|
+
{text: "habitant", weight: 3},
|
40
|
+
{text: "morbi", weight: 3},
|
41
|
+
{text: "tristisque", weight: 3},
|
42
|
+
{text: "senectus", weight: 3},
|
43
|
+
{text: "et netus", weight: 3},
|
44
|
+
{text: "et malesuada", weight: 3},
|
45
|
+
{text: "fames", weight: 2},
|
46
|
+
{text: "ac turpis", weight: 2},
|
47
|
+
{text: "egestas", weight: 2},
|
48
|
+
{text: "Aenean", weight: 2},
|
49
|
+
{text: "vestibulum", weight: 2},
|
50
|
+
{text: "elit", weight: 2},
|
51
|
+
{text: "sit amet", weight: 2},
|
52
|
+
{text: "metus", weight: 2},
|
53
|
+
{text: "adipiscing", weight: 2},
|
54
|
+
{text: "ut ultrices", weight: 2},
|
55
|
+
{text: "justo", weight: 1},
|
56
|
+
{text: "dictum", weight: 1},
|
57
|
+
{text: "Ut et leo", weight: 1},
|
58
|
+
{text: "metus", weight: 1},
|
59
|
+
{text: "at molestie", weight: 1},
|
60
|
+
{text: "purus", weight: 1},
|
61
|
+
{text: "Curabitur", weight: 1},
|
62
|
+
{text: "diam", weight: 1},
|
63
|
+
{text: "dui", weight: 1},
|
64
|
+
{text: "ullamcorper", weight: 1},
|
65
|
+
{text: "id vuluptate ut", weight: 1},
|
66
|
+
{text: "mattis", weight: 1},
|
67
|
+
{text: "et nulla", weight: 1},
|
68
|
+
{text: "Sed", weight: 1}
|
69
|
+
);
|
70
|
+
$(document).ready(function() {
|
71
|
+
$("#wordcloud").jQCloud(word_list);
|
72
|
+
});
|
73
|
+
</script>
|
@@ -1,32 +1,38 @@
|
|
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
|
-
|
1
|
+
<% content_for :headers do %>
|
2
|
+
<%= javascript_include_tag 'superfish', 'main', 'jquery-ui-personalized-1.5.2.packed' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
|
6
|
+
<div id="tabright" class="widget block">
|
7
|
+
<ul class="tab fondo">
|
8
|
+
<li>
|
9
|
+
<a href="#info">Information</a>
|
10
|
+
</li>
|
11
|
+
<li>
|
12
|
+
<a href="#tag"><img src="/images/btn/btn_tag.png" alt="Tags" />Tags</a>
|
13
|
+
</li>
|
14
|
+
</ul>
|
15
|
+
<div id="info" class="tab">
|
16
|
+
Place:
|
17
|
+
<br/>
|
18
|
+
Avendia Complutense 30
|
19
|
+
<br/>
|
20
|
+
Ciudad Universitaria
|
21
|
+
<br/>
|
22
|
+
28040 Madrid
|
23
|
+
<br/>
|
24
|
+
Phone:
|
25
|
+
<br/>
|
26
|
+
(593-4) 2 269269
|
27
|
+
<br/>
|
28
|
+
<a href="mailto:info@dit.upm.es">info@dit.upm.es</a>
|
29
|
+
<br/>
|
30
|
+
</div>
|
31
|
+
<!--/popular-->
|
32
|
+
<div id="tag" class="tab">
|
33
|
+
tag1, tag2, tag3, tag4, tag5
|
34
|
+
tag6, tag7, tag8, tag9, tag10
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
32
38
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% content_for :headers, stylesheet_link_tag("menu", :media => "screen, projection") %>
|
2
|
+
|
3
|
+
<div class="center"><%= ties_to(@group) %></div>
|
4
|
+
|
5
|
+
<%= render :partial => 'logo' %>
|
6
|
+
<div class="space_center"></div>
|
7
|
+
<%= render :partial => 'menu/group' %>
|
8
|
+
<div class="space_center"></div>
|
9
|
+
<%= render :partial => 'tabs' %>
|
10
|
+
<div class="space_center"></div>
|
11
|
+
|
12
|
+
<%= render :partial => 'subjects/contacts', :locals => { :subject => @group } %>
|
@@ -0,0 +1,136 @@
|
|
1
|
+
<% content_for :toolbar do %>
|
2
|
+
<%= render :partial => 'toolbar_show' %>
|
3
|
+
<% end %>
|
4
|
+
<% content_for :sidebar do %>
|
5
|
+
<%= render :partial => 'sidebar_show' %>
|
6
|
+
<% end %>
|
7
|
+
<% content_for :headers do %>
|
8
|
+
<%= stylesheet_link_tag "edit_user", :media => "screen, projection" %>
|
9
|
+
<%= javascript_include_tag 'jquery.validate' %>
|
10
|
+
<% end %>
|
11
|
+
<%= form_for(@group, :remote => true) do |f| %>
|
12
|
+
<% if @group.errors.any? %>
|
13
|
+
<div id="error_explanation">
|
14
|
+
<h2><%= pluralize(@group.errors.count, "error") %>prohibited this group from being saved:</h2>
|
15
|
+
<ul>
|
16
|
+
<% @group.errors.full_messages.each do |msg| %>
|
17
|
+
<li>
|
18
|
+
<%= msg %>
|
19
|
+
</li>
|
20
|
+
<% end %>
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
24
|
+
<% content_for :javascript do %>
|
25
|
+
$(function() {
|
26
|
+
$("#content").css('border-bottom', 'none');
|
27
|
+
$(".edit_group").validate();
|
28
|
+
});
|
29
|
+
<% end %>
|
30
|
+
<div class="block">
|
31
|
+
<% if !params[:section].present? or params[:section].eql?("about_us") %>
|
32
|
+
<div class="form_row">
|
33
|
+
<h2><%=t('edit.group_info')%></h2>
|
34
|
+
</div>
|
35
|
+
<div class="form_row">
|
36
|
+
<div class="form_label">
|
37
|
+
<%= f.label :name %>
|
38
|
+
</div>
|
39
|
+
<div class="form_field">
|
40
|
+
<%= f.text_field :name, :class => "required form_tag" %>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
<%= f.fields_for :profile do |profile_form| %>
|
44
|
+
<div class="form_row">
|
45
|
+
<div class="form_label">
|
46
|
+
<%= profile_form.label :organization %>
|
47
|
+
</div>
|
48
|
+
<div class="form_field">
|
49
|
+
<%= profile_form.text_field :organization , :class => "form_tag" %>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
<div class="form_row">
|
53
|
+
<div class="form_label">
|
54
|
+
<%= profile_form.label :city %>
|
55
|
+
</div>
|
56
|
+
<div class="form_field">
|
57
|
+
<%= profile_form.text_field :city, :class => "form_tag" %>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
<div class="form_row">
|
61
|
+
<div class="form_label">
|
62
|
+
<%= profile_form.label :country %>
|
63
|
+
</div>
|
64
|
+
<div class="form_field">
|
65
|
+
<%= profile_form.text_field :country, :class => "form_tag" %>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="form_row">
|
69
|
+
<%= profile_form.label :description %>
|
70
|
+
</div>
|
71
|
+
<div class="form_row">
|
72
|
+
<%= profile_form.text_area :description, :maxlength => 400, :class => "form_tag" %>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
<% end %>
|
76
|
+
<% end %>
|
77
|
+
<% if !params[:section].present? or params[:section].eql?("contact_info") %>
|
78
|
+
<% content_for :javascript do %>
|
79
|
+
$(function() {
|
80
|
+
$("#contact_info").addClass('section_highlight');
|
81
|
+
});
|
82
|
+
<% end %>
|
83
|
+
<div class="form_row">
|
84
|
+
<h2><%=t('edit.contact')%></h2>
|
85
|
+
</div>
|
86
|
+
<%= f.fields_for :profile do |profile_form| %>
|
87
|
+
<div class="form_row">
|
88
|
+
<div class="form_label">
|
89
|
+
<%= profile_form.label :phone %>
|
90
|
+
</div>
|
91
|
+
<div class="form_field">
|
92
|
+
<%= profile_form.text_field :phone, :class => "phone form_tag" %>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
<div class="form_row">
|
96
|
+
<div class="form_label">
|
97
|
+
<%= profile_form.label :mobile %>
|
98
|
+
</div>
|
99
|
+
<div class="form_field">
|
100
|
+
<%= profile_form.text_field :mobile, :class => "phone form_tag" %>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
<div class="form_row">
|
104
|
+
<div class="form_label">
|
105
|
+
<%= profile_form.label :fax %>
|
106
|
+
</div>
|
107
|
+
<div class="form_field">
|
108
|
+
<%= profile_form.text_field :fax, :class => "phone form_tag" %>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
<div class="form_row">
|
112
|
+
<div class="form_label">
|
113
|
+
<%= profile_form.label :address %>
|
114
|
+
</div>
|
115
|
+
<div class="form_field">
|
116
|
+
<%= profile_form.text_field :address, :class => "form_tag" %>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
<div class="form_row">
|
120
|
+
<div class="form_label">
|
121
|
+
<%= profile_form.label :website %>
|
122
|
+
</div>
|
123
|
+
<div class="form_field">
|
124
|
+
<%= profile_form.text_field :website, :class => "url form_tag" %>
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
<% end %>
|
128
|
+
<% end %>
|
129
|
+
</div>
|
130
|
+
<div class="form_row center">
|
131
|
+
<%= f.submit "Update", :class => "button" %>
|
132
|
+
<button class="button" onclick="window.location.href='<%= group_url(@group) %>';">
|
133
|
+
Cancel
|
134
|
+
</button>
|
135
|
+
</div>
|
136
|
+
<% end %>
|
@@ -1,60 +1,61 @@
|
|
1
|
-
<% content_for :
|
1
|
+
<% content_for :headers do -%>
|
2
|
+
<%= stylesheet_link_tag 'smoothness/jquery-ui-1.8.4.custom' %>
|
3
|
+
<% end -%>
|
4
|
+
<% javascript_include_tag 'jqcloud-0.1.3.min','ajax.paginate','jquery.min.js' %>
|
2
5
|
|
3
|
-
<%
|
4
|
-
<%= render :partial => "groups/middle_index" %>
|
5
|
-
<% end %>
|
6
|
+
<% toolbar_menu if user_signed_in? %>
|
6
7
|
|
7
|
-
<% content_for :
|
8
|
-
<%= render :partial => "groups/
|
8
|
+
<% content_for :sidebar do %>
|
9
|
+
<%= render :partial => "groups/sidebar_index" %>
|
9
10
|
<% end %>
|
10
11
|
|
11
|
-
|
12
12
|
<div id="map_location" class="content_size">
|
13
|
-
|
14
|
-
</div>
|
15
|
-
<div id="by_options" class="content_size"><%= link_to(t('user.by'), users_path) %> </div>
|
16
|
-
<br class="clearfloat" />
|
17
|
-
<div class="space_center">
|
13
|
+
Your are here ><img src="images/btn/btn_browse.png" class="btn_config"> <%=t('browse')%>: <span id="name_group"><b><%= t('group.all')%></b></span>, <%= link_to(t('user.by'), users_path) %>
|
18
14
|
</div>
|
19
15
|
|
20
|
-
<div id="my_conferences">
|
21
|
-
<div id="tabconference_browse" class="widget content_size">
|
22
|
-
<ul class="tabconference_browse">
|
23
|
-
<li>
|
24
|
-
<a href="/groups">All <%= t('group.other')%> (<%=Group.count%>) </a>
|
25
|
-
</li>
|
26
|
-
<li>
|
27
|
-
<a href="#most_popular"> <%= t('group.popular.most')%></a>
|
28
|
-
</li>
|
29
|
-
<li>
|
30
|
-
<a href="#most_voted"> <%= t('group.voted.most')%> </a>
|
31
|
-
</li>
|
32
|
-
</ul>
|
33
|
-
<div id="spaces" class="tabconference_browse">
|
34
|
-
<div class="space_center">
|
35
|
-
</div>
|
36
|
-
<div class="search_field_wrapper"><input type="text" value="Search by name" id="search_field" class="search_input" /><%= image_tag("btn/search.png",:size=>"20x20",:id=>"search_button") %></div>
|
37
|
-
<div class="space_center">
|
38
|
-
</div>
|
39
|
-
<div class="letters" class="content_size">
|
40
|
-
<% for char in 'A'..'Z' %>
|
41
|
-
<%= link_to char,{:letter => char,:page => 1},:class => "user_letter_link" %>
|
42
|
-
<% end %>
|
43
|
-
</div>
|
44
|
-
<div class="space_center" class="content_size">
|
45
16
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
17
|
+
<div class="space_center"></div>
|
18
|
+
<div class="space_center"></div>
|
19
|
+
<div class="space_center"></div>
|
20
|
+
<div class="space_center"></div>
|
21
|
+
|
22
|
+
<div id="my_conferences" class="block">
|
23
|
+
<div id="tab" class="widget content_size">
|
24
|
+
<ul class="tab">
|
25
|
+
<li>
|
26
|
+
<a href="/groups">All <%= t('group.other')%> (<%=Group.count%>) </a>
|
27
|
+
</li>
|
28
|
+
<li>
|
29
|
+
<a href="#most_popular"> <%= t('group.popular.most')%></a>
|
30
|
+
</li>
|
31
|
+
<li>
|
32
|
+
<a href="#most_voted"> <%= t('group.voted.most')%> </a>
|
33
|
+
</li>
|
34
|
+
</ul>
|
35
|
+
<div id="spaces" class="tab">
|
36
|
+
<div class="space_center"></div>
|
37
|
+
<div class="row">
|
38
|
+
<input type="text" value="Search by name" id="search_field" class="search_input" />
|
39
|
+
<%= image_tag("btn/search.png",:size=>"20x20",:id=>"search_button") %>
|
40
|
+
</div>
|
41
|
+
<div class="space_center"></div>
|
42
|
+
<div class="row">
|
43
|
+
<div class="center">
|
44
|
+
<% for g in Group.distinct_initials %>
|
45
|
+
<%= link_to g.initial,{:letter => g.initial,:page => 1},:class => "user_letter_link" %>
|
46
|
+
<% end %>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
<div class="space_center"></div>
|
50
|
+
<div id="list_users_ajax" class="tab_content">
|
51
|
+
<%= render :partial => "groups/index"%>
|
52
|
+
</div>
|
53
|
+
<div class="space_center"></div>
|
54
|
+
</div>
|
55
|
+
</div>
|
54
56
|
</div>
|
55
57
|
|
56
58
|
|
57
59
|
<br class="clearfloat" />
|
58
60
|
<div class="space_center">
|
59
61
|
</div>
|
60
|
-
<%= javascript_include_tag "ajax.paginate" %>
|
@@ -1,9 +1,14 @@
|
|
1
|
-
<% content_for :
|
2
|
-
<%=
|
1
|
+
<% content_for :headers do -%>
|
2
|
+
<%= stylesheet_link_tag 'fcbkComplete' %>
|
3
|
+
<% end -%>
|
4
|
+
|
5
|
+
|
6
|
+
<% content_for :sidebar do %>
|
7
|
+
<%= render :partial => 'sidebar_show' %>
|
3
8
|
<% end %>
|
4
9
|
|
5
|
-
<% content_for :
|
6
|
-
<%= render :partial => '
|
10
|
+
<% content_for :toolbar do %>
|
11
|
+
<%= render :partial => 'toolbar_show' %>
|
7
12
|
<% end %>
|
8
13
|
|
9
14
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
<% puts "llego al js" %>
|
3
|
+
|
4
|
+
if ($("#notice").length == 0){
|
5
|
+
|
6
|
+
$("#content").prepend('<div id="notice"></div>');
|
7
|
+
|
8
|
+
}
|
9
|
+
|
10
|
+
<% if @group.valid? %>
|
11
|
+
|
12
|
+
$("#notice").html("<h2>Form Submitted!</h2><br/>");
|
13
|
+
$("#notice").removeClass('error_explanation');
|
14
|
+
$("#notice").addClass('confirmed');
|
15
|
+
$("#sidebarContent").replaceWith("<%= escape_javascript(render(:partial => 'sidebar_show'))%>");
|
16
|
+
|
17
|
+
$("#contact_info").addClass('section_normal');
|
18
|
+
$("#personal_info").addClass('section_normal');
|
19
|
+
|
20
|
+
<% if !params[:section].present? or params[:section].eql?("about_us") %>
|
21
|
+
$("#personal_info").removeClass('section_normal');
|
22
|
+
$("#personal_info").addClass('section_highlight');
|
23
|
+
<%end%>
|
24
|
+
|
25
|
+
<% if !params[:section].present? or params[:section].eql?("contact_info") %>
|
26
|
+
$("#contact_info").removeClass('section_normal');
|
27
|
+
$("#contact_info").addClass('section_highlight');
|
28
|
+
<%end%>
|
29
|
+
|
30
|
+
|
31
|
+
<% else %>
|
32
|
+
$("#notice").html("<h2><%= pluralize(@group.errors.count, "error") %> prohibited this user from being saved:</h2>"
|
33
|
+
+"<ul><% @group.errors.full_messages.each do |msg| %><li><%= msg %></li><% end %></ul><br/>");
|
34
|
+
$("#notice").removeClass('confirmed');
|
35
|
+
$("#notice").addClass('error_explanation');
|
36
|
+
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
|