File tree 9 files changed +45
-17
lines changed
plonesocial/activitystream
9 files changed +45
-17
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ Contributors
6
6
* Leonardo J. Caballero G.
7
7
* Thomas Desvenain
8
8
* Hector Velarde
9
+ * Maarten Kling
10
+ * Roel Bruggink
Original file line number Diff line number Diff line change 23
23
factory =" .activity_provider.StatusActivityProvider"
24
24
/>
25
25
26
- <adapter
26
+ <adapter
27
27
factory =" .activity_provider.ContentActivityProvider"
28
28
/>
29
29
30
- <adapter
30
+ <adapter
31
31
factory =" .activity_provider.DiscussionActivityProvider"
32
32
/>
33
33
34
- <adapter
34
+ <adapter
35
35
name =" plonesocial.activitystream.stream_provider"
36
36
factory =" .stream_provider.StreamProvider"
37
37
/>
67
67
68
68
<!-- complex portlet-based view separated out for clear config -->
69
69
<include file =" activitystream_portal.zcml" />
70
-
71
-
70
+
71
+
72
72
<browser : resourceDirectory
73
73
name =" plonesocial.activitystream.stylesheets"
74
74
directory =" stylesheets"
75
75
layer =" .interfaces.IPlonesocialActivitystreamLayer"
76
76
/>
77
-
77
+
78
+ <browser : resourceDirectory
79
+ name =" plonesocial.activitystream.javascripts"
80
+ directory =" javascripts"
81
+ layer =" .interfaces.IPlonesocialActivitystreamLayer"
82
+ />
78
83
79
84
</configure >
Original file line number Diff line number Diff line change
1
+ ; ( function ( $ ) {
2
+ $ ( document ) . ready ( function ( ) {
3
+ $ ( '.reply a' ) . click ( function ( event ) {
4
+ event . preventDefault ( ) ;
5
+ var url = "/@@status/" + $ ( this ) . attr ( 'data-reply' ) + '/' ;
6
+ // replace a > div.reply > div.activityItem
7
+ $ ( this ) . parent ( ) . parent ( ) . load ( url + ' .conversation' ) ;
8
+ $ ( this ) . parent ( ) . parent ( ) . removeClass ( 'activityItem' ) ;
9
+ } ) ;
10
+ } ) ;
11
+ } ( jQuery ) ) ;
12
+ var jq = jQuery ;
Original file line number Diff line number Diff line change 1
1
<div i18n : domain =" plonesocial.activitystream"
2
2
tal : attributes =" class string:activityItem ${view/render_type}" >
3
3
4
- I am a content activity provider
5
-
6
4
<div class =" activityAvatar" >
7
5
<a href =" "
8
6
tal : attributes =" href view/author_home_url" >
Original file line number Diff line number Diff line change 14
14
15
15
<div class =" plonesocial activitystream" >
16
16
<h1 class =" documentFirstHeading" i18n : translate =" "
17
- tal : content =" view/title" >Updates </h1 >
18
-
17
+ tal : content =" view/title" >Conversation </h1 >
18
+
19
19
<tal : block replace =" structure view/statusconversation_provider" />
20
20
</div >
21
21
Original file line number Diff line number Diff line change 1
1
<div i18n : domain =" plonesocial.activitystream"
2
2
tal : attributes =" class string:activityItem ${view/render_type}" >
3
3
4
- I am a discussion activity provider
5
-
6
4
<div class =" activityAvatar" >
7
5
<a href =" "
8
6
tal : attributes =" href view/author_home_url" >
Original file line number Diff line number Diff line change 1
1
<div i18n : domain =" plonesocial.activitystream"
2
2
tal : attributes =" class string:activityItem ${view/render_type}" >
3
3
4
- I am a statusactivity provider
5
- <span tal : content =" view/status_id" />
6
-
7
4
<div class =" activityAvatar" >
8
5
<a href =" "
9
6
tal : attributes =" href view/author_home_url" >
@@ -50,8 +47,10 @@ I am a statusactivity provider
50
47
51
48
</div >
52
49
53
- <div ><a tal : attributes =" href string:@@status/${view/status_id}"
54
- >conversation</a >
50
+ <div class =" reply" >
51
+ <a i18n : translate =" "
52
+ tal : attributes =" href string:@@status/${view/status_id};
53
+ data-reply string:${view/status_id};" >Reply</a >
55
54
</div >
56
55
57
56
Original file line number Diff line number Diff line change @@ -116,3 +116,5 @@ msgstr "zegt:"
116
116
msgid "manage_activitystream_portlets"
117
117
msgstr "Activiteiten stroom portlets beheren"
118
118
119
+ msgid "Conversation"
120
+ msgstr "Reacties"
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <object name =" portal_javascripts" >
3
+
4
+ <javascript id =" ++resource++plonesocial.activitystream.javascripts/main.js"
5
+ cacheable =" True"
6
+ compression =" safe"
7
+ cookable =" True"
8
+ enabled =" True"
9
+ authenticated =" True"
10
+ inline =" False" />
11
+
12
+ </object >
You can’t perform that action at this time.
0 commit comments