updated dockerfile, spacing adjustments
This commit is contained in:
parent
b757ceff57
commit
6c7095ec5a
14 changed files with 36 additions and 16 deletions
|
@ -15,5 +15,3 @@ class RegistrationForm(Form):
|
|||
class LoginForm(Form):
|
||||
email = StringField('Email', [validators.DataRequired()])
|
||||
password = PasswordField('Password', [validators.DataRequired()])
|
||||
|
||||
|
||||
|
|
|
@ -109,4 +109,4 @@ class User(Model, UserMixin):
|
|||
def logout(cls):
|
||||
logout_user()
|
||||
|
||||
login_manager.anonymous_user = AnonUser
|
||||
login_manager.anonymous_user = AnonUser
|
||||
|
|
|
@ -69,4 +69,4 @@ def settings():
|
|||
@blueprint.route("/logout")
|
||||
def logout():
|
||||
User.logout()
|
||||
return redirect("/")
|
||||
return redirect("/")
|
||||
|
|
|
@ -33,4 +33,4 @@ def rebuild_index():
|
|||
username=page['info']['author'],
|
||||
updated_on=entry['mtime'],
|
||||
created_on=entry['ctime'])
|
||||
search.index_wiki(name, body)
|
||||
search.index_wiki(name, body)
|
||||
|
|
|
@ -20,4 +20,4 @@ def wiki_write_page(name, content, message=None, username=None, email=None, **kw
|
|||
|
||||
@Wiki.after('rename_page')
|
||||
def wiki_rename_page(*args, **kwargs):
|
||||
pass
|
||||
pass
|
||||
|
|
|
@ -7,4 +7,4 @@ blueprint = Blueprint('search', __name__)
|
|||
@blueprint.route('/_search')
|
||||
def search():
|
||||
results = search_engine.wiki(request.args.get('q'))
|
||||
return render_template('search/search.html', results=results)
|
||||
return render_template('search/search.html', results=results)
|
||||
|
|
|
@ -3,4 +3,4 @@ from .models import Wiki
|
|||
|
||||
|
||||
def before_request():
|
||||
g.current_wiki = Wiki(current_app.config['WIKI_PATH'])
|
||||
g.current_wiki = Wiki(current_app.config['WIKI_PATH'])
|
||||
|
|
|
@ -163,4 +163,4 @@ def page(name):
|
|||
if data:
|
||||
return render_template('wiki/page.html', name=cname, page=data, partials=data.get('partials'))
|
||||
else:
|
||||
return redirect(url_for('wiki.create', name=cname))
|
||||
return redirect(url_for('wiki.create', name=cname))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue