diff options
-rw-r--r-- | source/templates/base.html | 15 | ||||
-rw-r--r-- | source/templates/plain_text.html | 15 |
2 files changed, 18 insertions, 12 deletions
diff --git a/source/templates/base.html b/source/templates/base.html new file mode 100644 index 00000000..54cfc524 --- /dev/null +++ b/source/templates/base.html @@ -0,0 +1,15 @@ +## base.html +<!DOCTYPE html> +<html> +<head> + <title>pyAggr3g470r - News aggregator</title> + <link rel="stylesheet" type="text/css" href="/css/style.css" /> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> +</head> +<body> + +${self.body()} + +</body> +</html>
\ No newline at end of file diff --git a/source/templates/plain_text.html b/source/templates/plain_text.html index 8bd606de..3076e5bb 100644 --- a/source/templates/plain_text.html +++ b/source/templates/plain_text.html @@ -1,12 +1,5 @@ -<!DOCTYPE html> -<html> -<head> - <title>pyAggr3g470r - News aggregator</title> - <link rel="stylesheet" type="text/css" href="/css/style.css" /> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> -</head> -<body> +## plain_text.html +<%inherit file="base.html"/> <div class="left inner"> <h1><i>${article_title}</i> from <a href="/articles/%s">${feed_title}</a></h1><br /> ${description} @@ -14,6 +7,4 @@ <p>This software is under GPLv3 license. You are welcome to copy, modify or redistribute the source code according to the <a href="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> license.</p> -</div> -</body> -</html> +</div>
\ No newline at end of file |