Skip to content
Snippets Groups Projects
Commit 8a4a7577 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Preview for new corpus page.

parent 2534b4ca
No related branches found
No related tags found
No related merge requests found
......@@ -35,25 +35,56 @@
</div>
</div>
</div>
<span class="card-title">Actions</span>
<a href="{{ url_for('main.corpus_analysis', corpus_id=corpus.id) }}" class="waves-effect waves-light btn">
<i class="material-icons left">help</i>Analyse
</a>
<a href="" class="waves-effect waves-light btn">
<i class="material-icons left">add</i>Add corpus file
</a>
<a href="#modal-confirm-delete" class="waves-effect waves-light btn red modal-trigger right">
<i class="material-icons left">delete</i>Delete Corpus
</a>
</div>
</div>
</div>
<div class="col s12"></div>
<div class="col s12">
<div class="card">
<div class="card-content">
<span class="card-title">Files</span>
<table class="highlight responsive-table">
<thead>
<tr>
<th>Filename</th>
<th>Download</th>
<th>Author</th>
<th>Title</th>
<th></th>
</tr>
</thead>
<tbody>
{% for file in corpus.files %}
<tr>
<td id="file-{{ file.id }}-filename">{{ file.filename }}</td>
<td id="file-{{ file.id }}-download">
<a class="waves-effect waves-light btn-small" download href="{{ url_for('main.corpus_download', corpus_id=corpus.id, corpus_file_id=file.id) }}">
<i class="material-icons">file_download</i>
</a>
<td>Harry Potter.vrt</td>
<td>Stephan Porada</td>
<td>Utopias</td>
<td class="right-align">
<a class="waves-effect waves-light btn-small" download="" href="/jobs/1/download?ressource_id=1&amp;ressource_type=input"><i class="material-icons">edit</i></a>
<a class="waves-effect waves-light btn-small" download="" href="/jobs/1/download?ressource_id=1&amp;ressource_type=input"><i class="material-icons">file_download</i></a>
<a class="waves-effect waves-light btn-small red" download="" href="/jobs/1/download?ressource_id=1&amp;ressource_type=input"><i class="material-icons">delete</i></a>
</td>
</tr>
<tr>
<td>Harry Potter.vrt</td>
<td>Stephan Porada</td>
<td>Utopias</td>
<td class="right-align">
<a class="waves-effect waves-light btn-small" download="" href="/jobs/1/download?ressource_id=1&amp;ressource_type=input"><i class="material-icons">edit</i></a>
<a class="waves-effect waves-light btn-small" download="" href="/jobs/1/download?ressource_id=1&amp;ressource_type=input"><i class="material-icons">file_download</i></a>
<a class="waves-effect waves-light btn-small red" download="" href="/jobs/1/download?ressource_id=1&amp;ressource_type=input"><i class="material-icons">delete</i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment