-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
71 lines (55 loc) · 1.35 KB
/
main.html
File metadata and controls
71 lines (55 loc) · 1.35 KB
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
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Twitter login</title>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
</style>
</head>
<body bgcolor="#E6E6FA">
{% if user%}
<ul>
<li><a href="/profile">Profile</a></li>
<li><a href="/edit">EditInfo</a></li>
<li><a href="/search">Search</a></li>
<li><a href="/searchcontent">ContentSearch</a></li>
<li><a href="{{ url }}">Logout</a></li>
</ul>
<center><form method="post" action="/">
<p><input type="text" name="value" value="" maxlength="280"><input type="submit" name="button" value="Post" /></p>
</form></center>
<p><font size="5">Tweets</font></p>
<hr>
{% for x in print_tweet|sort(attribute ='tweettime' , reverse=True) %}
{% if loop.index <= 50 %}
<font size="4" color="#1c87c9">{{ x.username }}</font>
<br/>
{{ x.tweet }}
<hr>
{% endif %}
{% endfor %}
{% else %}
<center><font size="5"><p>Hello guest welcome to the application</p></font></center>
<center><font size="3"> <p>you can {{ url_string }} <a href='{{ url }}'>here</a></p></font></center>
{% endif %}
</body>
</html>