social_stream-base 0.9.8 → 0.9.9
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 +1 -0
- data/app/assets/stylesheets/activities.css +5 -4
- data/app/models/activity.rb +1 -1
- data/app/views/comments/_new.html.erb +17 -9
- data/app/views/groups/show.html.erb +4 -1
- data/lib/social_stream/base/version.rb +1 -1
- metadata +4 -5
- data/app/views/activities/_walls.html.erb +0 -34
@@ -91,6 +91,7 @@ $(function() {
|
|
91
91
|
//show only the text fields for new comment if there are any comment to the post
|
92
92
|
$(".activity_new_comment").each(function(){
|
93
93
|
if ($.trim($(this).siblings(".activity_comments").text()) != ""){
|
94
|
+
$(this).addClass("comment_shown");
|
94
95
|
$(this).show();
|
95
96
|
}
|
96
97
|
});
|
@@ -57,20 +57,21 @@
|
|
57
57
|
|
58
58
|
|
59
59
|
.activity_new_comment{ font-size: 11px; padding-left: 5px; background: #deeff8;
|
60
|
-
border: thin solid #D4E4E4;
|
60
|
+
border: thin solid #D4E4E4; padding-top: 3px; padding-bottom: 3px;display:none;}
|
61
61
|
.actor_logo_subactivity { width: 40px; padding: 5px 3px 5px 2px; display: inline-block;
|
62
62
|
vertical-align: top;}
|
63
63
|
.input_new_comments{ border:1px solid #BDC7D8; width:98%; padding: 2px; color:#2A3890;}
|
64
|
-
.subactivity{ font-size: 11px; padding: 0px
|
65
|
-
border: thin solid #D4E4E4;
|
64
|
+
.subactivity{ font-size: 11px; padding: 0px 5px 0px 5px; background: #deeff8;
|
65
|
+
border: thin solid #D4E4E4; display:block; }
|
66
66
|
.space_comments { padding-top: 1px; padding-bottom: 1px;}
|
67
67
|
#input_activities { border-color: #0656a4; color: #2A3890; padding: 5px 5px 5px 5px;
|
68
68
|
border:1px solid #BDC7D8;}
|
69
69
|
#activities_share_btn { text-align: right; padding: 5px 16px 0px 10px; vertical-align: middle;}
|
70
|
-
.activities_comment_btn{ text-align: right;
|
70
|
+
.activities_comment_btn{ text-align: right; padding: 5px 5px 2px 10px; vertical-align: middle;}
|
71
71
|
|
72
72
|
.hide_show_comments{font-size: 11px; padding-left: 5px; background: #deeff8;
|
73
73
|
border: thin solid #D4E4E4; width:100%; padding-top: 3px; padding-bottom: 3px;}
|
74
|
+
.new_comment{ display: inline-block; padding-top: 19px; width: 410px;}
|
74
75
|
/*********** DROP DOWN**********/
|
75
76
|
#security_chzn .chzn-choices {
|
76
77
|
padding-left: 20px;
|
data/app/models/activity.rb
CHANGED
@@ -52,7 +52,7 @@ class Activity < ActiveRecord::Base
|
|
52
52
|
or(contacts[:receiver_id].eq(Actor.normalize_id(args[:owner])))
|
53
53
|
|
54
54
|
audience_conditions =
|
55
|
-
audiences[:relation_id].
|
55
|
+
audiences[:relation_id].in(args[:relation_ids]).
|
56
56
|
or(relations[:type].eq('Relation::Public'))
|
57
57
|
|
58
58
|
conds =
|
@@ -1,12 +1,16 @@
|
|
1
1
|
<% if user_signed_in? && current_subject.can_comment?(activity) %>
|
2
2
|
<div class="activity_new_comment">
|
3
|
-
|
4
|
-
|
5
|
-
current_subject.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
<div class="actor_logo_subactivity">
|
4
|
+
<%= image_tag(current_subject.logo.url(:actor),
|
5
|
+
:alt => current_subject.name)%>
|
6
|
+
</div>
|
7
|
+
<%= form_for Comment.new(:text => t('comment.input'),
|
8
|
+
:_contact_id =>
|
9
|
+
current_subject.contact_to!(activity.receiver).id,
|
10
|
+
:_activity_parent_id => activity.id
|
11
|
+
),
|
12
|
+
:html => { :class => "new_comment", :id => "new_comment"+dom_id(activity) },
|
13
|
+
:remote => true do |f| %>
|
10
14
|
|
11
15
|
<%= f.hidden_field :_contact_id %>
|
12
16
|
<%= f.hidden_field :_activity_parent_id %>
|
@@ -17,13 +21,17 @@
|
|
17
21
|
<div class="activities_security"></div>
|
18
22
|
<%= f.submit t('share'), :class =>"myButtonBlue submitActivity", :id => "comment_submit_"+dom_id(activity) %>
|
19
23
|
</div>
|
20
|
-
|
24
|
+
<% end %>
|
21
25
|
</div>
|
22
26
|
<% end %>
|
23
27
|
|
24
28
|
<%= javascript_tag do %>
|
25
29
|
$(document).ready(function() {
|
26
30
|
$("#comment_text_<%= dom_id(activity) %>").Watermark("<%= I18n.t('comment.input') %>","#666");
|
27
|
-
activate_anti_rebounds();
|
31
|
+
activate_anti_rebounds();
|
32
|
+
$(".input_new_comments").blur(function(){
|
33
|
+
$(".activity_new_comment").hide();
|
34
|
+
$(".comment_shown").show();
|
35
|
+
});
|
28
36
|
});
|
29
37
|
<% end %>
|
@@ -27,4 +27,7 @@
|
|
27
27
|
<div class="space_center">
|
28
28
|
</div>
|
29
29
|
|
30
|
-
<%= render :partial =>
|
30
|
+
<%= render :partial => "activities/index",
|
31
|
+
:locals => { :activities => @group.wall(:profile, :for => current_subject).
|
32
|
+
page(params[:page]),
|
33
|
+
:owner => @group } %>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 41
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 9
|
10
|
+
version: 0.9.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GING - DIT - UPM
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-09-
|
19
|
+
date: 2011-09-28 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -733,7 +733,6 @@ files:
|
|
733
733
|
- app/views/activities/_options.html.erb
|
734
734
|
- app/views/activities/_root.html.erb
|
735
735
|
- app/views/activities/_wall.html.erb
|
736
|
-
- app/views/activities/_walls.html.erb
|
737
736
|
- app/views/activities/index.js.erb
|
738
737
|
- app/views/activity_objects/_activity_object.html.erb
|
739
738
|
- app/views/actors/_actor.html.erb
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<% content_for :javascript do %>
|
2
|
-
$("#tabs").tabs({
|
3
|
-
ajaxOptions: {
|
4
|
-
dataType: "script",
|
5
|
-
success: function(data) { eval(data); }
|
6
|
-
}
|
7
|
-
});
|
8
|
-
<% end %>
|
9
|
-
|
10
|
-
<div id="tabs" class="block">
|
11
|
-
<ul class="activity_tabs">
|
12
|
-
<li><%= link_to "<span>#{ h truncate_name owner.name }</span>".html_safe, "#wall-profile" %></li>
|
13
|
-
|
14
|
-
<% owner.relation_customs.sort.each do |r| %>
|
15
|
-
<li><%= link_to "<span>#{ h r.name }</span>".html_safe,
|
16
|
-
polymorphic_path([ owner, Activity.new ], :section => r.id, :wall => true),
|
17
|
-
:title => "wall-#{ r.id }" %></li>
|
18
|
-
<% end %>
|
19
|
-
</ul>
|
20
|
-
|
21
|
-
<div id="wall-profile">
|
22
|
-
<%= render :partial => 'activities/index',
|
23
|
-
:locals => { :owner => owner,
|
24
|
-
:activities => owner.wall(:profile,
|
25
|
-
:for => current_subject).
|
26
|
-
page(params[:page]) } %>
|
27
|
-
</div>
|
28
|
-
|
29
|
-
<% owner.relation_customs.sort.each do |r| %>
|
30
|
-
<div id="wall-<%= r.id %>"></div>
|
31
|
-
<% end %>
|
32
|
-
</div>
|
33
|
-
|
34
|
-
|