Milestone 1.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from flask import Blueprint, current_app, render_template
|
||||
from flask import Blueprint, current_app, render_template, url_for
|
||||
|
||||
bp = Blueprint("home", __name__)
|
||||
|
||||
@@ -7,4 +7,4 @@ bp = Blueprint("home", __name__)
|
||||
def home():
|
||||
vault_path = current_app.config.get("KB_VAULT_PATH")
|
||||
has_vault = bool(vault_path)
|
||||
return render_template("home.html", vault_path=vault_path, has_vault=has_vault)
|
||||
return render_template("home.html", vault_path=vault_path, has_vault=has_vault, notes_url=url_for("notes.notes_index"))
|
Reference in New Issue
Block a user