Commit 6cfef743 authored by Penny Leach's avatar Penny Leach

Fixed many inconsistencies in template cycling, they're now all r0,r1

parent 172cab54
......@@ -12,7 +12,7 @@
</thead>
<tbody>
{foreach from=$upgrades key=name item=upgrade}
<tr class="{cycle name=rows values='r1,r0'}">
<tr class="{cycle name=rows values='r0,r1'}">
<td>{$name}</td>
{if $name == 'firstcoredata' || $name == 'lastcoredata'}
<td></td>
......
......@@ -65,7 +65,7 @@
</tfoot>
<tbody>
{foreach from=$institutions item=institution}
<tr class="{cycle values=r1,r0}">
<tr class="{cycle values=r0,r1}">
<td>{$institution->displayname|escape}</td>
<td class="center">
{if $institution->name != 'mahara'}
......
......@@ -2,7 +2,7 @@
{$form}
{if $groups}
{foreach from=$groups item=group}
<div class="r{cycle values='0,1'} listing">
<div class="r{cycle values='r0,r1'} listing">
<div class="fr">
{include file="group/groupuserstatus.tpl" group=$group returnto='find'}
</div>
......
{if $results.data}
{foreach from=$results.cdata item=row}
<tr class="r{cycle values='0,1'}">
<tr class="r{cycle values='r0,r1'}">
{foreach from=$row item=r}
<td>
<div class="fl"><img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=40&amp;id={$r.id|escape}" alt=""></div>
......
......@@ -5,7 +5,7 @@
{$form}
{if $groups}
{foreach from=$groups item=group}
<div class="r{cycle values='0,1'} listing">
<div class="r{cycle values='r0,r1'} listing">
<div class="fr">
{include file="group/groupuserstatus.tpl" group=$group returnto='find'}
</div>
......
......@@ -16,7 +16,7 @@
{if $foruminfo}
<table class="fullwidth s">
{foreach from=$foruminfo item=postinfo}
<tr class="r{cycle values='0,1'}">
<tr class="r{cycle values='r0,r1'}">
<td><strong><a href="{$WWWROOT}interaction/forum/topic.php?id={$postinfo->topic|escape}#post{$postinfo->id|escape}">{$postinfo->topicname|escape}</a></strong></td>
<td>{$postinfo->body|str_shorten_html:100:true}</td>
<td><img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$postinfo->poster|escape}" alt="">
......@@ -36,7 +36,7 @@
<p>
<table class="fullwidth">
{foreach from=$sharedviews item=view}
<tr class="r{cycle values='0,1'}">
<tr class="r{cycle values='r0,r1'}">
<td>
<a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a>
{if $view.sharedby}
......@@ -67,7 +67,7 @@
<p>
<table class="fullwidth">
{foreach from=$submittedviews item=view}
<tr class="r{cycle values='0,1'}">
<tr class="r{cycle values='r0,r1'}">
<td>
<a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a>
{if $view.sharedby}
......
{foreach from=$data item=result}
<tr class="{cycle name=rows values='r1,r0'}">
<tr class="{cycle name=rows values='r0,r1'}">
<td class="center" style="width:25px;">{if $result->icon}<img src="{$result->icon}" alt="{$result->typestr}"> {/if}</td>
<td>
<div><strong><a href="{$result->url}">{$result->title|escape}</a></strong></div>
......
......@@ -4,7 +4,7 @@
{if $users}
<table id="friendslist" class="fullwidth listing">
{foreach from=$users item=user}
<tr class="r{cycle values='1,0'}">
<tr class="r{cycle values='r0,r1'}">
{include file="user/user.tpl" user=$user page='myfriends'}
</tr>
{/foreach}
......
{if $data}
{foreach from=$data item=user}
<tr class="r{cycle values='1,0'}">
<tr class="r{cycle values='r0,r1'}">
{include file="user/user.tpl" user=$user page=$page}
</tr>
{/foreach}
......
......@@ -4,7 +4,7 @@
<table class="fullwidth">
{foreach from=$views item=view}
<tr>
<td class="r{cycle values='0,1'}">
<td class="r{cycle values='r0,r1'}">
<h5><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a> {str tag=by section=view}
<a href="{$WWWROOT}{if $view.group}group{else}user{/if}/view.php?id={if $view.group}{$view.group}{else}{$view.owner}{/if}">{if $view.sharedby}{$view.sharedby}{else}{$groupname}{/if}</a>
</h5>
......
......@@ -9,7 +9,7 @@
<tbody>
{if $results}
{foreach from=$results item=row}
<tr class="r{cycle values='0,1'}">
<tr class="r{cycle values='r0,r1'}">
<td>
<a class="viewlink" href="{$WWWROOT}view/view.php?id={$row.id|escape}" target="_blank">{$row.title|escape}</a>
</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment