-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.html
103 lines (98 loc) · 4.37 KB
/
user.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src= "https://code.jquery.com/jquery-1.12.4.min.js"> </script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<!-- Favicons -->
<link rel="apple-touch-icon" href="/docs/4.4/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="/docs/4.4/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/docs/4.4/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="/docs/4.4/assets/img/favicons/manifest.json">
<link rel="mask-icon" href="/docs/4.4/assets/img/favicons/safari-pinned-tab.svg" color="#563d7c">
<link rel="icon" href="/docs/4.4/assets/img/favicons/favicon.ico">
<meta name="msapplication-config" content="/docs/4.4/assets/img/favicons/browserconfig.xml">
<meta name="theme-color" content="#563d7c">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.col-lg-4 {
padding-bottom: 10;
padding-top: 100;
text-align: center;
}
.rate {
color:white;
background-color: #007bff;
}
.no-friends {
padding-top: 100;
text-align: center;
}
</style>
</head>
<body>
<header>
<!-- NavBar -->
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">Finstagram</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="{{url_for('home') }}">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('getFriendRequests') }}">View Friend Requests</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('home') }}">Pending Tags</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('createFriendGroup') }}"> Create Group</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('post') }}">Post</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{url_for('logout') }}">Log Out</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container marketing">
<div class="col">
<div class="col-lg-4">
<svg class="bd-placeholder-img rounded-circle" width="140" height="140" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 140x140"><title>Placeholder</title><rect width="100%" height="100%" fill="#777"/><text x="50%" y="50%" fill="#777" dy=".3em">140x140</text></svg>
<h2>{{user.username}}</h2>
{% if user.followStatus == 1 %}
<form action = '/unfollow' method = 'POST'>
<button class="btn btn-secondary" type="submit" name="tounfollow" value = {{user.username}}> Unfollow </button>
</form>
{% elif user.followStatus == 0 %}
<button class="btn btn-secondary"> Pending </button>
{% else %}
<form action='/follow' method="POST">
<button class="btn btn-secondary" type="submit" name="tofollow" value = {{user.username}}> Follow </button>
</form>
{% endif %}
</div><!-- /.col-lg-4 -->
</form>
</div><!-- /.row -->
</div>
</body>
</html>