aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/mobile/txt_thread.html
blob: c9b58a81f93f77a427fb606cb012d7049ab8aaf2 (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
<?py include('templates/mobile/base_top.html') ?>
<body class="txt" data-brd="#{board}">
<a name="top"></a>
<?py for thread in threads: ?>
<div class="nav"><div><a href="//m.bienvenidoainternet.org">Home</a><a href="#{cgi_url}mobile/#{board}/">Volver</a><a href="#form">&#9660;</a></div></div>
<div id="nav2">
  <a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}">Ver hilo completo</a>
<?py if thread['length'] > 51: ?>
  <a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}/l25" rel="nofollow">Últimos 25</a>
<?py #endif ?>
<?py if thread['length'] > 50: ?>
  <a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}/-50" rel="nofollow">Primeros 50</a>
<?py #endif ?>
<?py r = range(thread['length'] / 50) ?>
<?py for i in r[:-1]: ?>
  <a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}/#{(i+1)*50+1}-#{(i+2)*50}" rel="nofollow">#{(i+1)*50+1}-#{(i+2)*50}</a>
<?py #endfor ?>
<?py if r: ?>
  <a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}/#{(r[-1]+1)*50+1}-#{(r[-1]+2)*50}" rel="nofollow">#{(r[-1]+1)*50+1}-</a>
<?py #endif ?>
</div>
<?py if thread['length'] > 1000: ?>
  <div class="stop red">■ El hilo superó los 1000 mensajes y ha sido cerrado.</div>
<?py elif thread['length'] > 950: ?>
  <div class="warn red">■ El hilo ha recibido más de 950 mensajes. Límite: 1000</div>
<?py elif thread['length'] > 900: ?>
  <div class="warn yellow">■ El hilo ha recibido más de 900 mensajes. Límite: 1000</div>
<?py #endif ?>
<div id="thread">
<h1>#{thread['subject']} <span>(#{thread['length']})</span></h1>
<?py for post in thread['posts']: ?>
<?py if post['IS_DELETED'] == '1': ?>
<div class="pst"><h3 class="del"><a href="#" class="num">#{str(post['num']).zfill(4)}</a> Eliminado por el usuario.</h3></div>
<?py elif post['IS_DELETED'] == '2': ?>
<div class="pst"><h3 class="del"><a href="#" class="num">#{str(post['num']).zfill(4)}</a> Eliminado por miembro del staff.</h3></div>
<?py else: ?>
<div id="p#{post['id']}" class="pst">
  <h3><a href="#" class="num">#{str(post['num']).zfill(4)}</a> #{post['name']} #{post['tripcode']}</h3>
  <?py if post['file']: ?><a href="/#{board}/src/#{post['file']}" target="_blank" class="thm"><img src="/#{board}/mobile/#{post['thumb']}" /><br />#{int(post['file_size'])//1024}KB #{post['file'].split(".")[1].upper()}</a><?py #endif ?>
  <div class="msg">#{post['message']}</div>
  <h4>#{post['timestamp_formatted']}</h4>
</div>
<?py #endif ?>
<?py #endfor ?>
<?py if thread['locked'] != '1': ?>
<a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}/#{thread['length']}-n" id="n">Ver nuevos posts</a><span id="n2"></span>
<?py #endif ?>
<div class="nav">
  <div><a href="//m.bienvenidoainternet.org">Home</a><a href="#{cgi_url}mobile/#{board}/">Volver</a><a href="#top">&#9650;</a></div>
  <?py if nextrange: ?>
  <div><a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}">Hilo completo</a><a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}/-50">Primeros 50</a><a href="#{cgi_url}mobileread/#{board}/#{thread['timestamp']}/l10">Últimos 25</a></div>
  <?py #endif ?>
</div>
<?py if thread['locked'] != '1': ?>
  <form name="postform" id="postform" action="/cgi/post" method="post" enctype="multipart/form-data">
  <input type="hidden" name="board" value="#{board}" /><input type="hidden" name="parent" value="#{thread['id']}" /><input type="hidden" name="mobile" value="true" /><input type="hidden" name="password" value="" />
  <div style="display:none"><input type="text" name="name" /><input type="text" name="email" /></div>
  <input class="fld" type="text" name="fielda" placeholder="Nombre (opcional)" />
  <input class="fld" type="text" name="fieldb" placeholder="E-mail (opcional)" />
  <textarea name="message" rows="6"></textarea>
<?py if allow_image_replies: ?>
  <div class="file"><input type="file" name="file" class="fld" />
  <?py if allow_spoilers: ?>
    <label class="fld"><input type="checkbox" name="spoil" /> Spoiler</label>
  <?py #endif ?></div>
<?py #endif ?>
  <input id="post" type="submit" value="Responder" />
  </form>
<?py #endif ?>
</div>
<a name="form"></a>
<?py #endfor ?>
</body>
</html>