reorganizing project directories, part 1

This commit is contained in:
2015-05-08 20:37:22 -05:00
parent 827131eeda
commit 2ffdf26ec2
107 changed files with 0 additions and 0 deletions

View 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&amp;subset=latin' rel='stylesheet' type='text/css' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>dr.botzo &mdash; 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 %}

View 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&amp;subset=latin' rel='stylesheet' type='text/css' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>dr.botzo &mdash; 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 %}

View 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 %}

View 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 %}

View 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 }} &ndash; {{ 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 %}