depicts/templates/next.html

63 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2019-09-13 17:16:37 +01:00
{% extends "base.html" %}
{% block title %}{{ label }} ({{qid }}){% endblock %}
{% block content %}
<div class="container-fluid mt-2">
<div class="row">
<div class="col-md">
<img src="{{ image.thumburl }}" class="w-100" />
</div>
<div class="col-md">
<h1>{{ self.title() }}</h1>
2019-09-27 16:53:17 +01:00
<div class="alert alert-primary" role="alert">
Thanks for contributing. Your edits have been saved to the artwork on Wikidata. Use the links below to find other similar artworks to catalog.
</div>
2019-09-27 16:53:17 +01:00
<p>
<a href="https://www.wikidata.org/wiki/{{ qid }}">view this artwork on Wikidata</a>
2019-09-27 16:53:17 +01:00
|
<a href="{{ url_for('random_artwork') }}">switch to another artwork</a>
2019-09-27 16:53:17 +01:00
|
<a href="{{ url_for('browse_page') }}">browse artworks</a>
2019-09-27 16:53:17 +01:00
</p>
2019-10-04 12:16:16 +01:00
{% if session.no_find_more %}
<p>find more disabled</p>
{% else %}
2019-09-29 19:00:59 +01:00
{% raw %}
<div id="app">
<div v-for="prop in other_props">
<h3>{{ prop['label'] }} ({{ prop['pid'] }})</h3>
<span v-for="value in prop['values']">
<a :href="value['href']">{{ value['label'] }}</a> ({{ value['qid'] }})
</span>
<div>
<span v-for="image in prop.images">
<a :href="image.href"><img :src="image.image.thumburl" /></a>
</span>
</div>
</div>
2019-09-27 16:53:17 +01:00
2019-09-29 19:00:59 +01:00
</div>
{% endraw %}
2019-10-04 12:16:16 +01:00
{% endif %}
2019-09-27 16:53:17 +01:00
</div>
2019-09-27 16:53:17 +01:00
</div>
2019-09-13 17:16:37 +01:00
</div>
{% endblock %}
2019-09-29 19:00:59 +01:00
{% block script %}
2019-10-04 13:37:40 +01:00
{% if not session.no_find_more %}
2019-09-29 19:00:59 +01:00
<script>
var other_props = {{ other_props | tojson }};
</script>
<script src="{{ url_for('static', filename='vue/vue.js') }}"></script>
<script src="{{ url_for('static', filename='js/next.js') }}"></script>
2019-10-04 13:37:40 +01:00
{% endif %}
2019-09-29 19:00:59 +01:00
{% endblock %}