Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created October 29, 2012 23:30
Show Gist options
  • Save eduardolundgren/3977316 to your computer and use it in GitHub Desktop.
Save eduardolundgren/3977316 to your computer and use it in GitHub Desktop.
<%--
/**
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<div class="calendar-portlet-agenda-view">
<table>
<tpl for="days">
<tpl for="parent.events[values]">
<tr <tpl if="($count >= 1) && ($i === $count-1)">class="calendar-portlet-agenda-view-row-last"</tpl>>
<th class="calendar-portlet-agenda-view-header">
<tpl if="$i === 0">
{[ new Date(A.Lang.toInt(parent)) ]}
</tpl>
</th>
<td class="calendar-portlet-agenda-view-content" id="placeholder{[ values.get('node').item(0).get('id') ]}"></td>
</tr>
</tpl>
</tpl>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment