social_stream 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +6 -0
- data/Gemfile +9 -0
- data/base/app/assets/images/frontpage/right_conference.png +0 -0
- data/base/app/assets/images/loader.gif +0 -0
- data/base/app/assets/javascripts/jquery.ad-gallery.js +850 -0
- data/base/app/assets/javascripts/jquery.ad-gallery.pack.js +10 -0
- data/base/app/assets/stylesheets/_colors.scss +6 -3
- data/base/app/assets/stylesheets/ad_next.png +0 -0
- data/base/app/assets/stylesheets/ad_prev.png +0 -0
- data/base/app/assets/stylesheets/ad_scroll_back.png +0 -0
- data/base/app/assets/stylesheets/ad_scroll_forward.png +0 -0
- data/base/app/assets/stylesheets/contacts.css.scss +1 -0
- data/base/app/assets/stylesheets/frontpage.css.scss +10 -3
- data/base/app/assets/stylesheets/header.css.scss +5 -5
- data/base/app/assets/stylesheets/{home.css → home.css.scss} +12 -11
- data/base/app/assets/stylesheets/jquery.ad-gallery.css +171 -0
- data/base/app/assets/stylesheets/loader.gif +0 -0
- data/base/app/assets/stylesheets/{location.css → location.css.scss} +3 -1
- data/base/app/assets/stylesheets/menu.css.scss +19 -0
- data/base/app/assets/stylesheets/{messages.css → messages.css.scss} +17 -15
- data/base/app/assets/stylesheets/opa75.png +0 -0
- data/base/app/assets/stylesheets/{relation_customs.css → relation_customs.css.scss} +9 -27
- data/base/app/assets/stylesheets/{search.css → search.css.scss} +26 -23
- data/base/app/assets/stylesheets/{ties.css → ties.css.scss} +4 -2
- data/base/app/controllers/search_controller.rb +1 -1
- data/base/app/helpers/search_helper.rb +25 -5
- data/base/app/helpers/toolbar_helper.rb +1 -1
- data/base/app/models/post.rb +4 -4
- data/base/app/views/frontpage/_caracteristics.html.erb +7 -7
- data/base/app/views/frontpage/_header.html.erb +2 -4
- data/base/app/views/frontpage/_social_networks.html.erb +5 -0
- data/base/app/views/frontpage/index.html.erb +0 -3
- data/base/app/views/groups/_group_focus_search.html.erb +2 -0
- data/base/app/views/groups/_group_global_search.html.erb +2 -0
- data/base/app/views/groups/_show.html.erb +33 -0
- data/base/app/views/groups/_show_frontpage.html.erb +11 -0
- data/base/app/views/groups/show.html.erb +5 -32
- data/base/app/views/layouts/application.html.erb +2 -2
- data/base/app/views/posts/_post_focus_search.html.erb +3 -0
- data/base/app/views/posts/_post_global_search.html.erb +16 -0
- data/base/app/views/posts/_post_with_details.html.erb +3 -0
- data/base/app/views/search/_extended_search.html.erb +7 -2
- data/base/app/views/search/_header_search.html.erb +1 -1
- data/base/app/views/users/_show.html.erb +33 -0
- data/base/app/views/users/_show_frontpage.html.erb +11 -0
- data/base/app/views/users/_user_focus_search.html.erb +2 -0
- data/base/app/views/users/_user_global_search.html.erb +2 -0
- data/base/app/views/users/show.html.erb +5 -32
- data/base/config/locales/en.yml +5 -3
- data/base/config/locales/es.yml +2 -2
- data/base/lib/social_stream-base.rb +2 -2
- data/base/lib/social_stream/base/version.rb +1 -1
- data/documents/app/views/audios/_audio_focus_search.html.erb +3 -0
- data/documents/app/views/audios/_audio_global_search.html.erb +3 -0
- data/documents/app/views/documents/_document_focus_search.html.erb +2 -0
- data/documents/app/views/documents/_document_global_search.html.erb +2 -0
- data/documents/app/views/pictures/_picture_focus_search.html.erb +2 -0
- data/documents/app/views/pictures/_picture_global_search.html.erb +2 -0
- data/documents/app/views/videos/_video_focus_search.html.erb +2 -0
- data/documents/app/views/videos/_video_global_search.html.erb +2 -0
- data/documents/lib/social_stream-documents.rb +5 -0
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +1 -1
- data/events/app/assets/images/frontpage/thumbs/tvideo_1_happy.jpg +0 -0
- data/events/app/assets/images/frontpage/thumbs/tvideo_2_kostas.jpg +0 -0
- data/events/app/assets/images/frontpage/thumbs/tvideo_3_colin.jpg +0 -0
- data/events/app/assets/images/frontpage/thumbs/tvideo_4_romilla.jpg +0 -0
- data/events/app/assets/images/frontpage/video_1_happy.jpg +0 -0
- data/events/app/assets/images/frontpage/video_2_kostas.jpg +0 -0
- data/events/app/assets/images/frontpage/video_3_colin.jpg +0 -0
- data/events/app/assets/images/frontpage/video_4_romilla.jpg +0 -0
- data/events/app/assets/javascripts/jquery.ad-gallery.js +850 -0
- data/events/app/assets/javascripts/jquery.ad-gallery.pack.js +10 -0
- data/events/app/assets/stylesheets/ad_next.png +0 -0
- data/events/app/assets/stylesheets/ad_prev.png +0 -0
- data/events/app/assets/stylesheets/ad_scroll_back.png +0 -0
- data/events/app/assets/stylesheets/ad_scroll_forward.png +0 -0
- data/events/app/assets/stylesheets/jquery.ad-gallery.css +171 -0
- data/events/app/assets/stylesheets/loader.gif +0 -0
- data/events/app/views/events/_event_focus_search.html.erb +2 -0
- data/events/app/views/events/_event_global_search.html.erb +2 -0
- data/events/app/views/frontpage/_caracteristics.html.erb +73 -0
- data/events/app/views/frontpage/index.html.erb +72 -0
- data/events/config/locales/en.yml +14 -0
- data/events/config/locales/es.yml +103 -0
- data/events/lib/social_stream-events.rb +3 -0
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/social_stream-events.gemspec +1 -1
- data/lib/social_stream/version.rb +1 -1
- data/social_stream.gemspec +3 -3
- data/spec/dummy/config/database.yml +8 -5
- data/spec/spec_helper.rb +4 -0
- data/spec/support/components.rb +1 -1
- metadata +71 -21
- data/base/app/assets/stylesheets/menu.css +0 -26
- data/base/spec/support/thinking-sphinx.rb +0 -10
Binary file
|
@@ -1,19 +1,5 @@
|
|
1
|
-
|
2
|
-
color: #999;
|
3
|
-
}
|
4
|
-
|
5
|
-
span.ui-checkbox, span.ui-radio {
|
6
|
-
display: block;
|
7
|
-
float: left;
|
8
|
-
width: 16px;
|
9
|
-
height: 17px;
|
10
|
-
background: url(icon_checkbox.png) 0 -40px no-repeat;
|
11
|
-
cursor: pointer;
|
12
|
-
}
|
1
|
+
@import "colors";
|
13
2
|
|
14
|
-
span.ui-helper-hidden {
|
15
|
-
display: none;
|
16
|
-
}
|
17
3
|
|
18
4
|
#relation_customs label, #permissions label {
|
19
5
|
display: block;
|
@@ -93,19 +79,15 @@ form {
|
|
93
79
|
margin-left: 10px;
|
94
80
|
}
|
95
81
|
|
96
|
-
.checked-option{
|
97
|
-
background-color: #dfecf1;
|
98
|
-
}
|
99
|
-
|
100
82
|
.pageTitle{
|
101
|
-
color:
|
83
|
+
color: $sentence-color;
|
102
84
|
padding: 0px 10px 0px 0px;
|
103
85
|
font-size: 15px;
|
104
86
|
}
|
105
87
|
|
106
88
|
.sectionTitle{
|
107
|
-
background-color:
|
108
|
-
color:
|
89
|
+
background-color: $secondary-color;
|
90
|
+
color: $main-color;
|
109
91
|
padding: 15px 20px 15px 20px;
|
110
92
|
}
|
111
93
|
|
@@ -120,9 +102,9 @@ form {
|
|
120
102
|
}
|
121
103
|
|
122
104
|
input.privacy_input_new{
|
123
|
-
background-color:
|
124
|
-
border: 1px solid
|
125
|
-
color:
|
105
|
+
background-color: $secondary-color;
|
106
|
+
border: 1px solid $main-color;
|
107
|
+
color: $main-color;
|
126
108
|
}
|
127
109
|
|
128
110
|
span.privacy_span_new {
|
@@ -190,7 +172,7 @@ span.privacy_span_new {
|
|
190
172
|
float: right;
|
191
173
|
text-align: center;
|
192
174
|
display: block;
|
193
|
-
border:1px solid
|
175
|
+
border:1px solid $main-color;
|
194
176
|
}
|
195
177
|
|
196
178
|
#columns_container{
|
@@ -240,6 +222,6 @@ span.privacy_span_new {
|
|
240
222
|
|
241
223
|
#privacy-rule-arrow {
|
242
224
|
background: url('images/add-policy.png') no-repeat center center;
|
243
|
-
color:
|
225
|
+
color: $text-over-main;
|
244
226
|
}
|
245
227
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "colors";
|
2
|
+
|
1
3
|
/******************** Search css ***********************/
|
2
4
|
/********************************* Header **************/
|
3
5
|
#header_search {
|
@@ -9,19 +11,18 @@
|
|
9
11
|
padding: 0 3px 0 22px;
|
10
12
|
background: url('btn/search_icon.png') 5px 50% no-repeat white;
|
11
13
|
font-size: 11px;
|
12
|
-
color:
|
14
|
+
color: $main-color;
|
13
15
|
}
|
14
16
|
#header_search_input {
|
15
|
-
border: solid 1px
|
17
|
+
border: solid 1px $input-border-color;
|
16
18
|
height: 16px;
|
17
19
|
width: 200px;
|
18
20
|
}
|
19
21
|
.banner_busqueda #header_search_input {
|
20
|
-
border: solid 1px #aaa;
|
21
22
|
height: 20px;
|
22
23
|
}
|
23
24
|
#global_search_input {
|
24
|
-
border: solid 1px
|
25
|
+
border: solid 1px $input-border-color;
|
25
26
|
height: 25px;
|
26
27
|
width: 300px;
|
27
28
|
}
|
@@ -30,36 +31,35 @@
|
|
30
31
|
display: none;
|
31
32
|
float: right;
|
32
33
|
margin-right: 35px;
|
33
|
-
border
|
34
|
-
border-
|
35
|
-
border-bottom: solid 1px #B9B9B9;
|
34
|
+
border: solid 1px $auxiliar-color;
|
35
|
+
border-top: none;
|
36
36
|
overflow: hidden;
|
37
37
|
position: absolute;
|
38
38
|
z-index: 2000;
|
39
|
-
background:
|
39
|
+
background: $fill-color;
|
40
40
|
text-align: left;
|
41
41
|
}
|
42
42
|
#header_search_display a {
|
43
|
-
color:
|
43
|
+
color: $main-color;
|
44
44
|
text-decoration: none;
|
45
45
|
}
|
46
46
|
#header_search_display a:hover {
|
47
|
-
color:
|
47
|
+
color: $main-color;
|
48
48
|
text-decoration: none;
|
49
49
|
font-weight: bold;
|
50
50
|
}
|
51
51
|
#header_search_display li {
|
52
52
|
padding: 4px;
|
53
|
-
border-top: solid 1px
|
53
|
+
border-top: solid 1px $auxiliar-color;
|
54
54
|
font-size: 10px;
|
55
55
|
height: 35px;
|
56
|
-
background:
|
56
|
+
background: $fill-color;
|
57
57
|
overflow: hidden;
|
58
58
|
text-align: center;
|
59
59
|
}
|
60
60
|
#header_search_display li:hover {
|
61
|
-
background:
|
62
|
-
color:
|
61
|
+
background: $secondary-color;
|
62
|
+
color: $main-color;
|
63
63
|
}
|
64
64
|
#header_search_display li .logo {
|
65
65
|
float: left;
|
@@ -84,14 +84,6 @@
|
|
84
84
|
height: 45px;
|
85
85
|
text-align: left;
|
86
86
|
}
|
87
|
-
#header_search_display li.title {
|
88
|
-
overflow: hidden;
|
89
|
-
text-align: center;
|
90
|
-
background: #879EB5;
|
91
|
-
height: 15px;
|
92
|
-
color: whiteSmoke;
|
93
|
-
font-weight: bold;
|
94
|
-
}
|
95
87
|
#header_search_display li.loading, #header_search_display li.more, #header_search_display li.none {
|
96
88
|
text-align: center;
|
97
89
|
}
|
@@ -116,6 +108,14 @@
|
|
116
108
|
}
|
117
109
|
.subject_search_results {
|
118
110
|
width: 186px;
|
111
|
+
height: 81px;
|
112
|
+
overflow: hidden;
|
113
|
+
text-align: center;
|
114
|
+
}
|
115
|
+
.subject_search_results.post {
|
116
|
+
width: 560px;
|
117
|
+
height: 100%;
|
118
|
+
overflow: hidden;
|
119
119
|
text-align: center;
|
120
120
|
}
|
121
121
|
.subject_search_results img {
|
@@ -123,7 +123,7 @@
|
|
123
123
|
height: 48px;
|
124
124
|
}
|
125
125
|
.subject_search_results .sub-block {
|
126
|
-
width:
|
126
|
+
width: 69%;
|
127
127
|
word-wrap: break-word;
|
128
128
|
height: 50px;
|
129
129
|
overflow: hidden;
|
@@ -139,6 +139,9 @@
|
|
139
139
|
float: right;
|
140
140
|
padding: 0;
|
141
141
|
}
|
142
|
+
#search_results .highlight{
|
143
|
+
background-color: $unread-color;
|
144
|
+
}
|
142
145
|
/********************************* Form and errors *********/
|
143
146
|
#search_form .error {
|
144
147
|
display: none;
|
@@ -1,9 +1,4 @@
|
|
1
1
|
module SearchHelper
|
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
|
-
end
|
7
2
|
|
8
3
|
def focus_search_link text, search_class, query
|
9
4
|
search_class = search_class.to_s if search_class.is_a? Class or search_class.is_a? Symbol
|
@@ -15,4 +10,29 @@ module SearchHelper
|
|
15
10
|
bare_query = strip_tags(params[:search_query]) unless bare_query.html_safe?
|
16
11
|
return bare_query.strip.size < SearchController::MIN_QUERY
|
17
12
|
end
|
13
|
+
|
14
|
+
def render_global_search_for model
|
15
|
+
render_model_view model, "_global_search"
|
16
|
+
end
|
17
|
+
|
18
|
+
def render_focus_search_for model
|
19
|
+
render_model_view model, "_focus_search"
|
20
|
+
end
|
21
|
+
|
22
|
+
def model_with_details model
|
23
|
+
render_model_view model, "_with_details"
|
24
|
+
end
|
25
|
+
|
26
|
+
def render_model_view model, type
|
27
|
+
model = model.model if model.is_a? Actor
|
28
|
+
render :partial => model.class.to_s.pluralize.downcase + '/' + model.class.to_s.downcase + type,
|
29
|
+
:locals => {model.class.to_s.downcase.to_sym => model}
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
def get_search_query_words
|
34
|
+
search_query = ""
|
35
|
+
bare_query = strip_tags(params[:search_query]) unless bare_query.html_safe?
|
36
|
+
return bare_query.strip.split
|
37
|
+
end
|
18
38
|
end
|
data/base/app/models/post.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
<div id="caracteristics">
|
2
|
-
<ul>
|
3
|
-
<li class="participants">
|
2
|
+
<ul class="list">
|
3
|
+
<li class="list participants">
|
4
4
|
<%= t('frontpage.elements.participants') %>
|
5
5
|
</li>
|
6
|
-
<li class="organizers">
|
6
|
+
<li class="list organizers">
|
7
7
|
<%= t('frontpage.elements.organizers') %>
|
8
8
|
</li>
|
9
|
-
<li class="
|
9
|
+
<li class="list groups">
|
10
10
|
<%= t('frontpage.elements.groups') %>
|
11
11
|
</li>
|
12
|
-
<li class="comments">
|
12
|
+
<li class="list comments">
|
13
13
|
<%= t('frontpage.elements.comments') %>
|
14
14
|
</li>
|
15
|
-
<li class="tags">
|
15
|
+
<li class="list tags">
|
16
16
|
<%= t('frontpage.elements.tags') %>
|
17
17
|
</li>
|
18
|
-
<li class="networks">
|
18
|
+
<li class="list networks">
|
19
19
|
<%= t('frontpage.elements.networks') %>
|
20
20
|
</li>
|
21
21
|
</ul>
|
@@ -21,10 +21,8 @@
|
|
21
21
|
<%= link_to t('sign_up'), new_user_registration_path, :class => "register_link" %>
|
22
22
|
<span>|</span>
|
23
23
|
<%= link_to t('forgot_password'), new_user_password_path, :class => "register_link" %>
|
24
|
-
|
25
|
-
<%=
|
26
|
-
|
27
|
-
<%= link_to image_tag('btn/linkedin.png'), user_omniauth_authorize_path(:linked_in), :class => "menu_icon" %>
|
24
|
+
|
25
|
+
<%= render :partial => 'frontpage/social_networks' %>
|
28
26
|
</div>
|
29
27
|
</div>
|
30
28
|
<br class="clearfloat" />
|
@@ -31,7 +31,6 @@
|
|
31
31
|
</div>
|
32
32
|
</div>
|
33
33
|
<div class="espacio"></div>
|
34
|
-
|
35
34
|
<div id="meet">
|
36
35
|
<div class="icon">
|
37
36
|
<div id="icon_meet"></div>
|
@@ -45,7 +44,6 @@
|
|
45
44
|
</div>
|
46
45
|
</div>
|
47
46
|
<div class="espacio"></div>
|
48
|
-
|
49
47
|
<div id="collaborate">
|
50
48
|
<div class="icon">
|
51
49
|
<div id="icon_collaborate"></div>
|
@@ -59,7 +57,6 @@
|
|
59
57
|
</div>
|
60
58
|
</div>
|
61
59
|
<div class="espacio"></div>
|
62
|
-
|
63
60
|
<div id="join_form">
|
64
61
|
<%= link_to image_tag("frontpage/join.gif", :alt=>"register"), new_user_registration_path, :class => "register_link" %>
|
65
62
|
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<% content_for :title do %>
|
2
|
+
<%= @group.name%>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<% if @group.profile.description? %>
|
6
|
+
<% content_for :description do %>
|
7
|
+
<%= @group.profile.description%>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% content_for :keywords do %>
|
12
|
+
<%= @group.profile.subject.tag_list%>
|
13
|
+
<% end %>
|
14
|
+
<% content_for :sidebar do %>
|
15
|
+
<%= render :partial => 'sidebar_show' %>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<%= location(link_to(image_tag("btn/btn_group.png", :class => "btn_config")+t('group.one')+": "+
|
19
|
+
content_tag(:span, ( truncate_name sanitize @group.name), :class=>"name_group")))%>
|
20
|
+
|
21
|
+
<% toolbar :profile => @group %>
|
22
|
+
|
23
|
+
<br class="clearfloat" />
|
24
|
+
<div class="space_center">
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="space_center">
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<%= render :partial => "activities/index",
|
31
|
+
:locals => { :activities => @group.wall(:profile, :for => current_subject).
|
32
|
+
page(params[:page]),
|
33
|
+
:owner => @group } %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<nav id="toolbar">
|
2
|
+
<div id="toolbarContent" class="block">
|
3
|
+
<div class="space_center"></div>
|
4
|
+
<%= yield :toolbar %>
|
5
|
+
</div>
|
6
|
+
</nav>
|
7
|
+
<div id= "center_body" class="frontpage_view">
|
8
|
+
<section id="content">
|
9
|
+
<%= render :partial => 'show' %>
|
10
|
+
</section>
|
11
|
+
</div>
|
@@ -1,33 +1,6 @@
|
|
1
|
-
<%
|
2
|
-
|
3
|
-
<%
|
4
|
-
|
5
|
-
<% if @group.profile.description? %>
|
6
|
-
<% content_for :description do %>
|
7
|
-
<%= @group.profile.description%>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<% content_for :keywords do %>
|
12
|
-
<%= @group.profile.subject.tag_list%>
|
13
|
-
<% end %>
|
14
|
-
<% content_for :sidebar do %>
|
15
|
-
<%= render :partial => 'sidebar_show' %>
|
16
|
-
<% end %>
|
17
|
-
|
18
|
-
<%= location(link_to(image_tag("btn/btn_group.png", :class => "btn_config")+t('group.one')+": "+
|
19
|
-
content_tag(:span, ( truncate_name sanitize @group.name), :class=>"name_group")))%>
|
20
|
-
|
1
|
+
<% if user_signed_in? %>
|
2
|
+
<%= render :partial => 'show' %>
|
3
|
+
<% else %>
|
21
4
|
<% toolbar :profile => @group %>
|
22
|
-
|
23
|
-
|
24
|
-
<div class="space_center">
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div class="space_center">
|
28
|
-
</div>
|
29
|
-
|
30
|
-
<%= render :partial => "activities/index",
|
31
|
-
:locals => { :activities => @group.wall(:profile, :for => current_subject).
|
32
|
-
page(params[:page]),
|
33
|
-
:owner => @group } %>
|
5
|
+
<%= render :partial => 'show_frontpage' %>
|
6
|
+
<% end %>
|