{assign var="hideWidgets" value="true"}

{if not $template}
	{assign var="template" value="slate"}
{/if}

{include_php file="module:browser"}

{if not $user->isLoggedIn()}
	{message type="error" value="You must be logged in to view this page."}
{else}
	{tablemanager
		Assign="tm"
		Group="bug_tracker"
		Profile="bug_track_active"
		DeleteLogFile="tm-delete.log"
		TemplatePath="TM/templates/"
		StyleTablePath="systems/wlw/img/st/"
		StyleTable=$smarty.session.safe.tm_style_table|default:"gray"
		AddTemplate=$template|cat:"_edit.tpl"
		MainTemplate=$template|cat:"_main.tpl"
		ListTemplate=$template|cat:"_list.tpl"
		EditTemplate=$template|cat:"_edit.tpl"
		CommitPrehandler="prehandle.commit-bugs.php"
		CommitPosthandler="posthandle.commit-bugs.php"
		EditPrehandler="prehandle.edit-bugs.php"
		Action="list"
		LoginRequired="true"
		HeadingColor="7089A4"
		HighlightColor="F6F9D5"
		ResultsPerPage="20"
		Color1="F7F7F7"
		Color2="E7E7E7"
		DataStyle="hideWrap"
		MaxStringLength="50"
		DateFormat="D m/d/y h:i a "
		}
{/if}