diff --git a/templates/base.html b/templates/base.html index 50f1de3..5be4393 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,7 +7,7 @@ -
(lists, ordered)
+
(lists, ordered, ordered.all)

Searching through and calculating words of the following txt documents:

diff --git a/templates/ordered.all.html b/templates/ordered.all.html new file mode 100644 index 0000000..d83280c --- /dev/null +++ b/templates/ordered.all.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block title %}{% endblock %} + +{% block txtlist %} +{% endblock %} + +{% block results %} +

ordered.all

+
+ + {% for item in results %} + + {{item[1]}} + + {% endfor %} +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/ordered.html b/templates/ordered.html new file mode 100644 index 0000000..c360c0d --- /dev/null +++ b/templates/ordered.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} +{% block title %}{% endblock %} + +{% block txtlist %} +{% endblock %} + +{% block results %} +

lists

+
+ {% for manifesto, words in results.items()|sort %} + +

{{manifesto}}

+ {% for value, word in words %} + {{word}} + {% endfor %} +
+ {% endfor %} +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/results.html b/templates/results.html index 9b309c0..56afb70 100644 --- a/templates/results.html +++ b/templates/results.html @@ -2,7 +2,7 @@ {% block title %}{{query}}{% endblock %} {% block txtlist %} -
[*] The algorithm is asked to not return more than 3 sentences from the same manifesto. There are more sentences that match this search query!
+
[*] The algorithm is asked to not return more than 3 sentences from the same manifesto. There are more sentences that match this search query!
{% endblock %} {% block results %} diff --git a/templates/results_lists.html b/templates/results_lists.html new file mode 100644 index 0000000..8df9de8 --- /dev/null +++ b/templates/results_lists.html @@ -0,0 +1,27 @@ +{% extends "base.html" %} +{% block title %}{{query}}{% endblock %} + +{% block txtlist %} +
[*] The algorithm is asked to not return more than 3 sentences from the same manifesto. There are more sentences that match this search query!
+{% endblock %} + +{% block results %} +

The results for the query "{{query}}" are:

+
+ {% if results == {} %} +
That word is not used in any of the manifesto's.
+ {% else %} + {% for _, manifesto in results.items() %} + +

{{manifesto.name}}

+ + {% for i in range(manifesto.tf) %} + {{query}} + {% endfor %} + +
+ {% endfor %} +
+ {% endif %} +
+{% endblock %} \ No newline at end of file