Added showing poll status in "Watching topics" page

This commit is contained in:
Roman Kelesidis 2024-02-28 12:25:05 +07:00
parent 8447aa7874
commit a31f3245fb
2 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ if ($watch_count > 0)
'LAST_POST_RAW' => $watch[$i]['topic_last_post_time'],
'LAST_POST_ID' => $watch[$i]['topic_last_post_id'],
'IS_UNREAD' => $is_unread,
'POLL' => !IS_GUEST && $watch[$i]['topic_vote'],
'TOPIC_ICON' => get_topic_icon($watch[$i], $is_unread),
'PAGINATION' => ($watch[$i]['topic_status'] == TOPIC_MOVED) ? '' : build_topic_pagination(TOPIC_URL . $watch[$i]['topic_id'], $watch[$i]['topic_replies'], $bb_cfg['posts_per_page']),
));

View File

@ -106,6 +106,7 @@ td.topic_id { cursor: pointer; }
</td>
<td><a href="{watch.U_FORUM}" class="genmed">{watch.FORUM_TITLE}</a></td>
<td class="tLeft nowrap">
<!-- IF watch.POLL --><span class="topicPoll">{L_TOPIC_POLL}</span><!-- ENDIF -->
<a class="topictitle" title="{watch.FULL_TOPIC_TITLE}" href="{watch.U_TOPIC}">{watch.TOPIC_TITLE}</a>
<!-- IF watch.PAGINATION --><br /><span class="topicPG">&nbsp;[{ICON_GOTOPOST}{L_GOTO_SHORT} {watch.PAGINATION} ]</span><!-- ENDIF -->
</td>