Added pannel in search modal + small fix related to config

This commit is contained in:
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,35 +12,41 @@
<hr></br> <hr></br>
<table class="table table-condensed"> <div class="panel panel-default">
<thead> <div class="panel-heading">
<tr> <table class="table table-condensed">
<th>Date</th> <thead>
<th>Source</th> <tr>
<th>Encoding</th> <th>Date</th>
<th>Language</th> <th>Source</th>
<th>Size (Kb)</th> <th>Encoding</th>
<th>Mime</th> <th>Language</th>
<th>Number of lines</th> <th>Size (Kb)</th>
<th>Max line length</th> <th>Mime</th>
</tr> <th>Number of lines</th>
</thead> <th>Max line length</th>
<tbody> </tr>
<tr> </thead>
<td>{{ date }}</td> <tbody>
<td>{{ source }}</td> <tr>
<td>{{ encoding }}</td> <td>{{ date }}</td>
<td>{{ language }}</td> <td>{{ source }}</td>
<td>{{ size }}</td> <td>{{ encoding }}</td>
<td>{{ mime }}</td> <td>{{ language }}</td>
<td>{{ lineinfo.0 }}</td> <td>{{ size }}</td>
<td>{{ lineinfo.1 }}</td> <td>{{ mime }}</td>
</tr> <td>{{ lineinfo.0 }}</td>
</tbody> <td>{{ lineinfo.1 }}</td>
</table> </tr>
</tbody>
</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>