diff options
author | Matt Arnold | 2025-04-11 01:33:39 -0400 |
---|---|---|
committer | Matt Arnold | 2025-04-11 01:33:39 -0400 |
commit | dc557895b1bd517bbdc2821a79f2be12624010d6 (patch) | |
tree | 39ad52fae6c5688720f36d608e001c994a76d96f /templates | |
parent | c51aebd896459f65c675d719347f60fc3aefa781 (diff) |
Faccets phase 1 changes, to include
Add a view for a faccets details
Diffstat (limited to 'templates')
-rw-r--r-- | templates/details.html | 22 | ||||
-rw-r--r-- | templates/faccet_list.html | 12 | ||||
-rw-r--r-- | templates/post.html | 10 |
3 files changed, 40 insertions, 4 deletions
diff --git a/templates/details.html b/templates/details.html new file mode 100644 index 0000000..3b16fe3 --- /dev/null +++ b/templates/details.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} + +{% block content %} +<div class="container"> + <h2>Details of {{faccet.name}}</h2> + <p> {{faccet.name}} is a part of <b> {{creator.username}} </b> and was born on {{faccet.birth|datetime('%m-%d-%Y')}} + </p> + <h3> Biographical or Reference Information</h3> + <p> {{faccet.bio}}</p> +</div> +<div class="container"> + <h3> Posts by {{faccet.name}}</h3> + + <ul> + {% for post in posts %} + <li><a href="{{ url_for('post', post_id=post.id) }}">{{ post.title }}</a> - {{ + post.created_at.strftime('%Y-%m-%d') }}</li> + {% endfor %} + </ul> + +</div> +{% endblock %} \ No newline at end of file diff --git a/templates/faccet_list.html b/templates/faccet_list.html new file mode 100644 index 0000000..226e684 --- /dev/null +++ b/templates/faccet_list.html @@ -0,0 +1,12 @@ +{% extends 'base.html' %} + +{% block content %} +<div class="container"> + <h2>Faccets of {{current_user.username}}</h2> + <ul> + {% for light in faccet %} + <li><a href="{{ url_for('details', light=light.name )}}">{{ light.name }}</a> </li> + {% endfor %} + </ul> +</div> +{% endblock %} \ No newline at end of file diff --git a/templates/post.html b/templates/post.html index 107b1a2..eef4c93 100644 --- a/templates/post.html +++ b/templates/post.html @@ -24,10 +24,12 @@ <a href="{{url_for('post', post_id=post.parent)}}"> Previous</a> <hr> {% endif %} -<h2>{{ post.title }}</h2> -<p>{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}</p> -<p> Authour: {{post.authour.name}}</p> -<div>{{ post.content|markdown|safe }}</div> +<div class="container"> + <h2>{{ post.title }}</h2> + <p>{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}</p> + <p> Authour: <a href="{{url_for('details', light=post.authour.name)}}"> {{post.authour.name}} </a></p> + <div>{{ post.content|markdown|safe }}</div> +</div> <div class="post-actions"> <a href="{{ url_for('create', reply=post.id)}}"> Reply</a> ~ <a href="{{ url_for('index') }}">Back to posts</a> |