From 7e7e679ab685bcec1912f6df7b2e489b05c8fbcf Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Thu, 27 Oct 2016 15:53:45 +0200 Subject: [PATCH] Added dataTable for duplicate in show saved paste --- var/www/templates/show_saved_paste.html | 133 ++++++++++++------------ 1 file changed, 65 insertions(+), 68 deletions(-) diff --git a/var/www/templates/show_saved_paste.html b/var/www/templates/show_saved_paste.html index c1393aa6..b164bcb1 100644 --- a/var/www/templates/show_saved_paste.html +++ b/var/www/templates/show_saved_paste.html @@ -19,79 +19,76 @@ -
+
+
+
+

Paste: {{ request.args.get('paste') }}

+ +
+
+
-
-

Paste: {{ request.args.get('paste') }}

- +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
DateSourceEncodingLanguageSize (Kb)MimeNumber of linesMax line length
{{ date }}{{ source }}{{ encoding }}{{ language }}{{ size }}{{ mime }}{{ lineinfo.0 }}{{ lineinfo.1 }}
- -
- - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
DateSourceEncodingLanguageSize (Kb)MimeNumber of linesMax line length
{{ date }}{{ source }}{{ encoding }}{{ language }}{{ size }}{{ mime }}{{ lineinfo.0 }}{{ lineinfo.1 }}
-
-
- {% if duplicate_list|length == 0 %} -

No Duplicate

- {% else %} -

Duplicate list:

- - {% set i = 0 %} - - - - - - - - - {% for dup_path in duplicate_list %} +
+ {% if duplicate_list|length == 0 %} +

No Duplicate

+ {% else %} +

Duplicate list:

+
Hash typePaste infoPath
+ {% set i = 0 %} + - - - + + + - {% set i = i + 1 %} - {% endfor %} - -
{{ hashtype_list[i] }}Similarity: {{ simil_list[i] }}%{{ dup_path }}Hash typePaste infoPath
- {% endif %} -

Content:

-

{{ content }}

+ + + {% for dup_path in duplicate_list %} + + {{ hashtype_list[i] }} + Similarity: {{ simil_list[i] }}% + {{ dup_path }} + + {% set i = i + 1 %} + {% endfor %} + + + {% endif %} +

Content:

+

{{ content }}

+
+
+
-
- -