{@args forum: String, forum_href: String, reports: [OpinionhubReportRow], log: [OpinionhubLogRow], token: String, base: String} {@import opinionhub/opinionhub_text} {@import opinionhub_web/opinionhub_views}

Moderation

{opinionhub_plural (opinionhub_count reports) "open report" "open reports"}

{if opinionhub_none reports}

Nothing to look at.

{else}
    {for r: OpinionhubReportRow in reports}
  1. {opinionhub_rrow_post_label r}{if (str_len (opinionhub_rrow_author_name r)) > 0} ยท by {opinionhub_rrow_author_name r}{end}

    {opinionhub_rrow_reason r}

    Reported by {opinionhub_rrow_reporter_name r},

  2. {end}
{end}

Moderation log

{if opinionhub_none log}

No moderation yet.

{else} {for e: OpinionhubLogRow in log} {end}
WhenWhoDidTo
{opinionhub_lrow_moderator_name e} {opinionhub_lrow_action e}{if (str_len (opinionhub_lrow_note e)) > 0} ({opinionhub_lrow_note e}){end} {if (str_len (opinionhub_lrow_post_href e)) > 0}{opinionhub_lrow_post_label e}{else}{opinionhub_lrow_post_label e}{end}
{end}