diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-10-29 07:41:04 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-10-29 07:41:04 -0500 |
| commit | 43f9d78f8c00e13732b809519f0529ac293fd5ab (patch) | |
| tree | d9779a6d4b511dd27cfe80b3f8d0ad2e5ef5d7da /flaskr/templates/blog/index.html | |
| parent | de8b3d760a37fc54645a2588b062f85963146070 (diff) | |
| download | ustayml-43f9d78f8c00e13732b809519f0529ac293fd5ab.tar.gz ustayml-43f9d78f8c00e13732b809519f0529ac293fd5ab.tar.bz2 ustayml-43f9d78f8c00e13732b809519f0529ac293fd5ab.zip | |
Rename to ustayml (u-stayML)
Diffstat (limited to 'flaskr/templates/blog/index.html')
| -rw-r--r-- | flaskr/templates/blog/index.html | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/flaskr/templates/blog/index.html b/flaskr/templates/blog/index.html deleted file mode 100644 index 0fb2e80..0000000 --- a/flaskr/templates/blog/index.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends 'base.html' %} - - -{% block header %} - <h1>{% block title %}Posts{% endblock %}</h1> - {% if g.user %} - <a class="action" href="{{ url_for('blog.create') }}">New</a> - {% endif %} -{% endblock %} - -{% block content %} - {% for post in posts %} - <article class="post"> - <header> - <div> - {% if post['title'].__len__() > 80 %} - <h1><abbr title="{{ post['title'] }}">{{ post['title'][:80] }}</abbr></h1> - {% else %} - <h1>{{ post['title'] }}</h1> - {% endif %} - <div class="about">by {{ post['username'] }} on {{ post['created'].strftime('%Y-%m-%d') }}</div> - </div> - {% if g.user['id'] == post['author_id'] %} - <a class="action" href="{{ url_for('blog.update', id=post['id']) }}">Edit</a> - {% endif %} - </header> - <p class="body">{{ post['body'] }}</p> - </article> - {% if not loop.last %} - {# Separate posts with a line #} - <hr> - {% endif %} - {% endfor %} -{% endblock %}
\ No newline at end of file |
