forked from techwithtim/Chat-Web-App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a54685b
commit d0e0c9a
Showing
10 changed files
with
208 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ | |
float: left; | ||
color: #999; | ||
} | ||
|
||
</style> | ||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | ||
|
@@ -70,9 +71,10 @@ <h1 class="navbar-brand" href="#">CHAT APP</h1> | |
</button> | ||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup"> | ||
<div class="navbar-nav"> | ||
<a class="nav-item nav-link active" href="/home">Chat <span class="sr-only">(current)</span></a> | ||
<a class="nav-item nav-link" href="/login">Login</a> | ||
<a class="nav-item nav-link" href="/logout">Logout</a> | ||
<a class="nav-item nav-link" href="/home">Chat <span class="sr-only">(current)</span></a> | ||
<a class="nav-item nav-link" href="/history">History</a> | ||
<a class="nav-item nav-link" id="login" href="/login">Login</a> | ||
<a class="nav-item nav-link" id="logout" href="/logout">Logout</a> | ||
</div> | ||
</div> | ||
</nav> | ||
|
@@ -88,10 +90,8 @@ <h1 class="navbar-brand" href="#">CHAT APP</h1> | |
{% endwith %} | ||
{% endblock %} | ||
|
||
<div class="container"> | ||
{% block content %} | ||
{% endblock %} | ||
</div> | ||
{% block content %} | ||
{% endblock %} | ||
|
||
<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> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Message History{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<div class="row" style="padding-top:10px;" > | ||
<div class="col"><hr></div> | ||
<div class="col-auto"><p class="h3" align="center">View Message History</p></div> | ||
<div class="col"><hr></div> | ||
</div> | ||
<div class="container"> | ||
<div class="overflow-auto" class="msgs" id="messagesHistory" style="overflow-y: scroll; height:500px;"> | ||
{% for msg in history %} | ||
<div class="container darker"><b style="color:#000" class="left">{{msg["name"]}}</b><p> {{msg["message"]}}</p><span class="time-left">{{msg["time"]}}</span></div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endblock %} |
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
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
Oops, something went wrong.