Commit 8281ca0d authored by Nigel McNie's avatar Nigel McNie

Added icons next to closed and subscribed topics. Will be up to G&D what icons end up being needed.

Also, added a key down the bottom of the view forum page, so that people can find out what the icons mean.
parent bf432427
......@@ -96,6 +96,7 @@ $string['sticky'] = 'Sticky';
$string['stickydescription'] = 'Sticky topics are at the top of every page';
$string['stickytopics'] = 'Sticky topics';
$string['subscribe'] = 'Subscribe';
$string['Subscribed'] = 'Subscribed';
$string['subscribetoforum'] = 'Subscribe to forum';
$string['subscribetotopic'] = 'Subscribe to topic';
$string['subject'] = 'Subject';
......
......@@ -5,8 +5,8 @@
<tr class="r0">
{/if}
<td>
{if $topic->closed}C{else}O{/if}
{if $topic->subscribed}S{else}U{/if}
{if $topic->closed}<img src="{$closedicon|escape}" alt="{str tag="closed" section="interaction.forum"}">{/if}
{if $topic->subscribed}<img src="{$subscribedicon|escape}" alt="{str tag="subscribed" section="interaction.forum"}">{/if}
</td>
{if !$forum->subscribed || $moderator}
<td>
......
......@@ -72,6 +72,13 @@
<input type="submit" name="updatetopics2" value="{str tag="updatetopics" section="interaction.forum"}" class="submit">
{/if}
</form>
<h4>Key:</h4>
<ul>
<li><img src="{$closedicon|escape}" alt="{str tag="closed" section="interaction.forum"}"> {str tag="closed" section="interaction.forum"}</li>
<li><img src="{$subscribedicon|escape}" alt="{str tag="Subscribed" section="interaction.forum"}"> {str tag="Subscribed" section="interaction.forum"}</li>
</ul>
{else}
{str tag="notopics" section="interaction.forum"}
{/if}
......
......@@ -226,6 +226,8 @@ $smarty->assign('moderator', $moderator);
$smarty->assign('admin', $admin);
$smarty->assign('stickytopics', $stickytopics);
$smarty->assign('regulartopics', $regulartopics);
$smarty->assign('closedicon', theme_get_url('images/closed.gif', 'interaction/forum/'));
$smarty->assign('subscribedicon', theme_get_url('images/subscribed.gif', 'interaction/forum/'));
$smarty->assign('pagination', $pagination['html']);
$smarty->assign('INLINEJAVASCRIPT', $inlinejavascript);
$smarty->display('interaction:forum:view.tpl');
......
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