aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/manage/reports.html
blob: f3ea5c5633c1e11046cc79e7c325def75d6fe809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?py include('templates/base_top.html') ?>
<?py include('templates/manage/menu.html') ?>
<?py from tenjin.helpers.html import * ?>
<center>
<div class="replymode">Denuncias</div>
<?py if message: ?>
<hr />
${message}
<hr />
<?py #endif ?>

<form name="boardForm" method="get" action="#{cgi_url}manage/reports/0">
<table>
  <tr>
    <td class="postblock">Board</td>
    <td>
      <select name="board">
        <option value="all">Todos los boards</option>
        <?py for board in boards: ?>
          <option value="#{board['dir']}"#{selected(board['checked'])}>#{board['dir']} - #{board['name']}</option>
        <?py #endfor ?>
      </select>
    </td>
    <td><input type="submit" value="Mostrar" /></td>
  </tr>
</table>
</form>

<form name="ignoreForm" method="post" action="#{cgi_url}manage/reports/#{currentpage}">
<?py if curboard: ?>
<input type="hidden" name="board" value="#{board}" />
<?py #endif ?>
<hr />
<table class="managertable">
<?py if reports: ?>
  <tr>
    <th></th>
    <th></th>
    <th>Fecha</th>
    <th>Post</th>
    <th>IP Post</th>
    <th>Raz&oacute;n</th>
    <th>IP Denuncia</th>
  </tr>
  <?py for report in reports: ?>
  <tr>
    <td><a href="#{cgi_url}manage/reports/#{currentpage}/ignore/#{report['id']}">X</a></td>
    <td><input type="checkbox" name="i#{report['id']}" id="i#{report['id']}" value="1" /><label for="i#{report['id']}"></label></td>
    <td class="date" data-unix="${report['timestamp']}">${report['timestamp_formatted']}</td>
    <td><a href="#{report['link']}">${report['link']}</a></td>
    <td><a href="#{cgi_url}manage/ipshow?ip=${report['ip']}">${report['ip']}</a></td>
    <td>${report['reason']}</td>
    <td><a href="#{cgi_url}manage/ipshow?ip=${report['repip']}">${report['repip']}</a></td>
  </tr>
  <?py #endfor ?>
  <tr>
    <td colspan="8" style="text-align:center;"><input name="ignore" type="submit" value="Ignorar seleccionados" /></td>
  </tr>
<?py else: ?>
  <tr>
    <td style='font-size:larger;font-style:italic;'>No hay denuncias.</td>
  </tr>
<?py #endif ?>
</table>
</form> 

</center>
<hr />
<?py include('templates/base_bottom.html') ?>