portal: link to context-specific help where we can
This commit is contained in:
parent
2801eefd43
commit
5b9946c431
6 changed files with 76 additions and 31 deletions
|
@ -8,14 +8,20 @@ from app.models.onions import Eotk
|
|||
bp = Blueprint("eotk", __name__)
|
||||
|
||||
|
||||
_SECTION_TEMPLATE_VARS = {
|
||||
"section": "eotk",
|
||||
"help_url": "https://bypass.censorship.guide/user/eotk.html"
|
||||
}
|
||||
|
||||
|
||||
@bp.route("/list")
|
||||
def eotk_list() -> ResponseReturnValue:
|
||||
instances = Eotk.query.filter(Eotk.destroyed.is_(None)).order_by(desc(Eotk.added)).all()
|
||||
return render_template("list.html.j2",
|
||||
section="eotk",
|
||||
title="EOTK Instances",
|
||||
item="eotk",
|
||||
items=instances)
|
||||
items=instances,
|
||||
**_SECTION_TEMPLATE_VARS)
|
||||
|
||||
|
||||
@bp.route("/conf/<group_id>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue