crosslink user reports and moderator log

This commit is contained in:
Thibault Duplessis 2013-07-27 23:02:32 +02:00
parent fd6c0304ef
commit e1b92fd91a
2 changed files with 14 additions and 4 deletions

View file

@ -2,7 +2,11 @@
@title = @{ "Mod logs" }
@base.layout(title = title) {
@goodies = {
<a href="@routes.Report.list">User reports</a>
}
@base.layout(title = title, goodies = goodies.some) {
<style type="text/css">
#modlog_table td {
@ -15,8 +19,7 @@
<table class="datatable"><tbody>
@logs.map { log =>
<tr>
<td>@timeago(log.date)</td>
<td>@userIdLink(log.mod.some)</td>
<td>@userIdLink(log.mod.some)@timeago(log.date)</td>
<td>@log.showAction.capitalize @log.user.map { u =>
@userIdLink(u.some)
}</td>

View file

@ -2,7 +2,14 @@
@title = @{ "User reports" }
@base.layout(title = title, moreCss = cssTag("report.css")) {
@goodies = {
<a href="@routes.Mod.log">Moderator log</a>
}
@base.layout(
title = title,
moreCss = cssTag("report.css"),
goodies = goodies.some) {
<div id="report" class="content_box no_padding">
<h1>@title (@reports.count(_.unprocessed) new)</h1>