From 32a7e939a52d07bdb0912c4d4dfed19cec118a39 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 26 Nov 2023 14:13:51 +0000 Subject: [PATCH] Rename article2.html to article.html --- templates/article.html | 76 +++++++++++++++++--------------------- templates/article2.html | 48 ------------------------ templates/article_old.html | 56 ++++++++++++++++++++++++++++ web_view.py | 2 +- 4 files changed, 91 insertions(+), 91 deletions(-) delete mode 100644 templates/article2.html create mode 100644 templates/article_old.html diff --git a/templates/article.html b/templates/article.html index ec3d3e4..55d05b0 100644 --- a/templates/article.html +++ b/templates/article.html @@ -1,56 +1,48 @@ {% extends "base.html" %} -{% block title %}{{ title }}{% endblock %} +{% block title %}Link '{{ title }}' in '{{ hit_title }}'{% endblock %} {% block style %} - + {% endblock %} {% block content %}
-

{{ self.title() }}

-
+

Link '{{ title }}' in '{{ hit_title }}'

+
-
+ +
Username: {{ g.user }}
+ +
view article
+ +
back to index
+ +
total: {{ total }}
+
with link: {{ with_link }}
+
ratio: {{ "{:.1%}".format(with_link / total) }}
+ {#
hit: {{ hit }}
#} +
replacement: {{ found.replacement }}
+
section: {{ found.section }}
+ + {{ diff | safe }} +
+
+ +
+ + skip +
+
+ +
    + {% for hit in hits %} + {% set url = url_for("article_page", url_title=url_title, title=hit.title) %} +
  1. {{ hit.title }} – {{ hit.snippet | safe }}
  2. + {% endfor %} +
- - - - - {% endblock %} diff --git a/templates/article2.html b/templates/article2.html deleted file mode 100644 index 55d05b0..0000000 --- a/templates/article2.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Link '{{ title }}' in '{{ hit_title }}'{% endblock %} - -{% block style %} - -{% endblock %} - -{% block content %} -
-

Link '{{ title }}' in '{{ hit_title }}'

-
- - -
- -
Username: {{ g.user }}
- -
view article
- -
back to index
- -
total: {{ total }}
-
with link: {{ with_link }}
-
ratio: {{ "{:.1%}".format(with_link / total) }}
- {#
hit: {{ hit }}
#} -
replacement: {{ found.replacement }}
-
section: {{ found.section }}
- - {{ diff | safe }} -
-
- -
- - skip -
-
- -
    - {% for hit in hits %} - {% set url = url_for("article_page", url_title=url_title, title=hit.title) %} -
  1. {{ hit.title }} – {{ hit.snippet | safe }}
  2. - {% endfor %} -
-
-{% endblock %} - diff --git a/templates/article_old.html b/templates/article_old.html new file mode 100644 index 0000000..ec3d3e4 --- /dev/null +++ b/templates/article_old.html @@ -0,0 +1,56 @@ +{% extends "base.html" %} + +{% block title %}{{ title }}{% endblock %} + +{% block style %} + +{% endblock %} + +{% block content %} +
+

{{ self.title() }}

+
+ + +
+
+
+ + + + + +{% endblock %} + diff --git a/web_view.py b/web_view.py index a8804cc..75926cd 100755 --- a/web_view.py +++ b/web_view.py @@ -298,7 +298,7 @@ def article_page(url_title: str) -> str | Response: return flask.render_template("all_done.html") return flask.render_template( - "article2.html", + "article.html", title=from_title, total=total, with_link=with_link,