Added pannel in search modal + small fix related to config

pull/57/head
Mokaddem 2016-07-06 14:48:27 +02:00
parent 9209d48e30
commit 3345124219
3 changed files with 36 additions and 29 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
# Temp files # Temp files
*.swp *.swp
*.pyc *.pyc
*.swo
# Install Dirs # Install Dirs
AILENV AILENV

View File

@ -21,8 +21,8 @@ if not os.path.exists(configfile):
cfg = ConfigParser.ConfigParser() cfg = ConfigParser.ConfigParser()
cfg.read(configfile) cfg.read(configfile)
max_preview_char = cfg.get("Flask", "max_preview_char") max_preview_char = int(cfg.get("Flask", "max_preview_char"))
max_preview_modal = cfg.get("Flask", "max_preview_modal") max_preview_modal = int(cfg.get("Flask", "max_preview_modal"))
# REDIS # # REDIS #

View File

@ -12,6 +12,8 @@
<hr></br> <hr></br>
<div class="panel panel-default">
<div class="panel-heading">
<table class="table table-condensed"> <table class="table table-condensed">
<thead> <thead>
<tr> <tr>
@ -38,9 +40,13 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<div class="panel-body">
<h4> Content: </h4> <h4> Content: </h4>
<p id="paste_content"> <xmp> {{ content }} </xmp> </p> <p id="paste_content"> <xmp> {{ content }} </xmp> </p>
</div>
</div>
</body> </body>
</html> </html>