diff --git a/bin/packages/Paste.py b/bin/packages/Paste.py index 48bd710b..0ab0286c 100755 --- a/bin/packages/Paste.py +++ b/bin/packages/Paste.py @@ -245,6 +245,12 @@ class Paste(object): def get_p_date(self): return self.p_date + def get_item_source(self): + return self.p_source + + def get_item_size(self): + return self.p_size + def _get_p_size(self): return self.p_size @@ -298,6 +304,10 @@ class Paste(object): else: return '[]' + def get_nb_duplicate(self): + # # TODO: FIXME use relative path + return self.store_metadata.scard('dup:'+self.p_path) + self.store_metadata.scard('dup:'+self.p_rel_path) + def _get_p_tags(self): self.p_tags = self.store_metadata.smembers('tag:'+path, tag) if self.self.p_tags is not None: diff --git a/var/www/modules/Tags/templates/Tags.html b/var/www/modules/Tags/templates/Tags.html index 2efc3439..ea6d170b 100644 --- a/var/www/modules/Tags/templates/Tags.html +++ b/var/www/modules/Tags/templates/Tags.html @@ -22,6 +22,20 @@ + +
@@ -119,7 +133,7 @@-
Date | +Source | +Encoding | +Size (Kb) | +Number of lines | +Max line length | +
---|---|---|---|---|---|
{{ item_basic_info['date'] }} | +{{ item_basic_info['source'] }} | +{{ item_basic_info['encoding'] }} | +{{ item_basic_info['size'] }} | +{{ item_basic_info['nb_lines'] }} | +{{ item_basic_info['max_length_line'] }} | +
estimated type | +hash | +
---|---|
{{ b64[1] }} | +{{ b64[2] }} ({{ b64[4] }}) | +
Domain | +{{ crawler_metadata['domain'] }} | +
Father | +{{ crawler_metadata['paste_father'] }} | +
Url | +{{ crawler_metadata['real_link'] }} | +
{{ content }}+ + + + + +