mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Base template, which the children extend from
This commit is contained in:
36
templates/base.html
Normal file
36
templates/base.html
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>{% block title %}{% endblock %} - digimarks</title>
|
||||||
|
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap.min.css') }}" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>{% block pageheader %}Bookmarks{% endblock %}</h1>
|
||||||
|
</div>
|
||||||
|
{% block pagecontent %}
|
||||||
|
<ul class="thumbnails">
|
||||||
|
{% for bookmark in object_list %}
|
||||||
|
<li class="span6">
|
||||||
|
<div class="thumbnail">
|
||||||
|
<a href="{{ bookmark.url }}" title="{{ bookmark.url }}">
|
||||||
|
<img style="width:450px;" src="{{ bookmark.image }}" />
|
||||||
|
</a>
|
||||||
|
<p><a href="{{ bookmark.url }}">{{ bookmark.url|urlize(25) }}</a></p>
|
||||||
|
<p>{{ bookmark.created_date.strftime("%m/%d/%Y %H:%M") }}</p>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="pagination">
|
||||||
|
{% if page > 1 %}<a href="./?page={{ page - 1 }}">Previous</a>{% endif %}
|
||||||
|
{% if pagination.get_pages() > page %}<a href="./?page={{ page + 1 }}">Next</a>{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,15 +1,7 @@
|
|||||||
<!doctype html>
|
{% extends "base.html" %}
|
||||||
<html>
|
{% block title %}Bookmarks{% endblock %}
|
||||||
<head>
|
{% block pagetitle %}Bookmarks{% endblock %}
|
||||||
<title>digimarks bookmarks service</title>
|
{% block pagecontent %}
|
||||||
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap.min.css') }}" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="page-header">
|
|
||||||
<h1>Bookmarks</h1>
|
|
||||||
</div>
|
|
||||||
<ul class="thumbnails">
|
<ul class="thumbnails">
|
||||||
{% for bookmark in object_list %}
|
{% for bookmark in object_list %}
|
||||||
<li class="span6">
|
<li class="span6">
|
||||||
@@ -28,7 +20,4 @@
|
|||||||
{% if page > 1 %}<a href="./?page={{ page - 1 }}">Previous</a>{% endif %}
|
{% if page > 1 %}<a href="./?page={{ page - 1 }}">Previous</a>{% endif %}
|
||||||
{% if pagination.get_pages() > page %}<a href="./?page={{ page + 1 }}">Next</a>{% endif %}
|
{% if pagination.get_pages() > page %}<a href="./?page={{ page + 1 }}">Next</a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endblock %}
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
<!doctype html>
|
{% extends "base.html" %}
|
||||||
<html>
|
{% block title %}digimarks{% endblock %}
|
||||||
<head>
|
{% block pagetitle %}digimarks{% endblock %}
|
||||||
<title>digimarks bookmarks service</title>
|
{% block pagecontent %}
|
||||||
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap.min.css') }}" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>digimarks</h1>
|
|
||||||
<p>Please visit your personal url, or <a href="https://github.com/aquatix/digimarks">see the digimarks project page</a>.</p>
|
<p>Please visit your personal url, or <a href="https://github.com/aquatix/digimarks">see the digimarks project page</a>.</p>
|
||||||
</body>
|
{% endblock %}
|
||||||
</html>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user