Created
February 13, 2020 19:46
-
-
Save Porter97/40b75eeba90b22eb42866e70b2b0f8e6 to your computer and use it in GitHub Desktop.
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
{% extends "base.html" %} | |
{% block title %}Offbrand - {{ content.title }}{% endblock %} | |
{% block page_content %} | |
<div> | |
<div class="page-header"> | |
<h2 id="content-name">{{ content.title }}</h2> | |
<p id="content-description">{{ content.description }}</p> | |
<p><a id="content-link" href={{ content.url }}>{{ content.url }}</a></p> | |
{% if content.collection.author == current_user or current_user.is_administrator() %} | |
<a id="edit-content" class="btn btn-warning" href="{{ url_for('.edit_content', id=content.id) }}">Edit Content</a> | |
{% endif %} | |
<p id="content-info"><img class="img-rounded profile-thumbnail" src="{{ author.gravatar(size=35) }}"><a id="content-author" href="{{ url_for('main.user', username=author.username) }}">{{ author.username }}</a> • {{ moment(content.timestamp).fromNow() }}</p> | |
<p id="content-collection-info"><a id="collection-link" href="{{ url_for('main.get_collection', id=content.collection.id) }}">Posted in {{ content.collection.name }}</a></p> | |
</div> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment