social_stream-events 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/GPL Affero license +663 -0
- data/Gemfile +9 -0
- data/README.rdoc +6 -0
- data/Rakefile +29 -0
- data/app/assets/images/btn/btn_certificate.png +0 -0
- data/app/assets/images/btn/btn_certificates.png +0 -0
- data/app/assets/images/btn/btn_edit.png +0 -0
- data/app/assets/images/btn/btn_embebed.png +0 -0
- data/app/assets/images/btn/btn_event.png +0 -0
- data/app/assets/images/btn/btn_outline.png +0 -0
- data/app/assets/images/btn/event.png +0 -0
- data/app/assets/images/btn/flyer.png +0 -0
- data/app/assets/images/btn/keynote.png +0 -0
- data/app/assets/images/btn/live.png +0 -0
- data/app/assets/images/btn/time.png +0 -0
- data/app/assets/images/btn/trash.png +0 -0
- data/app/assets/images/icons/IconsByGlyphish.txt +1 -0
- data/app/assets/images/icons/down.png +0 -0
- data/app/assets/images/icons/search.png +0 -0
- data/app/assets/images/icons/up.png +0 -0
- data/app/assets/images/logos/actor/event.png +0 -0
- data/app/assets/images/logos/contact/event.png +0 -0
- data/app/assets/images/logos/original/event.png +0 -0
- data/app/assets/images/logos/profile/event.png +0 -0
- data/app/assets/images/logos/representation/event.png +0 -0
- data/app/assets/images/tab_bottom.png +0 -0
- data/app/assets/javascripts/schedule.js +123 -0
- data/app/assets/javascripts/settings.js +20 -0
- data/app/assets/javascripts/social_stream-events.js +5 -0
- data/app/assets/stylesheets/activities.css +4 -0
- data/app/assets/stylesheets/fullcalendar.css +621 -0
- data/app/assets/stylesheets/fullcalendar.print.css +61 -0
- data/app/assets/stylesheets/settings.css +4 -0
- data/app/assets/stylesheets/social_stream-events.css +262 -0
- data/app/assets/stylesheets/tie.css +4 -0
- data/app/assets/stylesheets/users.css +4 -0
- data/app/controllers/activities_controller.rb +42 -0
- data/app/controllers/agendas_controller.rb +54 -0
- data/app/controllers/calendar_events_controller.rb +157 -0
- data/app/controllers/events_controller.rb +85 -0
- data/app/controllers/sessions_controller.rb +133 -0
- data/app/controllers/settings_controller.rb +70 -0
- data/app/helpers/event_helper.rb +12 -0
- data/app/models/agenda.rb +55 -0
- data/app/models/calendar_event.rb +191 -0
- data/app/models/calendar_event_series.rb +126 -0
- data/app/models/event.rb +131 -0
- data/app/models/session.rb +22 -0
- data/app/views/activities/_activity.html.erb +5 -0
- data/app/views/activities/_child.html.erb +18 -0
- data/app/views/activities/_comments.html.erb +3 -0
- data/app/views/activities/_index.html.erb +95 -0
- data/app/views/activities/_new.html.erb +29 -0
- data/app/views/activities/_options.html.erb +15 -0
- data/app/views/activities/_root.html.erb +37 -0
- data/app/views/activities/_wall.html.erb +5 -0
- data/app/views/activities/_walls.html.erb +34 -0
- data/app/views/activities/documents.js.erb +1 -0
- data/app/views/activities/index.js.erb +1 -0
- data/app/views/agendas/_agenda.html.erb +1 -0
- data/app/views/agendas/_edit.html.erb +136 -0
- data/app/views/agendas/_schedule.html.erb +19 -0
- data/app/views/agendas/_show.html.erb +81 -0
- data/app/views/agendas/_show_day.html.erb +6 -0
- data/app/views/agendas/edit.html.erb +24 -0
- data/app/views/agendas/event.html.erb +1 -0
- data/app/views/agendas/index.html.erb +0 -0
- data/app/views/agendas/show.html.erb +25 -0
- data/app/views/calendar_events/_calendar.html.erb +0 -0
- data/app/views/calendar_events/_edit_form.html.erb +58 -0
- data/app/views/calendar_events/_form.html.erb +65 -0
- data/app/views/calendar_events/available.html.erb +81 -0
- data/app/views/calendar_events/create.js.erb +18 -0
- data/app/views/calendar_events/edit.js.erb +1 -0
- data/app/views/calendar_events/index.html.erb +162 -0
- data/app/views/calendar_events/move.js.erb +0 -0
- data/app/views/calendar_events/new.js.erb +9 -0
- data/app/views/calendar_events/resize.js.erb +0 -0
- data/app/views/calendar_events/schedule.html.erb +143 -0
- data/app/views/documents/_mediawall.html.erb +111 -0
- data/app/views/events/_event.html.erb +10 -0
- data/app/views/events/_fields.html.erb +5 -0
- data/app/views/events/_form.html.erb +12 -0
- data/app/views/events/_jquery.html.erb +125 -0
- data/app/views/events/_manage.html.erb +35 -0
- data/app/views/events/_new.html.erb +2 -0
- data/app/views/events/_sessions_edit.html.erb +46 -0
- data/app/views/events/_sidebar_cloud.html.erb +27 -0
- data/app/views/events/_sidebar_index.html.erb +1 -0
- data/app/views/events/_sidebar_show.html.erb +5 -0
- data/app/views/events/agendas.html +1 -0
- data/app/views/events/edit.html.erb +12 -0
- data/app/views/events/index.html.erb +30 -0
- data/app/views/events/manage.html.erb +69 -0
- data/app/views/events/manage.js.erb +1 -0
- data/app/views/events/show.html.erb +34 -0
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +11 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +23 -0
- data/app/views/kaminari/_prev_page.html.erb +11 -0
- data/app/views/profiles/_outline.html.erb +81 -0
- data/app/views/profiles/_profile.html.erb +40 -0
- data/app/views/sessions/_form.html.erb +41 -0
- data/app/views/sessions/_new.html.erb +63 -0
- data/app/views/sessions/_session.html.erb +1 -0
- data/app/views/sessions/_show.html.erb +27 -0
- data/app/views/sessions/create.html.erb +3 -0
- data/app/views/sessions/create.js.erb +1 -0
- data/app/views/sessions/destroy.js.erb +2 -0
- data/app/views/sessions/edit.html.erb +27 -0
- data/app/views/sessions/index.html.erb +1 -0
- data/app/views/sessions/index.js.erb +1 -0
- data/app/views/sessions/new.html.erb +27 -0
- data/app/views/settings/_contacto.html.erb +24 -0
- data/app/views/settings/_header.html.erb +8 -0
- data/app/views/settings/_index.html.erb +16 -0
- data/app/views/settings/_manage.html.erb +25 -0
- data/app/views/settings/_settings.html.erb +49 -0
- data/app/views/settings/delete_relation.js.erb +3 -0
- data/app/views/settings/index.html.erb +38 -0
- data/app/views/settings/manage.html.erb +31 -0
- data/app/views/settings/show.html.erb +15 -0
- data/app/views/settings/update_relation.js.erb +1 -0
- data/app/views/toolbar/_home.html.erb +11 -0
- data/app/views/toolbar/_logo.html.erb +23 -0
- data/app/views/toolbar/_organizer.html.erb +25 -0
- data/app/views/toolbar/_profile.html.erb +21 -0
- data/app/views/toolbar/_sponsor.html.erb +18 -0
- data/app/views/toolbar/_suscribed.html.erb +17 -0
- data/app/views/users/_index.html.erb +33 -0
- data/app/views/users/index.html.erb +46 -0
- data/config/locales/en.yml +97 -0
- data/config/routes.rb +46 -0
- data/db/20110615143707_create_social_stream_events.rb +54 -0
- data/lib/generators/social_stream/events/install_generator.rb +24 -0
- data/lib/social_stream-events.rb +15 -0
- data/lib/social_stream/events/engine.rb +8 -0
- data/lib/social_stream/migrations/events.rb +25 -0
- data/social_stream-events.gemspec +22 -0
- data/vendor/assets/javascripts/fullcalendar.js +5208 -0
- data/vendor/assets/javascripts/gcal.js +112 -0
- metadata +272 -0
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% content_for :title do%>
|
2
|
+
<%= t('session.new') + '::' + @event.name %>
|
3
|
+
<%end%>
|
4
|
+
<% if @event.profile.description? %>
|
5
|
+
<% content_for :description do %>
|
6
|
+
<%= @event.profile.description%>
|
7
|
+
<% end %>
|
8
|
+
<%end%>
|
9
|
+
|
10
|
+
<% content_for :keywords do %>
|
11
|
+
<%= @event.tag_list%>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% content_for :sidebar do %>
|
15
|
+
<%= render :partial => 'users/sidebar_index' %>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% toolbar :profile => @event %>
|
19
|
+
|
20
|
+
|
21
|
+
<%= location(link_to(image_tag("btn/btn_outline.png", :class => "menu_icon")+t('menu.outline'),
|
22
|
+
agenda_path(@event))+ ' > ' +
|
23
|
+
t('session.new')
|
24
|
+
|
25
|
+
) %>
|
26
|
+
|
27
|
+
<%= render :partial => "form", :locals => {:session=>@session,:event=>@event} %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%=debug(@event) %>
|
@@ -0,0 +1 @@
|
|
1
|
+
index de <%=@event.agenda%>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<% content_for :title do%>
|
2
|
+
<%= t('session.new') + '::' + @event.name %>
|
3
|
+
<%end%>
|
4
|
+
<% if @event.profile.description? %>
|
5
|
+
<% content_for :description do %>
|
6
|
+
<%= @event.profile.description%>
|
7
|
+
<% end %>
|
8
|
+
<%end%>
|
9
|
+
|
10
|
+
<% content_for :keywords do %>
|
11
|
+
<%= @event.tag_list%>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% content_for :sidebar do %>
|
15
|
+
<%= render :partial => 'users/sidebar_index' %>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% toolbar :profile => @event %>
|
19
|
+
|
20
|
+
|
21
|
+
<%= location(link_to(image_tag("btn/btn_outline.png", :class => "menu_icon")+t('menu.outline'),
|
22
|
+
agenda_path(@event))+ ' > ' +
|
23
|
+
t('session.new')
|
24
|
+
|
25
|
+
) %>
|
26
|
+
|
27
|
+
<%= render :partial => "new" %>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<% variable=current_subject.ties_to(contact).to_a %>
|
2
|
+
<% temporal='' %>
|
3
|
+
<% variable.each do |temp| %>
|
4
|
+
<% temporal=temp.relation_id %>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<div class="label" id="contact<%=contact.actor_id.to_s%>">
|
8
|
+
<div class="logo">
|
9
|
+
<%= link_to image_tag(contact.logo.url , :size => "50x50", :alt => contact.name), contact %>
|
10
|
+
</div>
|
11
|
+
<div class="sub-block">
|
12
|
+
<div class="name black" >
|
13
|
+
<%=link_to(truncate_name(contact.name), contact)%>
|
14
|
+
</div>
|
15
|
+
<div class="link">
|
16
|
+
<%= form_tag "/settings/update_relation/"+contact.actor_id.to_s, :method => :post ,:id=> 'form_'+contact.actor_id.to_s, :class => "tie_form",:remote=> true do %>
|
17
|
+
<%= select "manage","contacts",current_subject.relation_customs.collect{|r| [r.name, r.id]}, {:selected=>temporal},{:onchange=>'$(\'#form_'+contact.actor_id.to_s+'\').submit();'} %>
|
18
|
+
<% end %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class="link">
|
22
|
+
<%= link_to t('actor.delete'),{:controller => :settings , :action => :delete_relation,:id=>contact.actor_id.to_s}, :confirm => t('actor.confirm_delete'), :remote => true %>
|
23
|
+
<%= link_to image_tag("btn/trash.png" , :alt => contact.name),{:controller => :settings , :action => :delete_relation,:id=>contact.actor_id.to_s}, :confirm => t('actor.confirm_delete'), :remote => true%>
|
24
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%= link_to t('contact.all_n', :count => current_subject.contact_subjects(:direction => :sent).count), contacts_path %> -
|
2
|
+
<% Actor.distinct_initials.
|
3
|
+
contacted_from(current_subject).
|
4
|
+
merge(Tie.related_by(current_subject.relation_customs.find_by_id(params[:relation]))).
|
5
|
+
distinct_initials.
|
6
|
+
each do |l| %>
|
7
|
+
<%= link_to l.initial,{:letter => l.initial,:page => 1},:class => "contact_letter_link" %>
|
8
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= location(link_to(image_tag("btn/btn_config.png", :class => "btn_config")+t('account.one')+": "+t('account.settings')))%>
|
2
|
+
<br class="clearfloat" />
|
3
|
+
<div class="space_center">
|
4
|
+
</div>
|
5
|
+
<h2><%= t('settings.for')%> <%= current_subject.name %></h2>
|
6
|
+
<div class="space_center">
|
7
|
+
</div>
|
8
|
+
<%= render :partial => "notifications" %>
|
9
|
+
|
10
|
+
<% if current_subject.respond_to? :authentication_token%>
|
11
|
+
<%= render :partial => "api_key" %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
|
15
|
+
<%= render :partial => "settings" %>
|
16
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% if params[:pending].present? %>
|
2
|
+
<h2><%= t('contact.pending.other') %></h2>
|
3
|
+
<% else %>
|
4
|
+
<h2><%= t('contact.addressbook') %></h2>
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<div class="space_center"></div>
|
8
|
+
<% cont=0; %>
|
9
|
+
<% @cs.each do |contact| %>
|
10
|
+
<% if (cont%2) == 0 %>
|
11
|
+
<% cont+=1; %>
|
12
|
+
<div class="row">
|
13
|
+
<% end %>
|
14
|
+
<%= render :partial => "settings/contacto", :locals => {:contact => contact} %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% if ((cont%2) != 0) %>
|
19
|
+
<div class="label"></div>
|
20
|
+
</div>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<div class="row">
|
24
|
+
<%= paginate @cs %>
|
25
|
+
</div>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<div class="block" id="manage_settings">
|
2
|
+
<div class="header">
|
3
|
+
<div class="header_text">
|
4
|
+
<%= t('settings.manage.name')%>
|
5
|
+
</div>
|
6
|
+
<div class="header_icon_right">
|
7
|
+
<%= link_to (image_tag('btn/edit.png')), :controller => :settings , :action => :manage%>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class="content" id="contact_settings_briefing">
|
11
|
+
<div class="form_row">
|
12
|
+
<%= t('settings.manage.briefing')%>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class="content" id="contact_settings_content" style="display:none;">
|
16
|
+
<div class="settings_block">
|
17
|
+
<div class="form_row">
|
18
|
+
<%=t('settings.manage.explanation') %>:
|
19
|
+
</div>
|
20
|
+
<div class="form_sub_row">
|
21
|
+
<div id="my_conferences">
|
22
|
+
<div id="contacts" class="block">
|
23
|
+
<div class="search_field_wrapper">
|
24
|
+
<input type="text" value="Search by name" id="search_field" class="search_input" />
|
25
|
+
<%= image_tag("btn/search.png",:size=>"20x20",:id=>"search_button") %>
|
26
|
+
</div>
|
27
|
+
<div class="space_center"></div>
|
28
|
+
<div class="row" >
|
29
|
+
<div class="center">
|
30
|
+
<%= link_to t('contact.all_n', :count => current_subject.contact_subjects(:direction => :sent).count), contacts_path %> -
|
31
|
+
<% Actor.distinct_initials.
|
32
|
+
contacted_from(current_subject).
|
33
|
+
merge(Tie.related_by(current_subject.relation_customs.find_by_id(params[:relation]))).
|
34
|
+
distinct_initials.
|
35
|
+
each do |l| %>
|
36
|
+
<%= link_to l.initial,{:letter => l.initial,:page => 1},:class => "contact_letter_link" %>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<div class="space_center"></div>
|
41
|
+
|
42
|
+
<div id="list_contacts_ajax" class="tab_content block">
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</div>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<% content_for :title do%>
|
2
|
+
<%= t('contact.other')%>
|
3
|
+
<%end%>
|
4
|
+
|
5
|
+
<% content_for :sidebar do %>
|
6
|
+
<%= render :partial => 'home/sidebar' %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<% toolbar :option => :contacts %>
|
10
|
+
|
11
|
+
<div id="my_conferences">
|
12
|
+
<div id="contacts" class="block">
|
13
|
+
<div class="search_field_wrapper">
|
14
|
+
<input type="text" value="Search by name" id="search_field" class="search_input" />
|
15
|
+
<%= image_tag("btn/search.png",:size=>"20x20",:id=>"search_button") %>
|
16
|
+
</div>
|
17
|
+
<div class="space_center"></div>
|
18
|
+
<div class="row" >
|
19
|
+
<div class="center">
|
20
|
+
<%= link_to t('contact.all_n', :count => current_subject.contact_subjects(:direction => :sent).count), contacts_path %> -
|
21
|
+
<% Actor.distinct_initials.
|
22
|
+
contacted_from(current_subject).
|
23
|
+
merge(Tie.related_by(current_subject.relation_customs.find_by_id(params[:relation]))).
|
24
|
+
distinct_initials.
|
25
|
+
each do |l| %>
|
26
|
+
<%= link_to l.initial,{:letter => l.initial,:page => 1},:class => "contact_letter_link" %>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class="space_center"></div>
|
31
|
+
<div id="list_contacts_ajax" class="tab_content block">
|
32
|
+
<%= render :partial => "contacts/index"%>
|
33
|
+
</div>
|
34
|
+
<div class="space_center"></div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="space_center"></div>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<% content_for :title do%>
|
2
|
+
<%= t('contact.other')%>
|
3
|
+
<%end%>
|
4
|
+
|
5
|
+
<% content_for :sidebar do %>
|
6
|
+
<%= render :partial => 'home/sidebar' %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<% toolbar :option => :contacts %>
|
10
|
+
|
11
|
+
<div id="my_conferences">
|
12
|
+
<div id="contacts" class="block">
|
13
|
+
<div class="search_field_wrapper">
|
14
|
+
<input type="text" value="Search by name" id="search_field" class="search_input" />
|
15
|
+
<%= image_tag("btn/search.png",:size=>"20x20",:id=>"search_button") %>
|
16
|
+
</div>
|
17
|
+
<div class="space_center"></div>
|
18
|
+
<div class="row" >
|
19
|
+
<div class="center" id="header_contacts">
|
20
|
+
<%= render :partial => "settings/header"%>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div class="space_center"></div>
|
24
|
+
<div id="list_contacts_ajax" class="tab_content block">
|
25
|
+
<%= render :partial => "settings/manage"%>
|
26
|
+
</div>
|
27
|
+
<div class="space_center"></div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="space_center"></div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% content_for :title do %>
|
2
|
+
<%=t('settings.one')%>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% content_for :sidebar do %>
|
6
|
+
<%= render :partial => 'home/sidebar' %>
|
7
|
+
<% end %>
|
8
|
+
|
9
|
+
<% toolbar %>
|
10
|
+
|
11
|
+
<% content_for :javascript do %>
|
12
|
+
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= render :partial => 'index' %>
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#contact<%= @receiver.id.to_s %>").html("<%= escape_javascript(render :partial => 'settings/contacto', :locals => {:contact => @receiver}) %>");
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%= render :partial => 'toolbar/logo', :locals => {:subject => current_subject} %>
|
2
|
+
|
3
|
+
<div class="block space_center">
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div id="menu_lateral" class="toolbar_menu">
|
7
|
+
<%= yield(:toolbar_menu).empty? ? home_toolbar_menu : yield(:toolbar_menu)%>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div class="block space_center">
|
11
|
+
</div>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div id="logo_index">
|
2
|
+
<% if subject == current_subject %>
|
3
|
+
<div class="center">
|
4
|
+
<span class="title_bold" ><%= subject.name %></span>
|
5
|
+
<div class="logo_grid logo_full">
|
6
|
+
<%= link_to image_tag(subject.logo.url(:profile), :alt => subject.name , :size => "119x119", :id => "current_avatar_img"), subject %>
|
7
|
+
<div class="logo_menu logo_caption">
|
8
|
+
<%= link_to t('avatar.profile_change'), avatars_path %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
<% else %>
|
13
|
+
<div class="center"><span class="title_bold" ><%= subject.name %></span></div>
|
14
|
+
<%= link_to image_tag(subject.logo.url, :alt => subject.name , :size => "119x119"), subject %>
|
15
|
+
<% end %>
|
16
|
+
</div>
|
17
|
+
<% if subject.subject_type == 'Event' %>
|
18
|
+
<% @founder = Actor.normalize(subject.founder_id) %>
|
19
|
+
<div id="founder">
|
20
|
+
<div id="created"><%=t('actor.created')%></div>
|
21
|
+
<div id="thumb"><%= link_to(image_tag(@founder.logo.url(:representation), :width => 20, :height => 20, :class => 'menu_icon', :id=> 'current_user_avatar_img'), @founder.subject ) %></div>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% if (cs = subject.contact_subjects(:direction => :sent)).present? %>
|
2
|
+
<div class="block">
|
3
|
+
<div class="header">
|
4
|
+
<%=image_tag("btn/btn_friend.png", :class => "header_icon")%>
|
5
|
+
<div class="header_text">
|
6
|
+
<%= tie.name %>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class ="content">
|
11
|
+
<div class="contact space_center">
|
12
|
+
<% cs.each do |contact| %>
|
13
|
+
<% variable=subject.ties_to(contact).to_a %>
|
14
|
+
<% temporal='' %>
|
15
|
+
<% variable.each do |temp| %>
|
16
|
+
<% temporal=temp.relation_id %>
|
17
|
+
<% end %>
|
18
|
+
<% if (temporal == tie.id)%>
|
19
|
+
<%= link_to(image_tag(contact.logo.url(:contact), :alt => contact.name , :size => "28x28"), contact) %>
|
20
|
+
<% end %>
|
21
|
+
<% end %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<% end %>
|
25
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<%= render :partial => 'toolbar/logo', :locals => { :subject => subject } %>
|
2
|
+
|
3
|
+
<div class="block space_center">
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div id="menu_lateral" class="toolbar_menu">
|
7
|
+
<%= yield(:toolbar_menu).empty? ? profile_toolbar_menu(subject) : yield(:toolbar_menu) %>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div class="block space_center">
|
11
|
+
</div>
|
12
|
+
<% if subject.subject_type == 'Event' %>
|
13
|
+
<% subject.relation_customs.each do |temp| %>
|
14
|
+
<%= render :partial => 'toolbar/organizer', :locals => { :subject => subject,:tie=> temp } %>
|
15
|
+
<% end %>
|
16
|
+
<%= render :partial => 'toolbar/suscribed', :locals => { :subject => subject } %>
|
17
|
+
<% end %>
|
18
|
+
<div class="block space_center">
|
19
|
+
</div>
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<% if (cs = subject.contact_subjects(:direction => :sent)).present? %>
|
2
|
+
<div class="block">
|
3
|
+
<div class="header">
|
4
|
+
<%=image_tag("btn/btn_friend.png", :class => "header_icon")%>
|
5
|
+
<div class="header_text">
|
6
|
+
<%= cs.count %> <%= t('event.sponsor', :count => cs.count) %>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
<div class ="content">
|
11
|
+
<div class="contact space_center">
|
12
|
+
<% cs.each do |contact| %>
|
13
|
+
<%= link_to(image_tag(contact.logo.url(:contact), :alt => contact.name , :size => "28x28"), contact) %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
18
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% if (cs = subject.contact_subjects(:direction => :sent)).present? %>
|
2
|
+
<div class="block">
|
3
|
+
<div class="header">
|
4
|
+
<div class="header_text">
|
5
|
+
<%= t('event.suscribed')+" ("+cs.count.to_s+" user"+" )" %>
|
6
|
+
</div>
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<div class ="content">
|
10
|
+
<div class="contact space_center">
|
11
|
+
<% cs.each do |contact| %>
|
12
|
+
<%= link_to(image_tag(contact.logo.url(:contact), :alt => contact.name , :size => "28x28"), contact) %>
|
13
|
+
<% end %>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<% cont=0; %>
|
2
|
+
|
3
|
+
<% @users.each do |user| %>
|
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(truncate_name(user.name), user)%>
|
17
|
+
</div>
|
18
|
+
<div class="link">
|
19
|
+
<%= contact_to(user) %>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<% if ((cont%2) != 0) %>
|
26
|
+
<div class="label">
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<div class="row">
|
32
|
+
<%= paginate @users %>
|
33
|
+
</div>
|