social_stream 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +17 -7
- data/app/controllers/frontpage_controller.rb +16 -0
- data/app/models/actor.rb +25 -10
- data/app/models/user.rb +4 -0
- data/app/views/{home → activities}/_activities.html.erb +4 -4
- data/app/views/activities/_new.html.erb +2 -2
- data/app/views/comments/_new.html.erb +1 -1
- data/app/views/frontpage/_header.html.erb +23 -0
- data/app/views/frontpage/_sponsor.html.erb +13 -0
- data/app/views/frontpage/index.html.erb +87 -0
- data/app/views/groups/_follow.html.erb +9 -0
- data/app/views/groups/_followers.html.erb +14 -0
- data/app/views/groups/_logo.html.erb +4 -0
- data/app/views/groups/_middle_show.html.erb +7 -0
- data/app/views/groups/_right_show.html.erb +6 -0
- data/app/views/groups/_tabs.html.erb +32 -0
- data/app/views/groups/show.html.erb +5 -12
- data/app/views/home/_contacts.html.erb +17 -0
- data/app/views/home/_groups.html.erb +6 -7
- data/app/views/home/_location.html.erb +1 -1
- data/app/views/home/_middle.html.erb +4 -0
- data/app/views/home/_options.html.erb +14 -0
- data/app/views/home/_right.html.erb +22 -0
- data/app/views/home/index.html.erb +15 -3
- data/app/views/layouts/_footer.html.erb +12 -0
- data/app/views/layouts/_header.erb +36 -0
- data/app/views/layouts/application.html.erb +81 -0
- data/app/views/layouts/frontpage.html.erb +51 -0
- data/app/views/ties/_suggestions.html.erb +18 -14
- data/app/views/users/_contacts.html.erb +19 -0
- data/app/views/users/_logo.html.erb +6 -0
- data/app/views/users/_menu.html.erb +30 -0
- data/app/views/users/_middle_show.html.erb +2 -0
- data/app/views/users/_profile.html.erb +121 -0
- data/app/views/users/_right_show.html.erb +5 -0
- data/app/views/users/show.html.erb +18 -0
- data/config/locales/en.yml +1 -1
- data/config/routes.rb +5 -1
- data/init.rb +2 -0
- data/lib/generators/social_stream/install_generator.rb +13 -1
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-ne.png +0 -0
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-nw.png +0 -0
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-se.png +0 -0
- data/lib/generators/social_stream/templates/public/images/boxy/boxy-sw.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/_notes/btn_certificates.png.mno +4 -0
- data/lib/generators/social_stream/templates/public/images/btn/arrows-ffffff.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/bold.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_activities.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_bookmark.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_browse.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_certificates.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_check.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_conferences.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_config.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_date.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_delete.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_documents.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_embebed.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_exit.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_find.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_follow.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_follower.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_foward.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_friend.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_gallery.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_help.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_home.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_inbox.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_info.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_like.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_next.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_notifications.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_outline.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_partner.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_photo.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_profile.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_rank.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_security.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_send.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_spam.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_tag.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_video.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/btn_write.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/close.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/flyer.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/index_71.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/italic.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/keynote.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/live.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/new.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/next_conference.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/next_space.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/notifications.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/pixel.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/point_blue.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/point_gray.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/subtime.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/tag_cloud.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/time.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/title_background.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/viewer.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/comments.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/facebook.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/green_sq.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/join.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/meet.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/people.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/purple_sq.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_comments.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_organizers.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_people.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_social.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_tags.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/right_webcam.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/share.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/tags.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/yellow_sq.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logo.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logo/dit.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/original/group.png +0 -0
- data/lib/generators/social_stream/templates/public/images/logos/original/user.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/hoverIntent.js +84 -0
- 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.boxy.js +570 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery.livequery.js +250 -0
- data/lib/generators/social_stream/templates/public/javascripts/main.js +82 -0
- data/lib/generators/social_stream/templates/public/javascripts/menu.js +99 -0
- data/lib/generators/social_stream/templates/public/javascripts/superfish.js +121 -0
- data/lib/generators/social_stream/templates/public/stylesheets/activities.css +231 -0
- data/lib/generators/social_stream/templates/public/stylesheets/base.css +68 -0
- data/lib/generators/social_stream/templates/public/stylesheets/boxy.css +49 -0
- data/lib/generators/social_stream/templates/public/stylesheets/browse.css +120 -0
- data/lib/generators/social_stream/templates/public/stylesheets/frontpage.css +708 -0
- data/lib/generators/social_stream/templates/public/stylesheets/header.css +107 -0
- data/lib/generators/social_stream/templates/public/stylesheets/home.css +98 -0
- data/lib/generators/social_stream/templates/public/stylesheets/index.css +632 -0
- data/lib/generators/social_stream/templates/public/stylesheets/menu.css +83 -0
- data/lib/generators/social_stream/templates/public/stylesheets/middle.css +94 -0
- data/lib/generators/social_stream/templates/public/stylesheets/right.css +57 -0
- data/lib/generators/social_stream/templates/public/stylesheets/social_stream.css +75 -0
- data/lib/generators/social_stream/templates/seeds.yml +1 -1
- data/lib/paperclip/{ext.rb → social_stream.rb} +0 -0
- data/lib/social_stream/models/actor.rb +1 -1
- data/lib/social_stream/rails.rb +3 -2
- data/lib/social_stream/rails/common.rb +1 -0
- data/lib/social_stream/version.rb +1 -1
- data/social_stream.gemspec +2 -1
- metadata +156 -11
data/README.rdoc
CHANGED
@@ -35,21 +35,31 @@ Then, execute:
|
|
35
35
|
rails generate social_stream:install
|
36
36
|
|
37
37
|
This will generate the following:
|
38
|
-
* A
|
38
|
+
* A jquery:install generation for jQuery support
|
39
|
+
* A devise:install generation for authentication support
|
39
40
|
* An initializer configuration file for Social Stream.
|
40
41
|
* A database seeds file for defining Social Stream relations, along with an entry
|
41
42
|
in db/seeds.rb to load it.
|
42
|
-
* A
|
43
|
+
* A new application layout
|
44
|
+
* A migration providing the database schema
|
45
|
+
|
46
|
+
Do not forget to migrate and seed your database
|
47
|
+
|
48
|
+
rake db:migrate
|
49
|
+
rake db:seed
|
43
50
|
|
44
51
|
== Actors and Activity Objects
|
45
52
|
|
46
|
-
{Social Stream}[http://github.com/ging/social_stream] relies in Devise[http://github.com/plataformatec/devise].
|
53
|
+
{Social Stream}[http://github.com/ging/social_stream] relies in Devise[http://github.com/plataformatec/devise]. You have authenticated users support in your application.
|
47
54
|
|
48
|
-
|
49
|
-
<tt>
|
55
|
+
Besides, there is another kind of actor: groups. If you want other type of actors
|
56
|
+
(like organizations or social events) you must include an <tt>actor_id</tt> column in
|
57
|
+
the migration. Then add it to <tt>config/initializers/social_stream.rb</tt>
|
50
58
|
|
51
|
-
|
52
|
-
|
59
|
+
There is also support for two types of basic activity objects: posts and comments.
|
60
|
+
If you create other types, like photos, bookmarks or videos, you must do the same:
|
61
|
+
add a <tt>activity_object_id</tt> column in the migration and include it in the
|
62
|
+
initializer.
|
53
63
|
|
54
64
|
= Documentation
|
55
65
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class FrontpageController < ApplicationController
|
2
|
+
before_filter :redirect_user_to_home, :only => :index
|
3
|
+
|
4
|
+
def index
|
5
|
+
respond_to do |format|
|
6
|
+
format.html # index.html.erb
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def redirect_user_to_home
|
14
|
+
redirect_to(home_path) if user_signed_in?
|
15
|
+
end
|
16
|
+
end
|
data/app/models/actor.rb
CHANGED
@@ -8,7 +8,7 @@ class Actor < ActiveRecord::Base
|
|
8
8
|
|
9
9
|
has_attached_file :logo,
|
10
10
|
:styles => { :small => "30x30" },
|
11
|
-
:default_url => "/:attachment/:style/:subtype_class.png"
|
11
|
+
:default_url => "/images/:attachment/:style/:subtype_class.png"
|
12
12
|
|
13
13
|
has_many :sent_ties,
|
14
14
|
:class_name => "Tie",
|
@@ -116,20 +116,26 @@ class Actor < ActiveRecord::Base
|
|
116
116
|
#
|
117
117
|
# @return [Tie]
|
118
118
|
def suggestion(options = {})
|
119
|
-
|
120
|
-
options[:type].to_s.classify :
|
121
|
-
SuggestedRelations.keys
|
119
|
+
candidates_types = options[:type].present? ?
|
120
|
+
Array(options[:type].to_s.classify) :
|
121
|
+
SuggestedRelations.keys
|
122
122
|
|
123
|
-
|
123
|
+
candidates_classes = candidates_types.map(&:constantize)
|
124
124
|
|
125
125
|
# Candidates are all the instance of "type" minus all the subjects
|
126
126
|
# that are receiving any tie from this actor
|
127
|
-
candidates =
|
127
|
+
candidates = candidates_classes.inject([]) do |cs, klass|
|
128
|
+
cs += klass.all - receiver_subjects(klass)
|
129
|
+
cs -= Array(subject) if subject.is_a?(klass)
|
130
|
+
cs
|
131
|
+
end
|
128
132
|
|
129
133
|
candidate = candidates[rand(candidates.size)]
|
130
134
|
|
131
|
-
|
132
|
-
|
135
|
+
return nil unless candidate.present?
|
136
|
+
|
137
|
+
sent_ties.build :receiver_id => candidate,
|
138
|
+
:relation => Relation.mode(subject_type, candidate.class).find_by_name(SuggestedRelations[candidate.class.to_s])
|
133
139
|
end
|
134
140
|
|
135
141
|
# All the ties this actor has with subject that support activities
|
@@ -148,10 +154,19 @@ class Actor < ActiveRecord::Base
|
|
148
154
|
}
|
149
155
|
end
|
150
156
|
|
151
|
-
# The set of activities in the wall of this actor
|
152
|
-
#
|
157
|
+
# The set of activities in the wall of this actor, includes all the activities
|
158
|
+
# from the ties the actor has access to
|
159
|
+
#
|
160
|
+
# TODO: ties, authorization
|
153
161
|
def wall
|
154
162
|
Activity.wall ties
|
155
163
|
end
|
164
|
+
|
165
|
+
# The set of activities in the wall profile of this actor, includes the activities
|
166
|
+
# from the ties of this actor
|
167
|
+
# TODO: authorization
|
168
|
+
def wall_profile
|
169
|
+
Activity.wall ties
|
170
|
+
end
|
156
171
|
end
|
157
172
|
|
data/app/models/user.rb
CHANGED
@@ -6,14 +6,14 @@
|
|
6
6
|
<div id="wrapper_activities">
|
7
7
|
<div id="wrapper_activities_header">
|
8
8
|
<div id="activities_title" class="content_size">
|
9
|
-
<%= image_tag("
|
9
|
+
<%= image_tag("btn/btn_activities.png") %> <%=t('activity.other')%>
|
10
10
|
</div>
|
11
11
|
|
12
|
-
<%= render :partial => 'activities/new', :locals => { :receiver =>
|
12
|
+
<%= render :partial => 'activities/new', :locals => { :receiver => owner } %>
|
13
13
|
</div>
|
14
14
|
<div id="wall">
|
15
|
-
<% if
|
16
|
-
<%= render
|
15
|
+
<% if activities.any? %>
|
16
|
+
<%= render activities %>
|
17
17
|
<% end %>
|
18
18
|
</div>
|
19
19
|
</div>
|
@@ -5,8 +5,8 @@
|
|
5
5
|
<%= f.hidden_field :_activity_tie_id %>
|
6
6
|
<%= f.text_field :text, :id => "input_activities", :size => 85 %>
|
7
7
|
<div id="activities_share_btn">
|
8
|
-
<%= image_submit_tag "
|
9
|
-
<%= image_submit_tag "
|
8
|
+
<%= image_submit_tag "btn/btn_security.png" %>
|
9
|
+
<%= image_submit_tag "btn/btn_share.png" %>
|
10
10
|
</div>
|
11
11
|
<% end -%>
|
12
12
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<%= f.text_field :text, :class =>"input_new_comments" %>
|
10
10
|
<div class="activities_comment_btn">
|
11
11
|
<div class="activities_security"></div>
|
12
|
-
<%= image_submit_tag "
|
12
|
+
<%= image_submit_tag "btn/btn_share.png" %>
|
13
13
|
</div>
|
14
14
|
<% end %>
|
15
15
|
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div id="global-wrapper">
|
2
|
+
<div id="global" class="banner">
|
3
|
+
<a id="logo" class="frontpage_logo" href="/" alt="<%=t('socialstream')%>"></a>
|
4
|
+
<div id="espacio_header">
|
5
|
+
 
|
6
|
+
</div>
|
7
|
+
<div class="div_login">
|
8
|
+
<%= form_for User.new, :as => :user, :url => user_session_path do |f| -%>
|
9
|
+
<span><%= f.label :email %></span>
|
10
|
+
<%= f.email_field :email, :class => "input_username" %>
|
11
|
+
<span><%= f.label :password %></span>
|
12
|
+
<%= f.password_field :password, :class => "input_username" %>
|
13
|
+
<%= f.submit t(:login), :class => 'other_blue' %>
|
14
|
+
<% end -%>
|
15
|
+
<div class="subtexto">
|
16
|
+
<%= link_to t('register.one'), new_user_registration_path, :class => "register_link" %>
|
17
|
+
<span>|</span>
|
18
|
+
<%= link_to t('user.lost_password'), new_user_password_path, :class => "register_link" %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<br class="clearfloat" />
|
22
|
+
</div>
|
23
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div id="sponsor">
|
2
|
+
<ul>
|
3
|
+
<li>
|
4
|
+
<%=link_to("DIT","http://www.dit.upm.es/")%> -
|
5
|
+
<%=link_to("UPM","http://www.upm.es/")%> &
|
6
|
+
<%=link_to("CISE","http://www.cise.espol.edu.ec/")%> -
|
7
|
+
<%=link_to("ESPOL","http://www.espol.edu.ec/")%>
|
8
|
+
</li>
|
9
|
+
</ul>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,87 @@
|
|
1
|
+
<%= content_for :search do %>
|
2
|
+
<%end %>
|
3
|
+
<div class="left column span-11 borde">
|
4
|
+
<div id="left_espacio">
|
5
|
+
</div>
|
6
|
+
<div id="left_contenido">
|
7
|
+
<div id="vcc_title">
|
8
|
+
<%= t('frontpage.main_title') %>
|
9
|
+
<span id="text_bottom_title">
|
10
|
+
<br/>
|
11
|
+
<%= t('frontpage.stats', :users => User.count, :groups => Group.count) %>
|
12
|
+
</span>
|
13
|
+
</div>
|
14
|
+
<br/>
|
15
|
+
<div id="share">
|
16
|
+
<span><%=image_tag("../images/frontpage/share.gif") %></span>
|
17
|
+
<span>
|
18
|
+
<ul class="purple">
|
19
|
+
</li>
|
20
|
+
<li><%=image_tag("../images/frontpage/purple_sq.png") %><%= t('frontpage.share.sentence2') %>
|
21
|
+
</img>
|
22
|
+
</li>
|
23
|
+
<li>
|
24
|
+
<%=image_tag("../images/frontpage/purple_sq.png") %><%= t('frontpage.share.sentence3') %>
|
25
|
+
</img>
|
26
|
+
</li>
|
27
|
+
</ul>
|
28
|
+
</span>
|
29
|
+
</div>
|
30
|
+
<div id="meet" class="no_float_left">
|
31
|
+
<span><%=image_tag("../images/frontpage/meet.gif") %></span>
|
32
|
+
<span class="no_float">
|
33
|
+
<ul class="green">
|
34
|
+
<li><%=image_tag("../images/frontpage/green_sq.png") %><%= t('frontpage.meet.sentence2') %>
|
35
|
+
</img>
|
36
|
+
</li>
|
37
|
+
</ul>
|
38
|
+
</span>
|
39
|
+
</div>
|
40
|
+
<div id="collaborate" class="no_float_left">
|
41
|
+
<span><%=image_tag("../images/frontpage/collaborate.gif") %></span>
|
42
|
+
<span>
|
43
|
+
<ul class="yellow">
|
44
|
+
<li>
|
45
|
+
<%=image_tag("../images/frontpage/yellow_sq.png") %><%= t('frontpage.collaborate.sentence1') %>
|
46
|
+
</img>
|
47
|
+
</li>
|
48
|
+
<li>
|
49
|
+
<%=image_tag("../images/frontpage/yellow_sq.png") %><%= t('frontpage.collaborate.sentence3') %>
|
50
|
+
</img>
|
51
|
+
</li>
|
52
|
+
</ul>
|
53
|
+
</span>
|
54
|
+
</div>
|
55
|
+
<br/>
|
56
|
+
<div id="join_form" class="no_float_left">
|
57
|
+
<%= link_to image_tag("/images/frontpage/join.gif", :alt=>"register"), new_user_registration_path, :class => "register_link" %>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<div class="right column span-12 borde">
|
62
|
+
<div id="caracteristics">
|
63
|
+
|
64
|
+
<ul>
|
65
|
+
<li class="participants">
|
66
|
+
<%= t('frontpage.elements.participants') %>
|
67
|
+
</li>
|
68
|
+
<li class="organizers">
|
69
|
+
<%= t('frontpage.elements.organizers') %>
|
70
|
+
</li>
|
71
|
+
<li class="spaces">
|
72
|
+
<%= t('frontpage.elements.groups') %>
|
73
|
+
</li>
|
74
|
+
<li class="comments">
|
75
|
+
<%= t('frontpage.elements.comments') %>
|
76
|
+
</li>
|
77
|
+
<li class="tags">
|
78
|
+
<%= t('frontpage.elements.tags') %>
|
79
|
+
</li>
|
80
|
+
<li class="networks">
|
81
|
+
<%= t('frontpage.elements.networks') %>
|
82
|
+
</li>
|
83
|
+
</ul>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
<div id="espacio_body_bottom">
|
87
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<div id="follower">
|
2
|
+
<div id="title_follower">
|
3
|
+
<%=image_tag("btn/btn_follower.png", :alt => "Follower")%><%=@group.followers.count%> <%=t('follower', :count => @group.followers.count)%>
|
4
|
+
</div>
|
5
|
+
<div class="follower_line">
|
6
|
+
<% @group.followers.all.each do |follower| %>
|
7
|
+
<%=link_to((image_tag(follower.logo.url, :alt => follower.name , :size => "40x40")) , follower)%>
|
8
|
+
<%end%>
|
9
|
+
</div>
|
10
|
+
<div class="future_footer">
|
11
|
+
<%=link_to((image_tag("btn/btn_next.png", :alt => "next")) , group_path)%>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<div id="tabright" class="widget">
|
2
|
+
<ul class="tabinfo fondo">
|
3
|
+
<li>
|
4
|
+
<a href="#info">Information</a>
|
5
|
+
</li>
|
6
|
+
<li>
|
7
|
+
<a href="#info"><%=(image_tag("btn/btn_tag.png", :alt => "tags"))+t('tags')%></a>
|
8
|
+
</li>
|
9
|
+
</ul>
|
10
|
+
<div id="info" class="tabinfo">
|
11
|
+
Place:
|
12
|
+
<br/>
|
13
|
+
Avendia Complutense 30
|
14
|
+
<br/>
|
15
|
+
Ciudad Universitaria
|
16
|
+
<br/>
|
17
|
+
28040 Madrid
|
18
|
+
<br/>
|
19
|
+
Phone:
|
20
|
+
<br/>
|
21
|
+
(593-4) 2 269269
|
22
|
+
<br/>
|
23
|
+
<a href="mailto:info@dit.upm.es">info@dit.upm.es</a>
|
24
|
+
<br/>
|
25
|
+
</div>
|
26
|
+
<!--/popular-->
|
27
|
+
<div id="tag" class="tabinfo">
|
28
|
+
tag1, tag2, tag3, tag4, tag5
|
29
|
+
tag6, tag7, tag8, tag9, tag10
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<% content_for :middle do %>
|
2
|
-
|
2
|
+
<%= render :partial => 'middle_show' %>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :right do %>
|
6
|
-
|
6
|
+
<%= render :partial => 'right_show' %>
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
|
@@ -16,13 +16,6 @@
|
|
16
16
|
<div class="space_center">
|
17
17
|
</div>
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<%= render :partial => "home/activities" %>
|
23
|
-
<!--
|
24
|
-
<div id="create_space">
|
25
|
-
Create your conference space <input name="new_space" id="input_new_space" value="" size="50"/><a class="" href="#"><img src="images/buttons/btn_check.png" class="btn_menu_online" alt="Check" />Check</a>
|
26
|
-
</div>
|
27
|
-
-->
|
28
|
-
</div>
|
19
|
+
<%= render :partial => "activities/activities",
|
20
|
+
:locals => { :activities => @group.wall_profile,
|
21
|
+
:owner => @group } %>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<div class="contacts_header">
|
2
|
+
<%=image_tag("btn/btn_friend.png", :class => "contacts_icon")%>
|
3
|
+
<div class="contacts_text_header">
|
4
|
+
<%= current_user.friends.count %> <%= t('friend', :count => current_user.friends.count) %>
|
5
|
+
</div>
|
6
|
+
</div>
|
7
|
+
<div class ="contacts">
|
8
|
+
<div class="contact">
|
9
|
+
<%current_user.friends.all.each do |friend|%>
|
10
|
+
<%=link_to((image_tag (friend.logo.url, :alt => friend.name , :size => "40x40")) , friend)%>
|
11
|
+
<%end%>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<div class="contacts_footer">
|
15
|
+
<%=link_to((image_tag("btn/btn_next.png", :alt => "next")) , users_path) %>
|
16
|
+
</div>
|
17
|
+
|
@@ -1,14 +1,13 @@
|
|
1
|
-
<% if current_user.recent_groups.any? %>
|
2
1
|
<div id="my_groups">
|
3
2
|
<div id="groups_title" class="content_size">
|
4
3
|
<%=t('group.other') %>
|
5
4
|
</div>
|
6
5
|
<div id="groups_list" class="content_size">
|
7
|
-
|
6
|
+
<% if current_user.recent_groups.any? %>
|
7
|
+
<%= render current_user.recent_groups %>
|
8
|
+
<% else %>
|
9
|
+
<div class="space_center">
|
10
|
+
</div>
|
11
|
+
<% end %>
|
8
12
|
</div>
|
9
13
|
</div>
|
10
|
-
<% else %>
|
11
|
-
<div class="space_center">
|
12
|
-
</div>
|
13
|
-
<% end %>
|
14
|
-
|