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
*.swp
*.pyc
*.swo
# Install Dirs
AILENV

View File

@ -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 #

View File

@ -12,35 +12,41 @@
<hr></br>
<table class="table table-condensed">
<thead>
<tr>
<th>Date</th>
<th>Source</th>
<th>Encoding</th>
<th>Language</th>
<th>Size (Kb)</th>
<th>Mime</th>
<th>Number of lines</th>
<th>Max line length</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ date }}</td>
<td>{{ source }}</td>
<td>{{ encoding }}</td>
<td>{{ language }}</td>
<td>{{ size }}</td>
<td>{{ mime }}</td>
<td>{{ lineinfo.0 }}</td>
<td>{{ lineinfo.1 }}</td>
</tr>
</tbody>
</table>
<div class="panel panel-default">
<div class="panel-heading">
<table class="table table-condensed">
<thead>
<tr>
<th>Date</th>
<th>Source</th>
<th>Encoding</th>
<th>Language</th>
<th>Size (Kb)</th>
<th>Mime</th>
<th>Number of lines</th>
<th>Max line length</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ date }}</td>
<td>{{ source }}</td>
<td>{{ encoding }}</td>
<td>{{ language }}</td>
<td>{{ size }}</td>
<td>{{ mime }}</td>
<td>{{ lineinfo.0 }}</td>
<td>{{ lineinfo.1 }}</td>
</tr>
</tbody>
</table>
</div>
<div class="panel-body">
<h4> Content: </h4>
<p id="paste_content"> <xmp> {{ content }} </xmp> </p>
</div>
</div>
</body>
</html>