Skip to content

Commit

Permalink
Revert "optimizations"
Browse files Browse the repository at this point in the history
This reverts commit eac74d7.

Reason: the change that defines the newpostbox_view globally on the activity
stream seems to cause LocationError

Conflicts:
	plonesocial/activitystream/browser/prototype/post.html
  • Loading branch information
pysailor committed Mar 4, 2015
1 parent aac2b6a commit b5e3358
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Expand Up @@ -7,14 +7,9 @@

<!-- https://github.com/ploneintranet/ploneintranet.theme/blob/master/prototype/_includes/activity-stream.html -->
<metal:macro define-macro="main">
<tal:define define="
newpostbox_view nocall:here/@@newpostbox.tile;
toLocalizedTime nocall:toLocalizedTime|here/@@plone/toLocalizedTime;
">
<tal:loop tal:repeat="activity_provider activity_providers|view/activity_providers">
<metal:block use-macro="here/@@post.html/main" />
</tal:loop>
</tal:define>
<tal:loop tal:repeat="activity_provider activity_providers|view/activity_providers">
<metal:block use-macro="here/@@post.html/main" />
</tal:loop>
</metal:macro>

</body>
Expand Down
4 changes: 2 additions & 2 deletions plonesocial/activitystream/browser/prototype/comment.html
Expand Up @@ -16,14 +16,14 @@
userid provider/userid;
avatar_img string:${portal_url}/portal_memberdata/portraits/${userid};
avatar_name userid;
toLocalizedTime nocall:toLocalizedTime|here/@@plone/toLocalizedTime;
tlt nocall:here/@@plone/toLocalizedTime;
"
>
<metal:block use-macro="here/@@avatar.html/main" />
<h4 class="name" tal:content="string:${provider/Creator}">
User Name
</h4>
<time class="date" tal:content="python:toLocalizedTime(provider.date)">1 hour ago</time>
<time class="date" tal:content="python:tlt(provider.date)">1 hour ago</time>
</a>
</div>
<section class="comment-content" tal:content="structure provider/text">
Expand Down
1 change: 1 addition & 0 deletions plonesocial/activitystream/browser/prototype/post.html
Expand Up @@ -108,6 +108,7 @@ <h4 tal:content="activity_provider/Creator" class="name">
</div>
</tal:commentable>


</div>
</metal:macro>

Expand Down

0 comments on commit b5e3358

Please sign in to comment.