aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/txt_archive.html
blob: 8d0f49d63f4611f0f78998d893bdf193e45b6667 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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="#{static_url}img/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 ?>
<?py if board in ['zonavip', 'world']: ?>
  <link rel="stylesheet" href="/static/css/txt/sjis.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="/" name="top" target="_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" rel="nofollow">Primeros 100</a>
  <?py #endif ?>
  <?py if thread['length'] > 51: ?>
    <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/l50" rel="nofollow">Ú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>
  <?py for post in thread['posts']: ?>
    <?py if post['IS_DELETED'] == '1': ?>
      <h4 class="deleted">#{post['num']} : Mensaje eliminado por el usuario.</h4>
    <?py elif post['IS_DELETED'] == '2': ?>
      <h4 class="deleted">#{post['num']} : Mensaje eliminado por miembro del staff.</h4>
    <?py else: ?>
    <?py if post['num'] == 1: ?>
      <div class="reply first" data-n="#{post['num']}">
    <?py else: ?>
      <div class="reply" data-n="#{post['num']}">
    <?py #endif ?>
        <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></h4>
        <div class="msg">#{post['message']}</div>
      </div>
    <?py #endif ?>
  <?py #endfor ?>
  <?py if 'size' in thread: ?>
    <div class="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}" rel="nofollow">Anteriores 100</a>
  <?py #endif ?>
  <?py if nextrange: ?>
    <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/#{nextrange}" rel="nofollow">Próximos 100</a>
  <?py #endif ?>
  <?py if thread['length'] > 51: ?>
     <a href="#{boards_url}#{board}/read/#{thread['timestamp']}/l50" rel="nofollow">Ú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>