forked from miguelgrinberg/microblog
-
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.
Chapter 21: User Notifications (v0.21)
- Loading branch information
1 parent
4694d22
commit bfea690
Showing
11 changed files
with
307 additions
and
28 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block app_content %} | ||
<h1>{{ _('Messages') }}</h1> | ||
{% for post in messages %} | ||
{% include '_post.html' %} | ||
{% endfor %} | ||
<nav aria-label="..."> | ||
<ul class="pager"> | ||
<li class="previous{% if not prev_url %} disabled{% endif %}"> | ||
<a href="{{ prev_url or '#' }}"> | ||
<span aria-hidden="true">←</span> {{ _('Newer messages') }} | ||
</a> | ||
</li> | ||
<li class="next{% if not next_url %} disabled{% endif %}"> | ||
<a href="{{ next_url or '#' }}"> | ||
{{ _('Older messages') }} <span aria-hidden="true">→</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
{% endblock %} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends "base.html" %} | ||
{% import 'bootstrap/wtf.html' as wtf %} | ||
|
||
{% block app_content %} | ||
<h1>{{ _('Send Message to %(recipient)s', recipient=recipient) }}</h1> | ||
<div class="row"> | ||
<div class="col-md-4"> | ||
{{ wtf.quick_form(form) }} | ||
</div> | ||
</div> | ||
{% endblock %} |
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
Oops, something went wrong.