forked from ctb/cse491-serverz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Taylor Jones
committed
Mar 20, 2014
1 parent
666873f
commit 649fbe9
Showing
8 changed files
with
144 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
{% block title %} Web Server - Error Page {% endblock title %} | ||
|
||
{% block body %} | ||
|
||
<h1>Error Page</h1> | ||
Oopsies, this isn't the page you want. :( | ||
|
||
{% endblock %} | ||
{% endblock body %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
{% block content %} | ||
{% endblock %} | ||
</body> | ||
</html> | ||
|
||
<head> | ||
{% block head %} | ||
<title> {% block title %} {% endblock title %} </title> | ||
{% endblock head %} | ||
</head> | ||
|
||
<body> | ||
{% block body %} | ||
{% endblock body %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<h1>Image Page</h1> | ||
This page contains images.<br /> | ||
<ul> | ||
|
||
{% block title %} Web Server - Images Page {% endblock title %} | ||
|
||
{% block body %} | ||
|
||
<h1>Images Page</h1> | ||
|
||
<ul> | ||
{% for name in names %} | ||
<a href='/pics/{{ name }}'>{{ name }}<br> | ||
<a href='/pics/{{ name }}'>{{ name }}</a><br> | ||
{% endfor %} | ||
</ul> | ||
<a href="/">Home</a> | ||
{% endblock %} | ||
</ul> | ||
|
||
{% endblock body %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<h1>Hello, world!</h1> | ||
This is jonest31's web server.<br /> | ||
<h2>Home</h2> | ||
<ul> | ||
<li><a href="/content">Content</a></li> | ||
<li><a href="/file">File</a></li> | ||
<li><a href="/image">Image</a></li> | ||
<li><a href="/form">Form</a></li> | ||
</ul> | ||
{% endblock %} | ||
|
||
{% block body %} | ||
|
||
<h1>Hello World!</h1> | ||
This is jonest31's Web server. | ||
<p> | ||
<a href='/content'>Content</a><br> | ||
<a href='/files'>Files</a><br> | ||
<a href='/images'>Images</a><br> | ||
<a href='/images_thumb'>Thumbnail Images</a><br> | ||
<a href='/form'>Form</a> | ||
|
||
{% endblock body %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters