{{if $comment}} {{$idField = $comment::$databaseColumnId;}} {{$quoteData = json_encode( array( 'userid' => $comment->author()->member_id, 'username' => $comment->author()->name, 'timestamp' => $comment->mapped('date'), 'contentapp' => $item::$application, 'contenttype' => $item::$module, 'contentclass' => str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) ) ) );}} {{else}} {{if $item}} {{$class = \get_class( $item );}} {{$quoteData = json_encode( array( 'userid' => $item->author()->member_id, 'username' => $item->author()->name, 'timestamp' => $item->mapped('date'), 'contentapp' => $item::$application, 'contenttype' => $item::$module, 'contentclass' => str_replace( '\\', '_', mb_substr( \get_class( $item ), 4 ) ) ) );}} {{else}} {{$quoteData = json_encode( array() );}} {{endif}} {{endif}} {{$pointCount = $report->getReportTypeCounts( true );}} {{$filterByType = isset( \IPS\Request::i()->report_type ) ? \IPS\Request::i()->report_type : NULL;}}
{{if $comment AND !( $item::$firstCommentRequired and $comment->isFirst() )}} {{if $comment->hidden() === -2}}

{{if $delLog}} {lang="content_delete_pending" sprintf="$delLog->deletion_date"} {{else}} {lang="content_deleted"} {{endif}}
{{if $delLog}}
{{endif}} {{else}} {{endif}} {{elseif $item}} {{if $item->hidden() === -2}}

{{if $delLog}} {lang="content_delete_pending" sprintf="$delLog->deletion_date"} {{else}} {lang="content_deleted"} {{endif}}
{{if $delLog}}
{{endif}} {{else}} {{endif}} {{endif}}

{lang="content_deleted"}

{lang="content_delete_pending"}
{{if $prevReport or $nextReport}} {{endif}}

{lang="responses_to_report"}

{{foreach $report->reports( $filterByType ) as $r}}
{template="userPhoto" app="core" group="global" params="\IPS\Member::load( $r['report_by'] ), 'mini'"}
{{if \IPS\Member::loggedIn()->modPermission('can_use_ip_tools') and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}} {{endif}}

{{if $r['report_type']}} {{$type = ''; try{ $type = \IPS\core\Reports\Types::load( $r['report_type'] )->_title; } catch( \Exception $e ) { } }} {lang="report_type_byline" sprintf="$type"} {{endif}} {lang="report_date_submitted"} {datetime="$r['date_reported']"}

{{if $r['report']}} {$r['report']|raw} {{else}}

{lang="report_no_message"}

{{endif}}
{{endforeach}}
isLastPage()}}data-lastPage{{endif}} data-feedID='report-{$report->id}'> {{if $report->commentPageCount() > 1}} {$report->commentPagination()|raw}

{{endif}}
{{foreach $report->comments() as $modcomment}} {$modcomment->html()|raw} {{endforeach}} {template="commentMultimod" app="core" group="global" params="$report"}
{{if $report->commentPageCount() > 1}}
{$report->commentPagination()|raw}

{{endif}}
{$report->commentForm()|raw}