aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/manage/recent.html
blob: fd47592514ad2f34d8b04e1981a154a9dde1fc66 (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
<?py include('templates/base_top.html') ?>
<?py include('templates/manage/menu.html') ?>
<center>
  <div class="replymode">Lista de posts recientes</div>
  <table class="managertable">
    <thead>
      <th>Archivo</th>
      <th>Mensaje</th>
      <th>IP</th>
      <th>Acciones</th>
    </thead>
    <tbody>
      <?py for post in posts: ?>
      <tr>
        <td>
          <?py if post['file']: ?><a href="/${post['dir']}/src/#{post['file']}" target="_blank"><img
              src="/${post['dir']}/mobile/${post['thumb']}" /></a>
          <?py #endif ?>
        </td>
        <td>
          <div class="recentPostHeader">
            ##{post['id']} <b>#{post['subject']}</b> en
            <i>#{post['board_name']}</i> hace
            <span name="timestamp" data-ts="#{post['timestamp']}">#{post['timestamp_formatted']}</span>
            por <b>#{post['name']}</b>
            <code>#{post['email']} #{post['tripcode']}</code>
          </div>
          <?py if post['dir'] == 'zonavip': ?>
          <div class="message vip">#{post['message']}</div>
          <?py else: ?>
          <div class="message">#{post['message']}</div>
          <?py #endif ?>
          <div class="actions">
            <?py if post['parentid'] != '0': ?>
            <a href="#{cgi_url}manage/mod/${post['dir']}?thread=#{post['parentid']}">Ver hilo completo</a>
            <?py #endif ?>
            <a href="#{cgi_url}manage/goto/?dir=${post['dir']}&type=#{post['board_type']}&thread=#{post['parentid']}">Ver
              hilo en BaI</a>
          </div>
        </td>
        <td>
          <a href="#{cgi_url}manage/ipshow?ip=#{post['ip']}">#{post['ip']}</a>
        </td>
        <td>
          <a title="Eliminar mensaje" href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}"><img
              src="/static/icons/comment_delete.png" /></a>
          <a title="Banear" href="#{cgi_url}manage/ban?ip=#{post['ip']}"><img src="/static/icons/user_delete.png" /></a>
          <a title="Eliminar y Banear" href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}?ban=true"><img
              src="/static/icons/cross.png" /></a>
        </td>
      </tr>
      <?py #endfor ?>
    </tbody>
  </table>
</center>
<hr />
<?py include('templates/base_bottom.html') ?>