Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
activitystream
Commits
4f4263d09b01
Commit
a82beb0a
authored
Aug 04, 2011
by
Sylvain Thénault
Browse files
up
parent
9c6f2d721ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
astreampart.diff
View file @
4f4263d0
...
...
@@ -117,7 +117,7 @@ diff --git a/entities.py b/entities.py
diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -2,
18
+2,
2
0 @@
from cubicweb.selectors import is_instan
@@ -2,
30
+2,
3
0 @@
from cubicweb.selectors import is_instan
from cubicweb.view import EntityView
class AStreamView(EntityView):
...
...
@@ -138,11 +138,18 @@ diff --git a/views.py b/views.py
__select__ = EntityView.__select__ & adaptable('IActivityStreamItem')
def cell_call(self, row, col):
@@ -25,7 +27,5 @@
class AStreamItemView(EntityView):
self._cw.add_css('cubes.astream.css')
entity = self.cw_rset.get_entity(row, col)
- ablock = entity.dc_creator()
activity = entity.cw_adapt_to('IActivityStreamItem')
self.w(u'<div class="activitystream">'
u'<span class="author">%s</span>'
u'<span class="msgtxt">%s</span>'
u'<span class="meta"><a href="%s">%s</a></span>'
u'</div>' % (ablock, activity.content,
entity.absolute_url(), activity.date))
-
u'</div>' % (ablock, activity.content,
-
entity.absolute_url(), activity.date))
-
-
+ u'</div>' % (activity.actor, activity.content,
+ entity.absolute_url(),
+ self._cw.format_date(activity.date, time=True)))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment