2018-05-20 00:10:01 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block main %}
|
2018-06-03 12:29:08 +02:00
|
|
|
<div id="home_content">
|
2018-06-01 23:53:25 +02:00
|
|
|
<h1 class="header" id="title_xppl">XPPL</h1>
|
2018-06-11 17:57:22 +02:00
|
|
|
<p class="lead"> Welcome to our digital library. <br>
|
2018-06-10 12:15:07 +02:00
|
|
|
On instance: {{server}} / From: {{client}}
|
|
|
|
<br>
|
2018-06-11 17:57:22 +02:00
|
|
|
Feel free to browse our catalogue, interfaced in many different ways.
|
2018-05-20 00:10:01 +02:00
|
|
|
</p>
|
|
|
|
|
2018-06-14 11:06:22 +02:00
|
|
|
<div id = "interface_links">
|
2018-06-14 11:40:21 +02:00
|
|
|
<!--<a href="{{url_for('show_books_grid')}}">Grid</a>-->
|
2018-06-01 23:27:26 +02:00
|
|
|
<a href="{{url_for('show_books')}}">List</a>
|
2018-06-14 11:06:22 +02:00
|
|
|
<a href="{{url_for('volumetric_catalog')}}">Volumetric</a>
|
|
|
|
<a href="{{url_for('scape')}}">Scape</a>
|
|
|
|
</div>
|
2018-06-03 12:29:08 +02:00
|
|
|
<br><br><br>
|
2018-06-10 12:15:07 +02:00
|
|
|
|
2018-06-12 13:17:02 +02:00
|
|
|
{%if light%}
|
|
|
|
{%else%}
|
2018-06-10 12:15:07 +02:00
|
|
|
<form method="GET" action="/export/csv">
|
|
|
|
<button type="submit">Export Catalogue (.CSV)</button>
|
|
|
|
</form>
|
|
|
|
<form method="POST" action="/import/csv" id="form_import_csv" enctype=multipart/form-data>
|
|
|
|
<input type="file" id="file_import_csv" name=file style="display:none;" />
|
|
|
|
<button type = "button" onclick="document.getElementById('file_import_csv').click()">Import Catalogue (.CSV)</button>
|
|
|
|
</form>
|
2018-06-03 12:29:08 +02:00
|
|
|
</div>
|
2018-06-12 13:17:02 +02:00
|
|
|
{%endif%}
|
2018-06-13 15:27:34 +02:00
|
|
|
{{ chat.message }}
|
2018-05-20 00:10:01 +02:00
|
|
|
|
2018-06-03 12:29:08 +02:00
|
|
|
<div id="app" class="container">
|
2018-06-11 19:20:59 +02:00
|
|
|
<div class="messageback1"></div>
|
|
|
|
<div class="messageback2"></div>
|
2018-06-03 12:29:08 +02:00
|
|
|
<section class="messages">
|
2018-06-11 19:20:59 +02:00
|
|
|
|
2018-06-03 12:29:08 +02:00
|
|
|
<div v-for="message in messages" class="box">
|
|
|
|
<article class="media">
|
|
|
|
<div class="media-content">
|
|
|
|
<div class="content">
|
2018-06-13 15:12:32 +02:00
|
|
|
<p class="user">[[ message.username ]]</p>
|
|
|
|
<p class="time">[[ message.time ]]</p>
|
2018-06-03 12:29:08 +02:00
|
|
|
<p class="msg">[[ message.text ]]</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</div>
|
2018-06-11 19:20:59 +02:00
|
|
|
|
2018-06-03 12:29:08 +02:00
|
|
|
</section>
|
|
|
|
<section class="new-message">
|
|
|
|
<div class="field has-addons">
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<input v-model="newMessage" @keypress.enter="sendMessage" class="input" type="text" placeholder="Enter message">
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
<button @click="sendMessage" class="button is-info">Send</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
2018-06-01 21:37:45 +02:00
|
|
|
|
2018-05-20 00:10:01 +02:00
|
|
|
{% endblock %}
|