<commit_before>{* $Id$ *}
{if !$tsAjax}
	{$forum_info.name|addonnavbar:'forum'}
	{title help="forums" admpage="forums" url=$forum_info.forumId|sefurl:'forum'}{$forum_info.name|addongroupname}{/title}

	{if $forum_info.show_description eq 'y'}
		<div class="description help-block">{wiki}{$forum_info.description}{/wiki}</div>
	{/if}

	<div class="t_navbar margin-bottom-md">
		{assign var=thisforum_info value=$forum_info.forumId}
		{if ($tiki_p_forum_post_topic eq 'y' and ($prefs.feature_wiki_discuss ne 'y' or $prefs.$forumId ne $prefs.wiki_forum_id)) or $tiki_p_admin_forum eq 'y'}
			{if !isset($comments_threadId) or $comments_threadId eq 0}
				{button href="tiki-view_forum.php?openpost=1&amp;forumId=$thisforum_info&amp;comments_threadId=0&amp;comments_threshold=$comments_threshold&amp;comments_offset=$comments_offset&amp;thread_sort_mode=$thread_sort_mode&amp;comments_per_page=$comments_per_page" _onclick="$('#forumpost').show();return false;" _icon_name="create" _text="{tr}New Topic{/tr}"}
			{else}
				{button href="tiki-view_forum.php?openpost=1&amp;forumId=$thisforum_info&amp;comments_threadId=0&amp;comments_threshold=$comments_threshold&amp;comments_offset=$comments_offset&amp;thread_sort_mode=$thread_sort_mode&amp;comments_per_page=$comments_per_page" _onclick="$('#forumpost').show();return false;" _icon_name="create" _text="{tr}New Topic{/tr}"}
			{/if}
		{/if}
		{if $tiki_p_admin_forum eq 'y'}
			{button href="tiki-admin_forums.php?forumId=$thisforum_info&amp;cookietab=2#content_admin_forums1-2" _icon_name="edit" _text="{tr}Edit Forum{/tr}"}
		{/if}
		{if $tiki_p_admin_forum eq 'y' or !isset($all_forums) or $all_forums|@count > 1}
			{* No need for users to go to forum list if they are already looking at the only forum BUT note that all_forums only defined with quickjump feature *}
			{button href="tiki-forums.php" _icon_name="list" _text="{tr}Forum List{/tr}"}
		{/if}

		{if $prefs.feed_forum eq 'y'}
			<a href="tiki-forum_rss.php?forumId={$forumId}" class="tips" title=":{tr}RSS feed{/tr}">
				{icon name="rss"}
			</a>
		{/if}

		{if !empty($tiki_p_forum_lock) and $tiki_p_forum_lock eq 'y'}
			{if $forum_info.is_locked eq 'y'}
				{self_link lock='n' _icon_name='unlock' _alt="{tr}Unlock{/tr}"}{/self_link}
			{else}
				{self_link lock='y' _icon_name='lock' _alt="{tr}Lock{/tr}"}{/self_link}
			{/if}
		{/if}

		{if $user and $prefs.feature_user_watches eq 'y'}
			{if $user_watching_forum eq 'n'}
				<a class="pull-right tips" href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic&amp;watch_object={$forumId}&amp;watch_action=add" title="{$forum_info.name|escape}:{tr}Monitor topics{/tr}">
					{icon name="watch"}
				</a>
			{else}
				<a class="pull-right tips" href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic&amp;watch_object={$forumId}&amp;watch_action=remove" title="{$forum_info.name|escape}:{tr}Stop monitoring topics{/tr}">
					{icon name="stop-watching"}
				</a>
			{/if}
		{/if}

		{if $user and $prefs.feature_user_watches eq 'y'}
			{if $user_watching_forum_topic_and_thread eq 'n'}
				<a class="pull-right tips" href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic_and_thread&amp;watch_object={$forumId}&amp;watch_action=add" title="{$forum_info.name|escape}:{tr}Monitor topics and threads{/tr}">
					{icon name="watch"}
				</a>
			{else}
				<a class="pull-right tips" href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic_and_thread&amp;watch_object={$forumId}&amp;watch_action=remove" title="{$forum_info.name|escape}:{tr}Stop monitoring topics and threads{/tr}">
					{icon name="stop-watching"}
				</a>
			{/if}
		{/if}

		{if $prefs.feature_group_watches eq 'y' and ( $tiki_p_admin_users eq 'y' or $tiki_p_admin eq 'y' )}
			<a href="tiki-object_watches.php?objectId={$forumId|escape:"url"}&amp;watch_event=forum_post_topic_and_thread&amp;objectType=forum&amp;objectName={$forum_info.name|escape:"url"}&amp;objectHref={'tiki-view_forum.php?forumId='|cat:$forumId|escape:"url"}" class="pull-right tips" title="{$forum_info.name|escape}:{tr}Group monitor topics and threads{/tr}">
				{icon name="watch-group"}
			</a>
		{/if}

		<div class="categbar" align="right" >
			{if $user and $prefs.feature_user_watches eq 'y'}
				{if isset($category_watched) and $category_watched eq 'y'}
					{tr}Watched by categories:{/tr}
					{section name=i loop=$watching_categories}
						<a href="tiki-browse_categories.php?parentId={$watching_categories[i].categId}">{$watching_categories[i].name|escape}</a>
						&nbsp;
					{/section}
				{/if}
			{/if}
		</div>
	</div>
	<div class="breadcrumb">
		<a class="link" href="{if $prefs.feature_sefurl eq 'y'}forums{else}tiki-forums.php{/if}">{tr}Forums{/tr}</a>
		{$prefs.site_crumb_seper}
		<a class="link" href="{$forumId|sefurl:'forum'}">{$forum_info.name|addongroupname|escape}</a>
	</div>

	{if !empty($errors)}
		{remarksbox type="warning" title="{tr}Errors{/tr}"}
			{foreach from=$errors item=error name=error}
				{if !$smarty.foreach.error.first}<br>{/if}<commit_msg>[REF] put forum actions under ellipsis dropdown<commit_after>{* $Id$ *}
{if !$tsAjax}
	{$forum_info.name|addonnavbar:'forum'}
	{title help="forums" admpage="forums" url=$forum_info.forumId|sefurl:'forum'}{$forum_info.name|addongroupname}{/title}

	{if $forum_info.show_description eq 'y'}
		<div class="description help-block">{wiki}{$forum_info.description}{/wiki}</div>
	{/if}

	<div class="t_navbar margin-bottom-md">
		{assign var=thisforum_info value=$forum_info.forumId}
		{if ($tiki_p_forum_post_topic eq 'y' and ($prefs.feature_wiki_discuss ne 'y' or $prefs.$forumId ne $prefs.wiki_forum_id)) or $tiki_p_admin_forum eq 'y'}
			{if !isset($comments_threadId) or $comments_threadId eq 0}
				{button href="tiki-view_forum.php?openpost=1&amp;forumId=$thisforum_info&amp;comments_threadId=0&amp;comments_threshold=$comments_threshold&amp;comments_offset=$comments_offset&amp;thread_sort_mode=$thread_sort_mode&amp;comments_per_page=$comments_per_page" _onclick="$('#forumpost').show();return false;" _icon_name="create" _text="{tr}New Topic{/tr}"}
			{else}
				{button href="tiki-view_forum.php?openpost=1&amp;forumId=$thisforum_info&amp;comments_threadId=0&amp;comments_threshold=$comments_threshold&amp;comments_offset=$comments_offset&amp;thread_sort_mode=$thread_sort_mode&amp;comments_per_page=$comments_per_page" _onclick="$('#forumpost').show();return false;" _icon_name="create" _text="{tr}New Topic{/tr}"}
			{/if}
		{/if}
		{if $tiki_p_admin_forum eq 'y'}
			{button href="tiki-admin_forums.php?forumId=$thisforum_info&amp;cookietab=2#content_admin_forums1-2" _icon_name="edit" _text="{tr}Edit Forum{/tr}"}
		{/if}
		{if $tiki_p_admin_forum eq 'y' or !isset($all_forums) or $all_forums|@count > 1}
			{* No need for users to go to forum list if they are already looking at the only forum BUT note that all_forums only defined with quickjump feature *}
			{button href="tiki-forums.php" _icon_name="list" _text="{tr}Forum List{/tr}"}
		{/if}
		<div class="btn-group pull-right">
			<a class="btn btn-link" data-toggle="dropdown" data-hover="dropdown" href="#">
				{icon name="more"}
			</a>
			<ul class="dropdown-menu dropdown-menu-right">
				<li class="dropdown-title">
					{tr}Forum actions{/tr}
				</li>
				<li class="divider"></li>
				{if $user and $prefs.feature_user_watches eq 'y'}
					<li>
						{if $user_watching_forum eq 'n'}
							<a href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic&amp;watch_object={$forumId}&amp;watch_action=add">
								{icon name="watch"} {tr}Monitor topics{/tr}
							</a>
						{else}
							<a href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic&amp;watch_object={$forumId}&amp;watch_action=remove">
								{icon name="stop-watching"} {tr}Stop monitoring topics{/tr}
							</a>
						{/if}
					</li>
				{/if}
				{if $user and $prefs.feature_user_watches eq 'y'}
					<li>
						{if $user_watching_forum_topic_and_thread eq 'n'}
							<a href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic_and_thread&amp;watch_object={$forumId}&amp;watch_action=add">
								{icon name="watch"} {tr}Monitor topics and threads{/tr}
							</a>
						{else}
							<a class="pull-right tips" href="tiki-view_forum.php?forumId={$forumId}&amp;watch_event=forum_post_topic_and_thread&amp;watch_object={$forumId}&amp;watch_action=remove">
								{icon name="stop-watching"} {tr}Stop monitoring topics and threads{/tr}
							</a>
						{/if}
					</li>
				{/if}
				{if $prefs.feature_group_watches eq 'y' and ( $tiki_p_admin_users eq 'y' or $tiki_p_admin eq 'y' )}
					<li>
						<a href="tiki-object_watches.php?objectId={$forumId|escape:"url"}&amp;watch_event=forum_post_topic_and_thread&amp;objectType=forum&amp;objectName={$forum_info.name|escape:"url"}&amp;objectHref={'tiki-view_forum.php?forumId='|cat:$forumId|escape:"url"}">
							{icon name="watch-group"} {tr}Group monitor topics and threads{/tr}
						</a>
					</li>
				{/if}
				{if !empty($tiki_p_forum_lock) and $tiki_p_forum_lock eq 'y'}
					<li>
						{if $forum_info.is_locked eq 'y'}
							{self_link lock='n' _icon_name='unlock' _menu_text='y' _menu_icon='y'}
								{tr}Unlock{/tr}
							{/self_link}
						{else}
							{self_link lock='y' _icon_name='lock'  _menu_text='y' _menu_icon='y'}
								{tr}Lock{/tr}
							{/self_link}
						{/if}
					</li>
				{/if}
				{if $prefs.feed_forum eq 'y'}
					<li>
						<a href="tiki-forum_rss.php?forumId={$forumId}">
							{icon name="rss"} {tr}RSS feed{/tr}
						</a>
					</li>
				{/if}
			</ul>
		</div>
		<div class="categbar" align="right">
			{if $user and $prefs.feature_user_watches eq 'y'}
				{if isset($category_watched) and $category_watched eq 'y'}
					{tr}Watched by categories:{/tr}
					{section name=i loop=$watching_categories}
						<a href="tiki-browse_categories.php?parentId={$watching_categories[i].categId}">{$watching_categories[i].name|escape}</a>
						&nbsp;
					{/section}
				{/if}
			{/if}
		</div>
	</div>
	<div class="breadcrumb">
		<a class="link" href="{if $prefs.feature_sefurl eq 'y'}forums{else}tiki-forums.php{/if}">{tr}Forums{/tr}</a>
		{$prefs.site_crumb_seper}
		<a class="link" href="{$forumId|sefurl:'forum'}">{$forum_info.name|addongroupname|escape}</a>
	</div>

	{if !empty($errors)}
		{remarksbox type="warning" title="{tr}Errors{/tr}"}
			{foreach from=$errors item=error name=error}
				{if !$smarty.foreach.error.first}<br>{/if}
{'fraction_non_alphanumeric': 0.1785036080516521, 'fraction_numerical': 0.001709077098366882, 'mean_word_length': 5.587242026266416, 'pattern_counts': {'":': 1, '<': 77, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2620597', 'n_tokens_mistral': 4729, 'n_tokens_neox': 4031, 'n_words': 624}