added a navigation bar and modified the css file so that some links look like buttons.

This commit is contained in:
phear 2005-12-14 19:02:56 +00:00
parent da320b42c6
commit c4ee02e046
9 changed files with 59 additions and 131 deletions

View file

@ -7,5 +7,5 @@
<input name="password" type="text" class="text" size="20"></p>
<p><input type="submit" class="submit" value="login"></p>
</form>
<a href="/createaccount"> create account</a><br>
<div class="button">Don't have an account? <a href="/createaccount"> create one!</a><br></div>
<?cs include:"templates/footer.cs" ?>

View file

@ -1,7 +1,7 @@
<?cs include:"templates/header.cs" ?>
This is WebGo.<br>
<a href="/login">login</a><br>
<a href="/createaccount">create an account</a><br>
<div class="button"><a href="/login">login</a>
<a href="/createaccount">create an account</a><br></div>
<?cs include:"templates/footer.cs" ?>

11
templates/navbar.cs Normal file
View file

@ -0,0 +1,11 @@
<p>
<div class="navbar">
<div class="button">
<a href="/overview/">Game overview</a>
<?cs if:Settings.DisplayRefreshButton ?>
<a href="/playgame/?game=<?cs var:Data.GameName?>">Refresh page</a>
<?cs /if ?>
<a href="/logout/">Logout</a>
</div>
</div>
</p>

View file

@ -32,9 +32,11 @@
<h2>New Game:</h2>
<?cs if:Data.Counter ?>
You have <?cs var:Data.Counter ?> free game slots.<br>
<a href="/gamecreation"> Start a new game</a><br>
<div class="button"><a href="/gamecreation"> Start a new game</a></div><br>
<?cs else ?>
Sorry, all your game slots are in use.
<?cs /if ?>
<?cs include:"templates/navbar.cs" ?>
<?cs include:Settings.TemplateDir +"footer.cs" ?>

View file

@ -57,7 +57,9 @@
/if ?><?cs
/loop ?><?cs
/loop ?>
</div>
<?cs set:Settings.DisplayRefreshButton = 1 ?>
<?cs include:"templates/navbar.cs" ?>
<?cs include:"templates/footer.cs" ?>