浏览代码

polish

https
jakobsn 6 年前
父节点
当前提交
5977e82edf
共有 3 个文件被更改,包括 7 次插入1 次删除
  1. +3
    -1
      src/app/static/stylesheet.css
  2. +1
    -0
      src/app/templates/register.html
  3. +3
    -0
      src/app/views/app.py

+ 3
- 1
src/app/static/stylesheet.css 查看文件

@@ -1,8 +1,9 @@
body { body {
background-color: lightblue; background-color: lightblue;
display: flex; /* or inline-flex */
display: inline-flex; /* or inline-flex */
flex-direction: column; flex-direction: column;
margin: 0; margin: 0;
width: 100%;
} }


.title { .title {
@@ -44,6 +45,7 @@ img {
} }


nav { nav {
display: ;
margin-bottom: 10px; margin-bottom: 10px;
} }




+ 1
- 0
src/app/templates/register.html 查看文件

@@ -13,6 +13,7 @@ $def with (nav, register_form, message)
$:nav $:nav


<h2>Register user!</h2> <h2>Register user!</h2>
<form method="POST"> <form method="POST">
$:register_form.render() $:register_form.render()
</form> </form>


+ 3
- 0
src/app/views/app.py 查看文件

@@ -37,6 +37,9 @@ if web.config.get('_session') is None:
else: else:
session = web.config._session session = web.config._session


# Set session timeout
web.config.session_parameters['timeout'] = 12345678910

# Add session to global variables # Add session to global variables
render._add_global(session, 'session') render._add_global(session, 'session')




正在加载...
取消
保存