aboutsummaryrefslogblamecommitdiff
path: root/cgi/templates/txt_archive.html
blob: 2526f443ce39aa310f4cf4b391e0a119c6dadbb4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

                












                                                                                              
                                                  





                                                                                                              






                                                                               
                                                           


                                                                                
                                                                                     
                
                                   
                                                                                   


                                           


                                                                             

                                                                                                                                    
                       
                                      
                                       
                                                                                                                     
                                         
                                                                                                                   
                 
                                                                                      












                                                                                                                      





                                                                  



                                                 
        
                              
                                          

                


                                                                             



                                                                                
                                                                                               

                       
                                                                                              

                                   
                                                                                    







                                                                                                            
       
<!DOCTYPE html>
<html lang="es">
<head>
  <title>#{threads[0]['subject']} - Archivo de #{board_name}@Bienvenido a Internet BBS</title>
  <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
<?py if threads: ?>
  <meta property="og:site_name" content="Bienvenido a Internet BBS" />
  <meta property="twitter:site" content="Bienvenido a Internet BBS" />
  <meta name="description" content="${preview}" />
  <meta property="og:title" content="${threads[0]['subject']} - ${board_name}" />
  <meta property="og:description" content="${preview}" />
  <meta property="twitter:title" content="${threads[0]['subject']} - ${board_name}" />
  <meta name="twitter:description" content="${preview}" />
<?py #endif ?>
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="shortcut icon" href="/favicon.ico" />
  <link rel="stylesheet" href="/static/css/txt/bbs.css" />
<?py if not force_css: ?>
  <link rel="stylesheet" id="css" href="#{static_url}css/txt/#{txt_styles[txt_styles_default].lower()}.css" />
<?py else: ?>
  <link rel="stylesheet" type="text/css" href="#{force_css}" />
<?py #endif ?>
  <script type="text/javascript" src="#{static_url}js/weabotxt.js"></script>
  <script type="text/javascript" src="#{static_url}js/aquiencitas.js"></script>
</head>
<body class="threadpage archived" data-brd="#{board}">
<?py if threads: ?>
<?py for thread in threads: ?>
<div id="thread_nav">
  <a href="/home.html" name="top">Bienvenido a Internet</a>
  <a href="#{boards_url}#{board}/">■Volver al BBS■</a>
  <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/">Hilo completo</a>
  <?py if thread['length'] > 100: ?>
    <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/-100">Primeros 100</a>
  <?py #endif ?>
  <?py if thread['length'] > 51: ?>
    <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/l50">Últimos 50</a>
  <?py #endif ?>
  <a href="#bottom">&#9660;Bajar&#9660;</a>
</div>
<hr />
<div class="stop red">■ Este hilo se encuentra guardado en el archivo</div>
<hr />
<div class="thread" data-length="#{thread['length']}">
  <h3>#{thread['subject']} <span>(${(str(thread['length'])+" respuestas") if thread['length'] > 1 else "Una respuesta"})</span></h3>
  <div class="replies">
  <?py for post in thread['posts']: ?>
    <?py if post['IS_DELETED'] == 1: ?>
    <div class="reply deleted" data-n="#{post['num']}"><h4>#{post['num']} : Mensaje eliminado por usuario.</h4></div>
    <?py elif post['IS_DELETED'] == 2: ?>
    <div class="reply deleted" data-n="#{post['num']}"><h4>#{post['num']} : Mensaje eliminado por staff.</h4></div>
    <?py else: ?>
    <div class="reply#{' first' if post['num'] == 1 else ''}" data-n="#{post['num']}">
        <h4>#{post['num']} :
        <?py if post['email']: ?>
          <?py if post['tripcode']: ?>
            <a href="mailto:#{post['email']}"><span class="name"><b>#{post['name']}</b> #{post['tripcode']}</span></a>
          <?py else: ?>
            <a href="mailto:#{post['email']}"><span class="name"><b>#{post['name']}</b></span></a>
          <?py #endif ?>
        <?py else: ?>
          <?py if post['tripcode']: ?>
            <span class="name"><b>#{post['name']}</b> #{post['tripcode']}</span>
          <?py else: ?>
            <span class="name"><b>#{post['name']}</b></span>
          <?py #endif ?>
        <?py #endif ?>
        : <span class="date">#{post['timestamp_formatted']}</span>
        <?py if post['posterid']: ?>
          <span class="hash">ID:#{post['posterid']}</span>
        <?py #endif ?>
        </h4>
        <div class="msg">#{post['message']}</div>
      </div>
    <?py #endif ?>
  <?py #endfor ?>
  </div>
  <?py if 'size' in thread: ?>
    <div id="size">#{thread['size']}</div>
  <?py #endif ?>
</div>
<hr />
<div class="stop red">■ Este hilo se encuentra guardado en el archivo</div>
<hr />
<form class="threadlinks">
  <a href="#{boards_url}#{board}/">■Volver al BBS■</a>
  <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/">Hilo completo</a>
  <?py if prevrange: ?>
    <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{prevrange}">Anteriores 100</a>
  <?py #endif ?>
  <?py if nextrange: ?>
    <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{nextrange}">Próximos 100</a>
  <?py #endif ?>
  <?py if thread['length'] > 51: ?>
     <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/l50">Últimos 50</a>
  <?py #endif ?>
  <a href="#top">&#9650;Subir&#9650;</a>
</form>
<?py #endfor ?>
<?py #endif ?>
<div class="end">weabot.py ver <?py include('templates/revision.html') ?> Bienvenido a Internet BBS/IB</div>
<a name="bottom"></a>
</body>
</html>