aboutsummaryrefslogblamecommitdiff
path: root/cgi/templates/manage/recent.html
blob: d6040e5da20616d72432db4f9f6c8a36e3c40fc0 (plain) (tree)
1
2
3
4
5
6
7





                                                       
                      






                                









                                                                                                                                 
                        
                                                                        





                                                                                                            
                                           









                                                                                                                               






                                                                                                  


                                                                                     
                      
           





                     
                                             
<?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 style="text-align:center;">
        <?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 class="recentpost">
        <div class="recentinfo">
          #{post['id']}
          <?py if post['subject']: ?>
            : <b><i>#{post['subject']}</i></b>
          <?py #endif ?>
          : <b>#{post['name']}</b>#{post['tripcode']} [#{post['email']}]
          : Hace <span name="timestamp" data-ts="#{post['timestamp']}">#{post['timestamp_formatted']}</span>
          @ #{post['board_name']}
        </div>
        <div class="recentmsg">#{post['message']}</div>
        <div class="actions">
          <a href="#{cgi_url}manage/mod/${post['dir']}/#{post['parentid']}">Ver hilo completo</a>
        <?py if post['board_type'] == 1: ?>
          <a href="#{cgi_url}manage/goto/${post['dir']}/#{post['parentid']}">Ver hilo en BaI</a>
        <?py else: ?>
          <a href="/${post['dir']}/res/#{post['parentid'] if post['parentid'] != '0' else post['id']}.html">Ver hilo en BaI</a>
        <?py #endif ?>
        </div>
      </td>
      <td>
        <a href="#{cgi_url}manage/ipshow?ip=#{post['ip']}">#{post['ip']}</a>
      </td>
      <td style="white-space:nowrap;">
        <?py if post['IS_DELETED'] == 1: ?>
        <small>Eliminado por usuario</small><br />
        <a href="#{cgi_url}manage/recyclebin/0/restore/#{post['dir']}/#{post['id']}">Recuperar</a>
        <?py elif post['IS_DELETED'] == 2: ?>
        <small>Eliminado por staff</small><br />
        <a href="#{cgi_url}manage/recyclebin/0/restore/#{post['dir']}/#{post['id']}">Recuperar</a>
        <?py else: ?>
        <a href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}">Eliminar</a>
        <a href="#{cgi_url}manage/delete/#{post['dir']}/#{post['id']}?ban=true">&</a>
        <a href="#{cgi_url}manage/ban?ip=#{post['ip']}">Ban</a>
        <?py #endif ?>
      </td>
      </tr>
      <?py #endfor ?>
    </tbody>
  </table>
</center>
<hr />
<?py include('templates/base_bottom.html') ?>