social_stream-base 0.9.14 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/javascripts/activities.js.erb +0 -2
- data/app/assets/javascripts/search.js.erb +0 -4
- data/app/assets/stylesheets/_colors.scss +22 -0
- data/app/assets/stylesheets/{activities.css → activities.css.scss} +20 -23
- data/app/assets/stylesheets/{base.css → base.css.scss} +43 -35
- data/app/assets/stylesheets/{contacts.css → contacts.css.scss} +5 -3
- data/app/assets/stylesheets/footer.css.scss +22 -0
- data/app/assets/stylesheets/{frontpage.css → frontpage.css.scss} +7 -13
- data/app/assets/stylesheets/{header.css → header.css.scss} +23 -20
- data/app/assets/stylesheets/search.css +15 -17
- data/app/assets/stylesheets/toolbar.css +7 -0
- data/app/controllers/invitations_controller.rb +2 -0
- data/app/controllers/search_controller.rb +27 -45
- data/app/helpers/contacts_helper.rb +1 -5
- data/app/helpers/search_helper.rb +4 -4
- data/app/models/actor.rb +1 -3
- data/app/views/activity_objects/_activity_object.html.erb +1 -1
- data/app/views/contacts/_link.html.erb +9 -0
- data/app/views/frontpage/_caracteristics.html.erb +23 -0
- data/app/views/frontpage/index.html.erb +3 -25
- data/app/views/groups/_index.html.erb +1 -1
- data/app/views/invitation_mailer/send_invitation.html.erb +3 -3
- data/app/views/invitation_mailer/send_invitation.text.erb +3 -2
- data/app/views/invitations/_new.html.erb +2 -2
- data/app/views/layouts/_header_dropdown_menu.html.erb +1 -1
- data/app/views/layouts/_header_dropdown_menu_sessions.html.erb +1 -1
- data/app/views/posts/_new_activity.html.erb +1 -1
- data/app/views/posts/_new_activity_fields.erb +6 -0
- data/app/views/search/_extended_search.html.erb +14 -0
- data/app/views/search/_form.html.erb +25 -13
- data/app/views/search/_header_search.html.erb +7 -13
- data/app/views/search/_index.html.erb +1 -6
- data/app/views/search/_index_frontpage.html.erb +2 -18
- data/app/views/search/index.js.erb +1 -1
- data/app/views/subjects/_subject_with_details.html.erb +1 -1
- data/app/views/toolbar/_home.html.erb +1 -1
- data/app/views/toolbar/_messages.html.erb +1 -1
- data/app/views/toolbar/_subject.html.erb +10 -0
- data/app/views/users/_index.html.erb +1 -1
- data/config/locales/en.yml +13 -22
- data/config/locales/es.yml +356 -0
- data/lib/generators/social_stream/base/templates/initializer.rb +6 -0
- data/lib/social_stream/base/version.rb +1 -1
- data/lib/social_stream/models/object.rb +7 -1
- data/lib/social_stream-base.rb +8 -0
- data/social_stream-base.gemspec +2 -0
- data/spec/controllers/invitations_controller_spec.rb +34 -0
- data/spec/dummy/config/initializers/social_stream.rb +6 -0
- data/spec/support/thinking-sphinx.rb +10 -0
- metadata +50 -28
- data/app/assets/stylesheets/footer.css +0 -26
- data/app/views/search/_focus_search.html.erb +0 -17
- data/app/views/search/_global_search.html.erb +0 -19
@@ -1,24 +1,24 @@
|
|
1
1
|
class SearchController < ApplicationController
|
2
2
|
include ActionView::Helpers::SanitizeHelper
|
3
|
+
|
4
|
+
helper_method :get_search_query
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
-
FOCUS_SEARCH_PER_PAGE=16
|
6
|
+
RESULTS_SEARCH_PER_PAGE=15
|
7
7
|
MIN_QUERY=2
|
8
|
+
|
8
9
|
def index
|
9
|
-
@search_class_sym = params[:focus].singularize.to_sym unless params[:focus].blank?
|
10
10
|
if params[:search_query].blank? or too_short_query
|
11
|
-
|
11
|
+
@search_result = []
|
12
12
|
else
|
13
13
|
if params[:mode].eql? "header_search"
|
14
|
-
@search_result =
|
15
|
-
render :partial => "header_search"
|
14
|
+
@search_result = search :quick
|
15
|
+
render :partial => "header_search"
|
16
16
|
return
|
17
17
|
else
|
18
18
|
if params[:focus].present?
|
19
19
|
@search_result = focus_search
|
20
20
|
else
|
21
|
-
@search_result =
|
21
|
+
@search_result = search :extended
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -30,6 +30,25 @@ class SearchController < ApplicationController
|
|
30
30
|
|
31
31
|
private
|
32
32
|
|
33
|
+
def search mode
|
34
|
+
models = SocialStream.extended_search_models
|
35
|
+
models = SocialStream.quick_search_models if mode.to_s.eql? "quick"
|
36
|
+
models.map! {|model_sym| model_sym.to_s.classify.constantize}
|
37
|
+
result = ThinkingSphinx.search(get_search_query, :classes => models)
|
38
|
+
if mode.to_s.eql? "quick"
|
39
|
+
result.page(1).per(7)
|
40
|
+
else
|
41
|
+
result.page(params[:page]).per(RESULTS_SEARCH_PER_PAGE)
|
42
|
+
end
|
43
|
+
return result
|
44
|
+
end
|
45
|
+
|
46
|
+
def focus_search
|
47
|
+
@search_class_sym = params[:focus].singularize.to_sym unless params[:focus].blank?
|
48
|
+
search_class = @search_class_sym.to_s.classify.constantize
|
49
|
+
ThinkingSphinx.search(get_search_query, :classes => [search_class]).page(params[:page]).per(RESULTS_SEARCH_PER_PAGE)
|
50
|
+
end
|
51
|
+
|
33
52
|
def too_short_query
|
34
53
|
bare_query = strip_tags(params[:search_query]) unless bare_query.html_safe?
|
35
54
|
return bare_query.strip.size < MIN_QUERY
|
@@ -45,41 +64,4 @@ class SearchController < ApplicationController
|
|
45
64
|
end
|
46
65
|
return search_query.strip
|
47
66
|
end
|
48
|
-
|
49
|
-
def global_search
|
50
|
-
return search 6
|
51
|
-
end
|
52
|
-
|
53
|
-
def header_search
|
54
|
-
return search 3
|
55
|
-
end
|
56
|
-
|
57
|
-
def search max_results
|
58
|
-
result = Hash.new
|
59
|
-
total_shown = 0
|
60
|
-
SocialStream.subjects.each do |subject_sym|
|
61
|
-
result.update({subject_sym => ThinkingSphinx.search(get_search_query, :classes => [subject_sym.to_s.classify.constantize]).page(1).per(max_results)})
|
62
|
-
result.update({(subject_sym.to_s+"_total").to_sym => ThinkingSphinx.count(get_search_query, :classes => [subject_sym.to_s.classify.constantize])})
|
63
|
-
end
|
64
|
-
return result
|
65
|
-
end
|
66
|
-
|
67
|
-
def focus_search
|
68
|
-
string_class = params[:focus].singularize
|
69
|
-
search_class = string_class.classify.constantize
|
70
|
-
return ThinkingSphinx.search(get_search_query, :classes => [search_class]).page(params[:page]).per(FOCUS_SEARCH_PER_PAGE)
|
71
|
-
end
|
72
|
-
|
73
|
-
def nil_search
|
74
|
-
if params[:focus].present?
|
75
|
-
result = []
|
76
|
-
else
|
77
|
-
result = Hash.new
|
78
|
-
SocialStream.subjects.each do |subject_sym|
|
79
|
-
result.update({subject_sym => []})
|
80
|
-
result.update({(subject_sym.to_s+"_total").to_sym => 0})
|
81
|
-
end
|
82
|
-
end
|
83
|
-
return result
|
84
|
-
end
|
85
67
|
end
|
@@ -7,11 +7,7 @@ module ContactsHelper
|
|
7
7
|
if c.reflexive?
|
8
8
|
t('subject.this_is_you')
|
9
9
|
else
|
10
|
-
|
11
|
-
edit_contact_path(c),
|
12
|
-
:title => t("contact.#{ c.action }.title", :name => c.receiver.name)) +
|
13
|
-
"<br/>".html_safe +
|
14
|
-
link_to(t('actor.delete'), contact_path(c), :action => :destroy, :confirm => t('actor.confirm_delete'), :remote => true)
|
10
|
+
render :partial => 'contacts/link', :locals => { :contact => c }
|
15
11
|
end
|
16
12
|
|
17
13
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module SearchHelper
|
2
|
-
def
|
3
|
-
|
4
|
-
render :partial =>
|
5
|
-
:locals => {
|
2
|
+
def model_with_details model
|
3
|
+
model = model.model if model.is_a? Actor
|
4
|
+
render :partial => model.class.to_s.pluralize.downcase + '/' + model.class.to_s.downcase + '_with_details',
|
5
|
+
:locals => {model.class.to_s.downcase.to_sym => model}
|
6
6
|
end
|
7
7
|
|
8
8
|
def focus_search_link text, search_class, query
|
data/app/models/actor.rb
CHANGED
@@ -15,8 +15,6 @@ class Actor < ActiveRecord::Base
|
|
15
15
|
include SocialStream::Models::Supertype
|
16
16
|
include SocialStream::Models::Object
|
17
17
|
|
18
|
-
delegate :tag_list, :tag_list=, :tagged_with, :tag_counts, :to => :activity_object
|
19
|
-
|
20
18
|
validates_presence_of :name, :subject_type
|
21
19
|
|
22
20
|
acts_as_messageable
|
@@ -159,7 +157,7 @@ class Actor < ActiveRecord::Base
|
|
159
157
|
when String
|
160
158
|
emails << receiver_emails
|
161
159
|
when Array
|
162
|
-
|
160
|
+
receiver_emails.each do |receiver_email|
|
163
161
|
emails << receiver_email
|
164
162
|
end
|
165
163
|
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= link_to(contact.status, edit_contact_path(contact),
|
2
|
+
:title => t("contact.#{ contact.action }.title", :name => contact.receiver.name)) %>
|
3
|
+
|
4
|
+
<% if controller.controller_name == "contacts" %>
|
5
|
+
|
6
|
+
<br/>
|
7
|
+
<%= link_to(t('contact.delete'), contact_path(contact), :action => :destroy, :confirm => t('contact.confirm_delete'), :remote => true) %>
|
8
|
+
|
9
|
+
<% end %>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div id="caracteristics">
|
2
|
+
<ul>
|
3
|
+
<li class="participants">
|
4
|
+
<%= t('frontpage.elements.participants') %>
|
5
|
+
</li>
|
6
|
+
<li class="organizers">
|
7
|
+
<%= t('frontpage.elements.organizers') %>
|
8
|
+
</li>
|
9
|
+
<li class="spaces">
|
10
|
+
<%= t('frontpage.elements.groups') %>
|
11
|
+
</li>
|
12
|
+
<li class="comments">
|
13
|
+
<%= t('frontpage.elements.comments') %>
|
14
|
+
</li>
|
15
|
+
<li class="tags">
|
16
|
+
<%= t('frontpage.elements.tags') %>
|
17
|
+
</li>
|
18
|
+
<li class="networks">
|
19
|
+
<%= t('frontpage.elements.networks') %>
|
20
|
+
</li>
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% content_for :title do%>
|
2
|
-
<%= t('welcome') %>
|
2
|
+
<%= t('welcome', :site => t('site.name')) %>
|
3
3
|
<%end%>
|
4
4
|
|
5
5
|
<div class="banner_busqueda">
|
@@ -40,6 +40,7 @@
|
|
40
40
|
<div class="sentences">
|
41
41
|
<ul>
|
42
42
|
<li class="green"><%= t('frontpage.meet.sentence1') %></li>
|
43
|
+
<li class="green"><%= t('frontpage.meet.sentence2') %></li>
|
43
44
|
</ul>
|
44
45
|
</div>
|
45
46
|
</div>
|
@@ -65,30 +66,7 @@
|
|
65
66
|
</div>
|
66
67
|
|
67
68
|
<div id="wrapper_right">
|
68
|
-
|
69
|
-
<ul>
|
70
|
-
<li class="participants">
|
71
|
-
<%= t('frontpage.elements.participants') %>
|
72
|
-
</li>
|
73
|
-
<li class="organizers">
|
74
|
-
<%= t('frontpage.elements.organizers') %>
|
75
|
-
</li>
|
76
|
-
<li class="spaces">
|
77
|
-
<%= t('frontpage.elements.groups') %>
|
78
|
-
</li>
|
79
|
-
<li class="comments">
|
80
|
-
<%= t('frontpage.elements.comments') %>
|
81
|
-
</li>
|
82
|
-
<li class="tags">
|
83
|
-
<%= t('frontpage.elements.tags') %>
|
84
|
-
</li>
|
85
|
-
<li class="networks">
|
86
|
-
<%= t('frontpage.elements.networks') %>
|
87
|
-
</li>
|
88
|
-
</ul>
|
89
|
-
</div>
|
69
|
+
<%= render :partial => 'frontpage/caracteristics' %>
|
90
70
|
</div>
|
91
71
|
|
92
72
|
<div id="espacio_body_bottom"></div>
|
93
|
-
|
94
|
-
|
@@ -7,11 +7,11 @@
|
|
7
7
|
<div>
|
8
8
|
<div>
|
9
9
|
<div style="padding: 10px 5px 5px 5px;">
|
10
|
-
<span id
|
10
|
+
<%= raw t('invitation.invited', :sender => "<span id=\"name\" style=\"font-weight: bold;\">#{ h @sender.name}</span>", :site => link_to(t('site.name'), new_user_registration_url)) %>
|
11
11
|
</div>
|
12
12
|
<div style="position: static;padding: 5px; border: #2A3890 solid 2px; background-color: #E1EEF5; margin:10px; min-height: 125px; width: 500px;">
|
13
13
|
<div style="float:left; margin-right:7px; border: thin solid #D4E4EA; background-color: white; max-height: 119px;">
|
14
|
-
<img src="
|
14
|
+
<img src="<%= root_url + @sender.logo.url(:profile)%>" alt="<%=@sender.name%>">
|
15
15
|
</div>
|
16
16
|
<div style=" margin: 5px 5px 5px 5px;">
|
17
17
|
<p style="font-weight: bold; "><%= @sender.name %>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<% end %>
|
21
21
|
</p>
|
22
22
|
<% if @message.blank? %>
|
23
|
-
<p style="text-align: justify;"><%= t('invitation.join_me')%></p>
|
23
|
+
<p style="text-align: justify;"><%= t('invitation.join_me', :site => t('site.name'))%></p>
|
24
24
|
<%else%>
|
25
25
|
<p style="text-align: justify; font-style: italic;">"<%= @message%>"</p>
|
26
26
|
<%end%>
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%= @sender.name
|
1
|
+
<%= t('invitation.invited', :sender => @sender.name, :site => t('site.name')) %>: <%= new_user_registration_url%>
|
2
2
|
|
3
3
|
<% if @message.blank? %>
|
4
|
-
<%= t('invitation.join_me')%>
|
4
|
+
<%= t('invitation.join_me', :site => t('site.name'))%>
|
5
5
|
<%else%>
|
6
6
|
"<%= @message%>"
|
7
7
|
<%end%>
|
@@ -14,6 +14,7 @@
|
|
14
14
|
|
15
15
|
<%= t('frontpage.meet.default')%>:
|
16
16
|
<%= t('frontpage.meet.sentence1') %>
|
17
|
+
<%= t('frontpage.meet.sentence2') %>
|
17
18
|
|
18
19
|
<%= t('frontpage.collaborate.default')%>:
|
19
20
|
<%= t('frontpage.collaborate.sentence1') %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
<%= form_tag invitations_path, :method=> :post, :class => "invitation_form", :remote => true do %>
|
12
12
|
<div class="block">
|
13
|
-
<h3 class= "form_row"><%=t('invitation.join')%></h3>
|
13
|
+
<h3 class= "form_row"><%=t('invitation.join', :site => t('site.name'))%></h3>
|
14
14
|
<div class="form_row form_label ">
|
15
15
|
<%= label_tag t('invitation.e-mails')%>
|
16
16
|
<span class= "form_comment">(Separated by commas)</span>
|
@@ -30,4 +30,4 @@
|
|
30
30
|
<div class="form_row space_center">
|
31
31
|
<%= submit_tag t('action.send'), :class => "button" %>
|
32
32
|
</div>
|
33
|
-
<%end%>
|
33
|
+
<%end%>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div id="header_dropdown_menu">
|
2
2
|
<ul class="sf-menu" >
|
3
3
|
<li class="header_dropdown_li">
|
4
|
-
<a href="#" class="sf-with-ul" id="current_subject_avatar_img" style="background: transparent url('<%= image_path current_subject.logo.url(:representation)%>') no-repeat left top;"><%= truncate_name current_subject.name %><span class="sf-sub-indicator"> »</span></a>
|
4
|
+
<a href="#" class="sf-with-ul" id="current_subject_avatar_img" style="background: transparent url('<%= image_path current_subject.logo.url(:representation)%>') no-repeat left top;"><%= truncate_name current_subject.name, :length => 15 %><span class="sf-sub-indicator"> »</span></a>
|
5
5
|
<ul>
|
6
6
|
<%= render :partial => 'layouts/header_dropdown_menu_sessions'%>
|
7
7
|
<li>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<ul>
|
6
6
|
<% representations.each do |representation| %>
|
7
7
|
<li>
|
8
|
-
<%= link_to truncate_name(representation.name), { :s => representation.slug }, { :style => "background: transparent url('#{ image_path representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;" } %>
|
8
|
+
<%= link_to truncate_name(representation.name, :length => 15), { :s => representation.slug }, { :style => "background: transparent url('#{ image_path representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;" } %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
11
11
|
</ul>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render :partial => 'objects/new_activity', :locals => {:receiver => receiver, :object => Post.new
|
1
|
+
<%= render :partial => 'objects/new_activity', :locals => {:receiver => receiver, :object => Post.new, :remote => true} %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<% if @search_result.empty? %>
|
2
|
+
<div class="model_with_details">
|
3
|
+
<%= I18n.t('search.nothing') %>
|
4
|
+
</div>
|
5
|
+
<% else %>
|
6
|
+
<% total = 0 %>
|
7
|
+
<% @search_result.each do |model|%>
|
8
|
+
<div class="subject_search_results block left">
|
9
|
+
<%= model_with_details model %>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
<br class="clearfloat">
|
13
|
+
<%= paginate @search_result %>
|
14
|
+
<% end %>
|
@@ -8,12 +8,22 @@
|
|
8
8
|
<div id="focus_options" class="form_row search_row">
|
9
9
|
<ul class="menu_plain_list">
|
10
10
|
<li><%= link_to content_tag(:span,t('search.show_all'),:class => params[:focus].blank? ? 'global selected' : 'global'), search_path(:search_query => params[:search_query]), :remote => true %></li>
|
11
|
-
<% SocialStream.
|
12
|
-
<% selected_class = (params[:focus].present? and params[:focus].pluralize.downcase.eql?(
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
<% SocialStream.extended_search_models.each do |model_sym| %>
|
12
|
+
<% selected_class = (params[:focus].present? and params[:focus].pluralize.downcase.eql?(model_sym.to_s.pluralize.downcase)) ? 'selected' : ''%>
|
13
|
+
<% disabled =ThinkingSphinx.count(get_search_query, :classes => [model_sym.to_s.classify.constantize])==0 %>
|
14
|
+
<% disabled_class = (disabled ? 'disabled' : '') %>
|
15
|
+
<li>
|
16
|
+
<% unless disabled %>
|
17
|
+
<%= focus_search_link content_tag(:span, model_sym.to_s.pluralize.capitalize,
|
18
|
+
:class => selected_class + " " + disabled_class + " " + model_sym.to_s.pluralize.downcase),
|
19
|
+
model_sym.to_s.classify.constantize,
|
20
|
+
params[:search_query] %>
|
21
|
+
<% else %>
|
22
|
+
<%= content_tag(:span, model_sym.to_s.pluralize.capitalize,
|
23
|
+
:class => selected_class + " " + disabled_class + " " + model_sym.to_s.pluralize.downcase,
|
24
|
+
:title => I18n.t('search.no_subject_found', :subject => model_sym.to_s)) %>
|
25
|
+
<% end %>
|
26
|
+
</li>
|
17
27
|
<% end %>
|
18
28
|
</ul>
|
19
29
|
</div>
|
@@ -21,11 +31,11 @@
|
|
21
31
|
</form>
|
22
32
|
|
23
33
|
<%= javascript_tag do %>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
34
|
+
$(function() {
|
35
|
+
$.preloadImages ("assets/mini-loading.gif");
|
36
|
+
|
37
|
+
$('#search_form').submit(function() {
|
38
|
+
query = $('#global_search_input').val();
|
29
39
|
if((query=="")||(query.length < 2)||(query=="<%= t('search.write') %>")){
|
30
40
|
$('#too_short_error').show();
|
31
41
|
$('#global_search_input').removeClass("searching");
|
@@ -37,6 +47,8 @@
|
|
37
47
|
$('#global_search_input').blur();
|
38
48
|
}
|
39
49
|
return true;
|
40
|
-
|
41
|
-
|
50
|
+
});
|
51
|
+
|
52
|
+
$("#global_search_input").Watermark("<%= I18n.t('search.write') %>");
|
53
|
+
});
|
42
54
|
<% end %>
|
@@ -1,22 +1,16 @@
|
|
1
1
|
<% total = 0 %>
|
2
2
|
<ul>
|
3
|
-
<%
|
4
|
-
|
5
|
-
<li class="title">
|
6
|
-
<%= subject_type.to_s.capitalize.pluralize %>
|
7
|
-
</li>
|
8
|
-
<% @search_result[subject_type].each do |subject|%>
|
3
|
+
<% unless @search_result.empty? %>
|
4
|
+
<% @search_result.each do |model|%>
|
9
5
|
<% total+=1 %>
|
10
|
-
<li class="
|
6
|
+
<li class="result"><%= model_with_details model %></li>
|
11
7
|
<% end %>
|
12
8
|
<% end %>
|
13
9
|
</li>
|
14
|
-
<% end %>
|
15
|
-
|
16
10
|
<%= link_to raw('<li class="more">' +
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
t("search.global.first_result.#{ total == 1 ? 'one' : 'more' }", :count => total) +
|
12
|
+
'<br>' +
|
13
|
+
t('search.global.query', :query => truncate(h(params[:search_query]),:length => 20)) +
|
14
|
+
'</li>'),
|
21
15
|
search_path(:search_query => params[:search_query]) %>
|
22
16
|
</ul>
|
@@ -7,11 +7,6 @@
|
|
7
7
|
<%= render :partial => 'form' %>
|
8
8
|
</div>
|
9
9
|
<div class="space_center"></div>
|
10
|
-
<div class="space_center"></div>
|
11
10
|
<div id="search_results" class="block">
|
12
|
-
|
13
|
-
<%= render :partial => 'global_search' %>
|
14
|
-
<% else %>
|
15
|
-
<%= render :partial => 'focus_search' %>
|
16
|
-
<% end %>
|
11
|
+
<%= render :partial => 'extended_search' %>
|
17
12
|
</div>
|
@@ -4,24 +4,8 @@
|
|
4
4
|
</div>
|
5
5
|
</nav>
|
6
6
|
<div id= "center_body">
|
7
|
-
<section id="content">
|
8
|
-
|
9
|
-
<br class="clearfloat" />
|
10
|
-
<div class="space_center"></div>
|
11
|
-
<h2><%= t('search.name') %></h2>
|
12
|
-
<div class="space_center"></div>
|
13
|
-
<div id="search_form_div">
|
14
|
-
<%= render :partial => 'form' %>
|
15
|
-
</div>
|
16
|
-
<div class="space_center"></div>
|
17
|
-
<div class="space_center"></div>
|
18
|
-
<div id="search_results" class="block">
|
19
|
-
<% unless params[:focus].present? %>
|
20
|
-
<%= render :partial => 'global_search' %>
|
21
|
-
<% else %>
|
22
|
-
<%= render :partial => 'focus_search' %>
|
23
|
-
<% end %>
|
24
|
-
</div>
|
7
|
+
<section id="content">
|
8
|
+
<%= render :partial => 'index' %>
|
25
9
|
</section>
|
26
10
|
</div>
|
27
11
|
<aside id="sidebar">
|
@@ -1,4 +1,4 @@
|
|
1
|
-
$('#search_results').html("
|
1
|
+
$('#search_results').html("<%= escape_javascript render :partial => 'extended_search' %>");
|
2
2
|
$('#search_form_div').html("<%= escape_javascript render :partial => 'form' %>");
|
3
3
|
|
4
4
|
$('#focus_options ul li a span').removeClass('selected');
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<div class="model_with_details">
|
2
|
+
<div class="logo">
|
3
|
+
<%= link_to (image_tag(current_subject.logo.url , :size => "50x50", :alt => current_subject.name )), current_subject %>
|
4
|
+
</div>
|
5
|
+
<div class="sub-block">
|
6
|
+
<div class="name black" >
|
7
|
+
<%= link_to truncate_name(current_subject.name, :length => 80), current_subject %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
data/config/locales/en.yml
CHANGED
@@ -21,7 +21,6 @@ en:
|
|
21
21
|
hidden: "Shared with spheres of %{audience}"
|
22
22
|
confirm_delete: "Delete activity?"
|
23
23
|
delete: "Delete"
|
24
|
-
input: "What are you doing?"
|
25
24
|
last: "Last Activities"
|
26
25
|
like: "I like"
|
27
26
|
one: "Activity"
|
@@ -69,7 +68,9 @@ en:
|
|
69
68
|
view_all: "View all comments"
|
70
69
|
contact:
|
71
70
|
all_n: "All contacts (%{count})"
|
71
|
+
confirm_delete: "Delete contact?"
|
72
72
|
current: "Current"
|
73
|
+
delete: "Delete"
|
73
74
|
edit:
|
74
75
|
title: "Edit contact to %{name}"
|
75
76
|
submit: "Edit contact"
|
@@ -126,19 +127,19 @@ en:
|
|
126
127
|
comments: "Comments"
|
127
128
|
networks: "Social Networks"
|
128
129
|
organizers: "Organizers"
|
129
|
-
participants: "
|
130
|
+
participants: "Video conferences"
|
130
131
|
groups: "Groups"
|
131
132
|
tags: "Tags"
|
132
133
|
main_title: "Social Stream is a core for building social network websites."
|
133
134
|
meet:
|
134
135
|
default: "Meet"
|
135
136
|
sentence1: "Meet interesting people and groups"
|
137
|
+
sentence2: "Find last activity of your contacts"
|
136
138
|
share:
|
137
139
|
default: "Share"
|
138
|
-
sentence1: "Your
|
139
|
-
sentence2: "Posts,
|
140
|
+
sentence1: "Your proyects and activities"
|
141
|
+
sentence2: "Posts, photos, audio and videos"
|
140
142
|
stats: "%{users} users and %{groups} groups registered"
|
141
|
-
find: "Find"
|
142
143
|
group:
|
143
144
|
one: "Group"
|
144
145
|
other: "Groups"
|
@@ -172,9 +173,9 @@ en:
|
|
172
173
|
invitation:
|
173
174
|
e-mails: "E-mail addresses"
|
174
175
|
error: "Your request was unprocessable. Make sure you wrote correct e-mail addresses."
|
175
|
-
invited: " has invited you to
|
176
|
-
join: "Invite other people to join
|
177
|
-
join_me: "Join me at
|
176
|
+
invited: "%{sender} has invited you to %{site}!"
|
177
|
+
join: "Invite other people to join %{site}!"
|
178
|
+
join_me: "Join me at %{site}!"
|
178
179
|
one: "Invitation"
|
179
180
|
other: "Invitations"
|
180
181
|
toolbar: "Invite"
|
@@ -222,6 +223,7 @@ en:
|
|
222
223
|
confirm_delete: "Delete post?"
|
223
224
|
form:
|
224
225
|
title: "Post"
|
226
|
+
input: "What are you doing?"
|
225
227
|
title: "Posts"
|
226
228
|
preposition:
|
227
229
|
and: "and"
|
@@ -261,12 +263,6 @@ en:
|
|
261
263
|
success: "Your profile has been updated"
|
262
264
|
public:
|
263
265
|
other: "Everybody"
|
264
|
-
representation:
|
265
|
-
action: "as"
|
266
|
-
change: "Change"
|
267
|
-
service:
|
268
|
-
one: "Service"
|
269
|
-
other: "Services"
|
270
266
|
permission:
|
271
267
|
description:
|
272
268
|
brief:
|
@@ -296,9 +292,6 @@ en:
|
|
296
292
|
add: "Add"
|
297
293
|
title: "Privacy rules"
|
298
294
|
saved: "Privacy rules saved"
|
299
|
-
products:
|
300
|
-
one: "Product"
|
301
|
-
other: "Products"
|
302
295
|
relation_custom:
|
303
296
|
choose: "1. Choose sphere"
|
304
297
|
confirm_delete: "Delete this sphere?"
|
@@ -310,9 +303,7 @@ en:
|
|
310
303
|
name: "Public"
|
311
304
|
required: "(*) These fields are required"
|
312
305
|
search:
|
313
|
-
|
314
|
-
none: "Nothing found"
|
315
|
-
all_subject_results: "Search all %{subject} (%{count})"
|
306
|
+
all_results: "Search all %{subject} (%{count})"
|
316
307
|
at_least: "Write at least two characters"
|
317
308
|
global:
|
318
309
|
name: "Global search"
|
@@ -322,6 +313,7 @@ en:
|
|
322
313
|
query: "See more results for %{query} >"
|
323
314
|
name: "Search"
|
324
315
|
no_subject_found: "No %{subject} was found."
|
316
|
+
nothing: "Nothing found"
|
325
317
|
searching: "Searching: %{query}"
|
326
318
|
show_all: "Show all results"
|
327
319
|
write: "Write your query ..."
|
@@ -367,5 +359,4 @@ en:
|
|
367
359
|
other: "Users"
|
368
360
|
all: "All users"
|
369
361
|
all_n: "All users (%{count})"
|
370
|
-
welcome: "Welcome to
|
371
|
-
|
362
|
+
welcome: "Welcome to %{site}!"
|