Skip to content
Snippets Groups Projects
Commit def8a51c authored by Saravanan, Mukesh (PG/T - Comp Sci & Elec Eng)'s avatar Saravanan, Mukesh (PG/T - Comp Sci & Elec Eng)
Browse files

Replace user.html

parent 683b1fd3
Branches
No related tags found
1 merge request!32Final frontend
<a class="btn btn--link" href="{{ url_for('frontend.get_posts') }}">Home</a>
<br>
<br>
<head>
<style>
.home-btn {
background-color: #2196F3;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
margin-bottom: 20px;
</style>
</head>
{% extends "base.html" %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-md-4">
<a class="home-btn" href="{{ url_for('frontend.get_posts') }}">Home</a>
<br><br>
<img class="rounded-circle" width="100" src="images/users/{{ image }}">
<br>
<br>
{{name}}
<br>
{{email}}
<br>
{{role}}
<br>
<br>
{% block title %}POSTS OF THE USER{% endblock %}
<br><br>
<div class="h5">{{ name }}</div>
<div>{{ email }}</div>
<div>{{ role }}</div>
</div>
<div class="col-md-8">
<h2>POSTS OF THE USER</h2>
<div style="height: 1500px; overflow-y: scroll;">
{% for post in posts %}
<div class="h4 m-0"><a href="{{ url_for('frontend.display_post', post_id=post.id) }}">{{ post['title'] }}</a></div>
<div class="card">
<div class="card-body">
<h4 class="card-title"><a href="{{ url_for('frontend.display_post', post_id=post.id) }}">{{ post['title'] }}</a></h4>
<p class="card-text">{{ post.content | safe }}</p>
</div>
</div>
<br>
{% endfor %}
</div>
</div>
</div>
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment