actually i need to call this ircbot
so i don't collide with the django dr_botzo
This commit is contained in:
13
ircbot/old-web/templates/index.html
Normal file
13
ircbot/old-web/templates/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>dr.botzo</title>
|
||||
</head>
|
||||
<body>
|
||||
<ul>
|
||||
<li><a href="/dr.botzo/karma/">Karma</a></li>
|
||||
<li><a href="/dr.botzo/storycraft/">Storycraft</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
9
ircbot/old-web/templates/karma/givers.html
Executable file
9
ircbot/old-web/templates/karma/givers.html
Executable file
@@ -0,0 +1,9 @@
|
||||
{% autoescape on %}
|
||||
<ul>
|
||||
{% for user in users %}
|
||||
<li>
|
||||
{{ user.who }} - {{ user.pos }} positive, {{ user.neg }} negative, {{ user.total }} total
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endautoescape %}
|
||||
6
ircbot/old-web/templates/karma/index.html
Executable file
6
ircbot/old-web/templates/karma/index.html
Executable file
@@ -0,0 +1,6 @@
|
||||
{% autoescape on %}
|
||||
<ul>
|
||||
<li><a href="/karma/stats/">Karma Stats</a> ({{ value_count }} karma entries)</li>
|
||||
<li><a href="/karma/givers/">Karma Giver Stats</a> ({{ user_count }} karma givers)</li>
|
||||
</ul>
|
||||
{% endautoescape %}
|
||||
31
ircbot/old-web/templates/karma/key_detail.html
Normal file
31
ircbot/old-web/templates/karma/key_detail.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% autoescape on %}
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>dr.botzo — Karma — {{ key }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{% if messages %}
|
||||
<div id="messages">
|
||||
<ul class="messagelist">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="container">
|
||||
<ul>
|
||||
{% for delta in deltas %}
|
||||
<li>{{ delta }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!--
|
||||
vi:tabstop=2:expandtab:autoindent
|
||||
-->
|
||||
{% endautoescape %}
|
||||
9
ircbot/old-web/templates/karma/stats.html
Executable file
9
ircbot/old-web/templates/karma/stats.html
Executable file
@@ -0,0 +1,9 @@
|
||||
{% autoescape on %}
|
||||
<ol>
|
||||
{% for value in values %}
|
||||
<li>
|
||||
<a href="{% url key_detail value.key %}">{{ value.key }}</a> ({{ value.value }})
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
{% endautoescape %}
|
||||
49
ircbot/old-web/templates/storycraft/game_index.html
Normal file
49
ircbot/old-web/templates/storycraft/game_index.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{% autoescape on %}
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<link href='http://fonts.googleapis.com/css?family=Cardo&subset=latin' rel='stylesheet' type='text/css' />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>dr.botzo — Storycraft #{{ game.id }}</title>
|
||||
<link rel="stylesheet" href="/static/storycraft/page.css" type="text/css" />
|
||||
<!-- Required CSS -->
|
||||
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/2.8.2r1/build/progressbar/assets/skins/sam/progressbar.css">
|
||||
|
||||
<!-- Dependency source file -->
|
||||
<script src = "http://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js" ></script>
|
||||
<script src = "http://yui.yahooapis.com/2.8.2r1/build/element/element-min.js" ></script>
|
||||
<!-- Optional dependency source file -->
|
||||
<script src="http://yui.yahooapis.com/2.8.2r1/build/animation/animation-min.js" type="text/javascript"></script>
|
||||
|
||||
<!-- ProgressBar source file -->
|
||||
<script src = "http://yui.yahooapis.com/2.8.2r1/build/progressbar/progressbar-min.js" ></script>
|
||||
</head>
|
||||
<body>
|
||||
{% if messages %}
|
||||
<div id="messages">
|
||||
<ul class="messagelist">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="container">
|
||||
<div id="mainpage">
|
||||
<div id="title">
|
||||
<h1>Storycraft #{{ game.id }}</h1>
|
||||
</div>
|
||||
<div id="gamesummary">
|
||||
{% include 'storycraft/tmpl_game_summary.html' %}
|
||||
</div>
|
||||
{% include 'storycraft/tmpl_game_story.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{% include 'storycraft/tmpl_footer.html' %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!--
|
||||
vi:tabstop=2:expandtab:autoindent
|
||||
-->
|
||||
{% endautoescape %}
|
||||
52
ircbot/old-web/templates/storycraft/index.html
Normal file
52
ircbot/old-web/templates/storycraft/index.html
Normal file
@@ -0,0 +1,52 @@
|
||||
{% autoescape on %}
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<link href='http://fonts.googleapis.com/css?family=Cardo&subset=latin' rel='stylesheet' type='text/css' />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title>dr.botzo — Storycraft</title>
|
||||
<link rel="stylesheet" href="/static/storycraft/page.css" type="text/css" />
|
||||
<!-- Required CSS -->
|
||||
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/2.8.2r1/build/progressbar/assets/skins/sam/progressbar.css">
|
||||
|
||||
<!-- Dependency source file -->
|
||||
<script src = "http://yui.yahooapis.com/2.8.2r1/build/yahoo-dom-event/yahoo-dom-event.js" ></script>
|
||||
<script src = "http://yui.yahooapis.com/2.8.2r1/build/element/element-min.js" ></script>
|
||||
<!-- Optional dependency source file -->
|
||||
<script src="http://yui.yahooapis.com/2.8.2r1/build/animation/animation-min.js" type="text/javascript"></script>
|
||||
|
||||
<!-- ProgressBar source file -->
|
||||
<script src = "http://yui.yahooapis.com/2.8.2r1/build/progressbar/progressbar-min.js" ></script>
|
||||
</head>
|
||||
<body>
|
||||
{% if messages %}
|
||||
<div id="messages">
|
||||
<ul class="messagelist">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div id="container">
|
||||
<div id="mainpage">
|
||||
<div id="title">
|
||||
<h1>Storycraft</h1>
|
||||
</div>
|
||||
<div id="gamelist">
|
||||
{% for game in games %}
|
||||
{% include 'storycraft/tmpl_game_summary.html' %}
|
||||
{% empty %}
|
||||
<p>No storycraft games. :(</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% include 'storycraft/tmpl_footer.html' %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!--
|
||||
vi:tabstop=2:expandtab:autoindent
|
||||
-->
|
||||
{% endautoescape %}
|
||||
9
ircbot/old-web/templates/storycraft/tmpl_footer.html
Normal file
9
ircbot/old-web/templates/storycraft/tmpl_footer.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% autoescape on %}
|
||||
<div id="footer">
|
||||
<p>Storycraft is a game of collaborative storytelling, intentionally leading to much insanity and nonsense. All stories were made to be funny but may not even be coherent. Void where prohibited.</p>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
vi:tabstop=2:expandtab:autoindent
|
||||
-->
|
||||
{% endautoescape %}
|
||||
15
ircbot/old-web/templates/storycraft/tmpl_game_story.html
Normal file
15
ircbot/old-web/templates/storycraft/tmpl_game_story.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% autoescape on %}
|
||||
<div class="storyblock">
|
||||
{% if game.is_completed %}
|
||||
<div class="gamestory">{{ prettystory|safe }}</div>
|
||||
{% else %}
|
||||
<div class="gamenostory">
|
||||
<p>This game has not been completed yet. Come back later (or get to work).</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!--
|
||||
vi:tabstop=2:expandtab:autoindent
|
||||
-->
|
||||
{% endautoescape %}
|
||||
28
ircbot/old-web/templates/storycraft/tmpl_game_summary.html
Normal file
28
ircbot/old-web/templates/storycraft/tmpl_game_summary.html
Normal file
@@ -0,0 +1,28 @@
|
||||
{% autoescape on %}
|
||||
<div class="gameitem">
|
||||
<h3 class="hidden">Game Info</h3>
|
||||
<ul class="gameinfo">
|
||||
<li class="gameid"><span><a href="{% url game_index game.id %}">{{ game.id }}: {{ game.start_time }} – {{ game.end_time }}</a></span></li>
|
||||
<li class="gamestatus"><span>{{ game.status }}</span></li>
|
||||
<li class="gamecode"><span>o:{{ game.round_mode }}[{{ game.game_length }}],{{ game.line_length }},{{ game.random_method }},{{ game.lines_per_turn }}</span></li>
|
||||
</ul>
|
||||
{% if players %}
|
||||
<h3 class="hidden">Player List</h3>
|
||||
<ul class="gameplayers">
|
||||
{% for player in players %}
|
||||
<li>{{ player.nick }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if lines %}
|
||||
<div class="progressblock" id="progressblock{{game.id}}">
|
||||
<div class="progressbar" id="progressbar{{game.id}}"></div>
|
||||
</div>
|
||||
<script>var pb = new YAHOO.widget.ProgressBar().render('progressbar{{game.id}}'); var space = YAHOO.util.Dom.getRegion('progressblock{{game.id}}'); pb.set('width', space.width-35); pb.set('minValue', 0); pb.set('maxValue', {{ game.game_length }}); pb.set('value', 0); if (0) { pb.set('anim', true); var anim = pb.get('anim'); anim.duration = 2; } pb.set('value', {{ lines|length }}-1);</script>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!--
|
||||
vi:tabstop=2:expandtab:autoindent
|
||||
-->
|
||||
{% endautoescape %}
|
||||
Reference in New Issue
Block a user