From f53689af2c5de933740251f03acde38ebe7fc669 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Mon, 21 Sep 2020 14:37:46 +0200 Subject: [PATCH] Add About/FAQ page --- web/app/__init__.py | 6 +- web/app/content/__init__.py | 5 + web/app/content/views.py | 8 + web/app/templates/content/about_faq.html.j2 | 259 ++++++++++++++++++++ web/app/templates/nopaque.html.j2 | 1 + 5 files changed, 276 insertions(+), 3 deletions(-) create mode 100644 web/app/content/__init__.py create mode 100644 web/app/content/views.py create mode 100644 web/app/templates/content/about_faq.html.j2 diff --git a/web/app/__init__.py b/web/app/__init__.py index 57d5d73c..6244a0e4 100644 --- a/web/app/__init__.py +++ b/web/app/__init__.py @@ -37,6 +37,9 @@ def create_app(config_name): from .auth import auth as auth_blueprint app.register_blueprint(auth_blueprint, url_prefix='/auth') + from .content import content as content_blueprint + app.register_blueprint(content_blueprint, url_prefix='/content') + from .corpora import corpora as corpora_blueprint app.register_blueprint(corpora_blueprint, url_prefix='/corpora') @@ -46,9 +49,6 @@ def create_app(config_name): from .main import main as main_blueprint app.register_blueprint(main_blueprint) - from .playground import playground as playground_blueprint - app.register_blueprint(playground_blueprint, url_prefix='/playground') - from .profile import profile as profile_blueprint app.register_blueprint(profile_blueprint, url_prefix='/profile') diff --git a/web/app/content/__init__.py b/web/app/content/__init__.py new file mode 100644 index 00000000..e15fadf1 --- /dev/null +++ b/web/app/content/__init__.py @@ -0,0 +1,5 @@ +from flask import Blueprint + + +content = Blueprint('content', __name__) +from . import views # noqa \ No newline at end of file diff --git a/web/app/content/views.py b/web/app/content/views.py new file mode 100644 index 00000000..f57d894e --- /dev/null +++ b/web/app/content/views.py @@ -0,0 +1,8 @@ +from flask import render_template +from . import content + + +@content.route('/about_faq') +def about_faq(): + return render_template('content/about_faq.html.j2', + title='About Nopaqe and FAQ') \ No newline at end of file diff --git a/web/app/templates/content/about_faq.html.j2 b/web/app/templates/content/about_faq.html.j2 new file mode 100644 index 00000000..a971e4c9 --- /dev/null +++ b/web/app/templates/content/about_faq.html.j2 @@ -0,0 +1,259 @@ +{% extends "nopaque.html.j2" %} + +{% block page_content %} + +
+
+
+ What is nopaque +

+ Our web application nopaque combines coordinated tools such as Optical + Character Recognition (OCR), Natrual Language Processing (NLP) and a + powerful Keyword In Context Search (KWIC) with the CQP query language. +

+
+

+ nopaque offers the possibility to use all tools individually or as a + workflow. All work steps are coordinated in such a way that individual + services can be used on top of each other. The platform supports + researchers in converting their files into formats that can be further + processed, automatically enriching them with information and then + analyzing them, so that nopaque maps a large part of the research + processes in the humanities. With this toolbox we address researchers + in the humanities from all disciplines and levels of knowledge. + The data generated during the processes can be downloaded after each + step in order to evaluate or further process them with other (external) tools. +

+
+
+
+ +
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/web/app/templates/nopaque.html.j2 b/web/app/templates/nopaque.html.j2 index a7a59058..4ad9924f 100644 --- a/web/app/templates/nopaque.html.j2 +++ b/web/app/templates/nopaque.html.j2 @@ -274,6 +274,7 @@ © 2020 Bielefeld University
+ info_outlineAbout/FAQ rate_reviewContact feedbackFeedback codeGitLab