forked from rochacbruno-archive/Movuca
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
feb10e6
commit 0fd434a
Showing
6 changed files
with
108 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{include TIMELINEFUNCTIONS}} | ||
<ul class="timeline-wrapper"> | ||
<li class="timeline-item row eight columns" style="padding-top:5px;margin:0px;"> | ||
{{=form}} | ||
</li> | ||
{{for event in events:}} | ||
{{eventbox(event)}} | ||
{{pass}} | ||
</ul> | ||
{{if events:}} | ||
<a href="{{=CURL('person','privatetimeline', extension=False,vars=dict(limitby='0,25'))}}">{{=T("View all activities")}}</a> | ||
{{else:}} | ||
{{=T("No events on this timeline")}} | ||
{{pass}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{def eventbox(event):}} | ||
{{ | ||
event_info = dict(new_article={'url':CURL('article', 'show', extension=False), 'title':T("%(nickname)s added a new %(event_to)s")}, | ||
update_article={'url':CURL('article', 'show', extension=False), 'title':T("%(nickname)s updated an %(event_to)s")}, | ||
new_contact={'url':CURL('person', 'show', extension=False), 'title':T("%(nickname)s followed %(event_to)s")}, | ||
new_article_comment={'url':CURL('article', 'show', extension=False), 'title':T("%(nickname)s commented on %(event_to)s")}, | ||
liked={'url':CURL('article', 'show', extension=False), 'title': T("%(nickname)s liked the %(event_to)s")}, | ||
subscribed={'url':CURL('article', 'show', extension=False), 'title':T("%(nickname)s subscribed to %(event_to)s updates")}, | ||
favorited={'url':CURL('article', 'show', extension=False), 'title': T("%(nickname)s favorited the %(event_to)s")}, | ||
disliked={'url':CURL('article', 'show', extension=False), 'title':T("%(nickname)s disliked the %(event_to)s")}, | ||
new_picture={'url':CURL(), 'title':""}, | ||
new_picture_comment={'url':CURL(), 'title':""}, | ||
wrote_on_wall={'url':CURL('person', 'show', extension=False), 'title':T("%(nickname)s wrote on %(event_to)s's board")}) | ||
}} | ||
<li class="timeline-item row eight columns" style="padding-top:5px;margin:0px;" onclick="window.location='{{=event_info[event.event_type]['url']}}/{{=event.event_link}}'"> | ||
<div class="one columns alpha"> | ||
<img width="50" height="50" src="{{=event.event_image}}"> | ||
</div> | ||
<div class="six columns omega timeline-text" style="font-size:14px;line-height:14px;padding:0px;"> | ||
{{=event_info[event.event_type]['title'] % event}} | ||
<p>{{=event.event_text}}</p> | ||
</div> | ||
<div class="seven columns" style="text-align:left;font-size:14px;line-height:14px;padding:0px;">{{=pdate(event.created_on)}}</div> | ||
<div class="eight columns" style="text-align:right;font-size:14px;line-height:14px;padding:0px;"> | ||
<a>{{=T('reply')}}</a> | <a>{{=T('edit')}}</a> | <a>{{=T('delete')}}</a> | ||
</div> | ||
</li> | ||
{{return}} |