Skip to content

Commit

Permalink
Merge pull request #29 from RuthAdele/patch-2
Browse files Browse the repository at this point in the history
Control is deprecated, change to loop.
  • Loading branch information
unclecheese committed Apr 29, 2014
2 parents 0acc856 + 3df93fe commit 8a583ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/LiveCalendarWidget.ss
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
 
<select id="live-calendar-widget-navigator">
<optgroup label="<% _t('JUMPTOMONTH','Jump to...') %>" />
<% control NavigationOptions %>
<% loop NavigationOptions %>
<option value="$Link" $Selected>$Month</option>
<% end_control %>
<% end_loop %>
<optgroup label="<% _t('QUICKLINKS','Quick Links') %>" />
<option value="$QuickMonthLink">This month</option>
<option value="$QuickWeekLink">This week</option>
Expand All @@ -36,18 +36,18 @@
</tr>
</thead>
<tbody>
<% control Weeks %>
<% loop Weeks %>
<tr>
<% control Days %>
<% loop Days %>
<td class="$Today $OutOfMonth $CurrentDay $HasEvent">
<a href="$ShowDayLink">$Number</a>
</td>
<% end_control %>
<% end_loop %>
<td class="showWeek">
<a title="<% _t('SHOWWEEK','Show week') %>" href="$ShowWeekLink">&laquo;</a>
</td>
</tr>
<% end_control %>
<% end_loop %>
</tbody>
<tfoot>
<tr>
Expand All @@ -57,4 +57,4 @@
</tfoot>
</table>
</div>
<% if Ajax %><% else %></div><% end_if %>
<% if Ajax %><% else %></div><% end_if %>

0 comments on commit 8a583ca

Please sign in to comment.