Skip to content

Commit 661840c

Browse files
committed
study
1 parent 5927cf4 commit 661840c

225 files changed

Lines changed: 23831 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
187 KB
Binary file not shown.
62.5 KB
Binary file not shown.
21.4 KB
Binary file not shown.
25 KB
Binary file not shown.
178 KB
Binary file not shown.
256 KB
Binary file not shown.
411 KB
Binary file not shown.
50 KB
Binary file not shown.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<title>Spring Mvc Web App</title>
7+
<script src="/static/js/jquery.js"></script>
8+
<link href="/static/css/bootstrap.css" rel="stylesheet">
9+
</head>
10+
<body style="font-size:16px">
11+
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm">
12+
<h5 class="my-0 mr-md-auto font-weight-normal"><a href="/">Home</a></h5>
13+
<nav class="my-2 mr-md-3">
14+
<a class="p-2 text-dark" target="_blank" href="https://www.liaoxuefeng.com/wiki/1252599548343744">Learn</a>
15+
</nav>
16+
{% if user==null %}
17+
<a href="/signin" class="btn btn-outline-primary">Sign In</a>
18+
{% else %}
19+
<span>Welcome, <a href="/profile">{{ user.name }}</a></span>
20+
&nbsp;&nbsp;&nbsp;
21+
<a href="/signout" class="btn btn-outline-primary">Sign Out</a>
22+
{% endif %}
23+
</div>
24+
25+
<div class="container" style="max-width: 960px">
26+
<div class="row">
27+
<div class="col-12 col-md">
28+
{% block main %}
29+
{% endblock %}
30+
</div>
31+
</div>
32+
33+
<footer class="pt-4 my-md-5 pt-md-5 border-top">
34+
<div class="row">
35+
<div class="col-12 col-md">
36+
<h5>Copyright&copy;2020</h5>
37+
<p>
38+
<a target="_blank" href="https://www.liaoxuefeng.com/">Learn</a> -
39+
<a target="_blank" href="https://www.liaoxuefeng.com/">Download</a> -
40+
<a target="_blank" href="https://github.com/michaelliao">Github</a>
41+
</p>
42+
</div>
43+
</div>
44+
</footer>
45+
</div>
46+
</body>
47+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "_base.html" %}
2+
3+
{% block main %}
4+
5+
{% if user == null %}
6+
<h3>Welcome!</h3>
7+
<p><a href="/signin">Sign In</a> or <a href="/register">Register</a>
8+
{% else %}
9+
<h3>Welcome {{ user.name }}!</h3>
10+
{% endif %}
11+
12+
{% endblock %}

0 commit comments

Comments
 (0)