diff --git a/var/www/templates/objects/item/show_item.html b/var/www/templates/objects/item/show_item.html index 26ae694f..979d6a00 100644 --- a/var/www/templates/objects/item/show_item.html +++ b/var/www/templates/objects/item/show_item.html @@ -34,6 +34,9 @@ -webkit-transform:rotate(180deg); transform:rotate(180deg); } + .text_wrap{ + white-space: pre-wrap; + } @@ -255,78 +258,78 @@ {% endif %} - {% if meta['duplicates'] %} -
-
-
-
-
-
- duplicates   -
{{meta['duplicates']|length}}
-
-
-
- -
-
-
- -
-
- - - - - - - - - - - - {% for duplicate_id in meta['duplicates'] %} - - - - - - - {% endfor %} - -
DateSimilarityItemDiff
{{meta['duplicates'][duplicate_id]['date']}} - - - {%for dict_algo in meta['duplicates'][duplicate_id]|sort(attribute='algo')%} - - - - - {%endfor%} - -
{{dict_algo['algo']}} -
-
- {{dict_algo['similarity']}}% -
-
-
-
- - {{duplicate_id}} - - - -
- -
-
- -
-
- {% endif %} +{# {% if meta['duplicates'] %}#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{#
#} +{# duplicates  #} +{#
{{meta['duplicates']|length}}
#} +{#
#} +{#
#} +{#
#} +{# #} +{#
#} +{#
#} +{#
#} +{##} +{#
#} +{#
#} +{##} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# {% for duplicate_id in meta['duplicates'] %}#} +{# #} +{# #} +{# #} +{# #} +{# #} +{# #} +{# {% endfor %}#} +{# #} +{#
DateSimilarityItemDiff
{{meta['duplicates'][duplicate_id]['date']}}#} +{# #} +{# #} +{# {%for dict_algo in meta['duplicates'][duplicate_id]|sort(attribute='algo')%}#} +{# #} +{# #} +{# #} +{# #} +{# {%endfor%}#} +{# #} +{#
{{dict_algo['algo']}}#} +{#
#} +{#
#} +{# {{dict_algo['similarity']}}%#} +{#
#} +{#
#} +{#
#} +{#
#} +{# #} +{# {{duplicate_id}}#} +{# #} +{# #} +{# #} +{#
#} +{##} +{#
#} +{#
#} +{##} +{#
#} +{#
#} +{# {% endif %}#} {# {% if l_64|length != 0 %}#} @@ -433,26 +436,11 @@
-
-
-
-
- -
-
- -
-
-
+ +
+ {% include 'objects/image/block_blur_img_slider.html' %}
- +
@@ -540,19 +528,25 @@  Download +
{% if not extracted %} -

{{ meta['content'] }}

+

{{ meta['content'] }}

{% else %} -

{{ meta['content'][:extracted[0][0]] }}{% for row in extracted %}{{ meta['content'][row[0]:row[1]] }}{% if loop.index + 1 > extracted|length %}{{ meta['content'][extracted[-1][1]:] }}{% else %}{{ meta['content'][row[1]:extracted[loop.index][0]] }}{% endif %}{% endfor %}

+

{{ meta['content'][:extracted[0][0]] }}{% for row in extracted %}{{ meta['content'][row[0]:row[1]] }}{% if loop.index + 1 > extracted|length %}{{ meta['content'][extracted[-1][1]:] }}{% else %}{{ meta['content'][row[1]:extracted[loop.index][0]] }}{% endif %}{% endfor %}

{% endif %}

+
+

+
@@ -561,89 +555,49 @@ - -{% if meta['crawler'] %} - -{% endif %} + $('#pills-html2text-tab').on('shown.bs.tab', function (e) { + if ($('#html2text-container').is(':empty')){ + $.get("{{ url_for('objects_item.html2text') }}?id={{ meta['id'] }}").done(function(data){ + $('#html2text-container').text(data); + }); + } + }); + // $('[data-toggle="popover"]').popover(); +