Skip to content

Commit

Permalink
Add id to microupdate element
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Sep 4, 2014
1 parent 7a1eb9c commit 3db0bd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/collective/liveblog/browser/templates/recent_updates.pt
Expand Up @@ -8,7 +8,8 @@
<article class="microupdate" data-timestamp="" itemprop="comment" itemscope itemtype="http://schema.org/Comment"
tal:define="timestamp request/timestamp|nothing"
tal:repeat="update python:view.updates_since_timestamp(timestamp)"
tal:attributes="data-timestamp update/timestamp">
tal:attributes="data-timestamp update/timestamp;
id string:microupdate-${update/id};">
<h2 class="microupdate-title" itemprop="headline"
tal:condition="update/title"
tal:content="update/title" />
Expand Down
3 changes: 2 additions & 1 deletion src/collective/liveblog/browser/templates/view.pt
Expand Up @@ -26,7 +26,8 @@
<section id="micro-updates">
<article class="microupdate" data-timestamp="" itemprop="comment" itemscope itemtype="http://schema.org/Comment"
tal:repeat="update view/updates"
tal:attributes="data-timestamp update/timestamp">
tal:attributes="data-timestamp update/timestamp;
id string:microupdate-${update/id};">
<h2 class="microupdate-title" itemprop="headline"
tal:condition="update/title"
tal:content="update/title" />
Expand Down

0 comments on commit 3db0bd2

Please sign in to comment.