Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5bae353a08
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 72 lines (62 sloc) 1.752 kb
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>SuperinstantComment!</title>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script src="/javascripts/superinstantcomment.js"></script>
</head>

<body id="index" onload="">

<h1 id="superinstantcomment">SuperInstantComment</h1>
Hola, eres <strong>{{ nickname}}</strong>. <a href="{{ logout_url }}">Logout</a>
<hr/>

<ul>
<li id="content">

<h2>Comments globales (teclas de función)</h2>
<ul>
{% for c in global_comments %}
<li>
F{{forloop.counter}} - <a href="#" class="click2play"><strong>{{ c.name }}</strong></a>
<audio id="global{{forloop.counter}}" autobuffer="true" src="/get?cid={{c.key}}"></audio>
</li>
{% endfor %}
</ul>

</li>
<li>
<h2>Tus propios comments (usa tecla numérica)</h2>
<ol>
{% for c in my_comments %}
<li>
<a href="#" class="click2play"><strong>{{ c.name }}</strong></a>
<audio id="audio{{forloop.counter}}" autobuffer="true" src="/get?cid={{c.key}}" type="audio/mp3">
</audio>
{% if is_admin %}
{% if c.is_global %}
<small>&radic;</small>
{% endif %}
{% endif %}

</li>
{% endfor %}
</ol>

<hr/>
<form action="/upload" method="post" enctype='multipart/form-data' >
<p>
<label for="name">Nombre (obligatorio)</label>
<input type="text" name="name">
</p>
<p>
<label for="audiofile">Archivo (mp3)</label>
<input type="file" name="audiofile">
</p>

{% if is_admin %}
<p>
<label for="is_global">Global</label>
<input type="checkbox" name="is_global">
</p>
{% endif %}

<p>
<input type="submit" value="P'arriba!! &rarr;">
</p>
</form>
</li> <!-- #content -->
</body>
Something went wrong with that request. Please try again.