From 3345124219147064c9d3e6137f43f58a393c4d8a Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Wed, 6 Jul 2016 14:48:27 +0200 Subject: [PATCH] Added pannel in search modal + small fix related to config --- .gitignore | 1 + var/www/Flask_server.py | 4 +- var/www/templates/show_saved_paste.html | 60 ++++++++++++++----------- 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index 264aaa5f..88b623fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Temp files *.swp *.pyc +*.swo # Install Dirs AILENV diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 6bf31038..a9a03fa8 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -21,8 +21,8 @@ if not os.path.exists(configfile): cfg = ConfigParser.ConfigParser() cfg.read(configfile) -max_preview_char = cfg.get("Flask", "max_preview_char") -max_preview_modal = cfg.get("Flask", "max_preview_modal") +max_preview_char = int(cfg.get("Flask", "max_preview_char")) +max_preview_modal = int(cfg.get("Flask", "max_preview_modal")) # REDIS # diff --git a/var/www/templates/show_saved_paste.html b/var/www/templates/show_saved_paste.html index 0accffb1..d8872523 100644 --- a/var/www/templates/show_saved_paste.html +++ b/var/www/templates/show_saved_paste.html @@ -12,35 +12,41 @@

- - - - - - - - - - - - - - - - - - - - - - - - - -
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 }}
+
+

Content:

{{ content }}

+
+
+