Browse Source

artwork template divs are fixed and annotated

master
jules 4 years ago
parent
commit
cc1c8ed785
  1. 49
      templates/artwork.html

49
templates/artwork.html

@ -46,15 +46,17 @@
<img class="artwork-about-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}"> <img class="artwork-about-imgs" src="{{ url_for('static', filename='/imgs/Icons/placeholder_no-image2.png') }}">
{% else %} {% else %}
{% for x in artworkimages['results']['bindings'] %} {% for x in artworkimages['results']['bindings'] %}
{% if loop.index <= 1 %}
{% if "image" in x %} {% if "image" in x %}
<img class="artwork-about-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'> <img class="artwork-about-imgs" src='{{ x["image"]["value"] | replace("wiki/File:","wiki/Special:Redirect/file/") }}'>
{% endif %} {% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
<!-- other stuff like downloads, absent for now --> <!-- other stuff like downloads, absent for now -->
<div class="artwork-about-under-img">
<!-- DOWNLOADS AND LINKS --> <!-- DOWNLOADS AND LINKS -->
<div> <div>
@ -149,18 +151,19 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</p>
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div> </div>
<!-- end of other stuff like downloads, absent for now -->
<!-- RIGHT COLUMN --> <!-- RIGHT COLUMN -->
<div class="artwork-rightcolumn"> <div class="artwork-rightcolumn">
<!-- RIGHT TOP -->
<!-- RIGHT TOP -->
<div class="artwork-rightcolumn-top">
<!-- contributors --> <!-- contributors -->
<div class="artwork-rightcolumn-top-contributors"> <div class="artwork-rightcolumn-top-contributors">
<p class="label-item">CONTRIBUTORS</p> <p class="label-item">CONTRIBUTORS</p>
@ -203,9 +206,11 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div>
<!-- end of date -->
<!-- publishers removed div .artwork-rightcolumn-top-publishers--> <!-- publishers-->
<div class="artwork-rightcolumn-top-publishers">
<p class="label-item">PUBLISHERS</p> <p class="label-item">PUBLISHERS</p>
<!-- loop through publishers --> <!-- loop through publishers -->
{% if artworkpublisher['results']['bindings']==[] %} {% if artworkpublisher['results']['bindings']==[] %}
@ -222,16 +227,20 @@
{% if 'role' in x %} {% if 'role' in x %}
<span>{{ x['role']['value'] }}</span> <span>{{ x['role']['value'] }}</span>
{% endif %} {% endif %}
<div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
<!-- end of publishers-->
</div> </div>
</div> <!-- end of about right top -->
<!-- start of about right column bottom -->
<div class="artwork-rightcolumn-bottom">
<div class="artwork-about-bottom">
<!-- description --> <!-- description -->
<!-- if there is a description add description here --> <!-- if there is a description add description here -->
@ -285,7 +294,7 @@
<p class="label-item">EXHIBITION AND DISTRIBUTION HISTORY</p> <p class="label-item">EXHIBITION AND DISTRIBUTION HISTORY</p>
<div> <div>
{{ artworkexhibitiontext | safe }} {{ x['text'] | safe }}
</div> </div>
<!-- right ride with author etc LATER--> <!-- right ride with author etc LATER-->
<div> <div>
@ -315,12 +324,22 @@
<!-- end of right column --> <!-- end of right column -->
</div> </div>
<!-- end of about --> <!-- end of about -->
</div> </div>
<!-- lists DESIGN IF NO LISTS TO BE CLARIFIE-->
<div class="artwork-nav-label">LISTS</div>
</div>
<!-- END OF ABOUT -->
<!-- LISTS DESIGN IF NO LISTS TO BE CLARIFIED-->
<div class="artwork-lists"> <div class="artwork-lists">
<div class="artwork-nav-label">LISTS</div>
{% if artworklists['results']['bindings']==[] %} {% if artworklists['results']['bindings']==[] %}
<p>The artwork isn't featured in any lists yet</p> <p>The artwork isn't featured in any lists yet</p>
{% else %} {% else %}
@ -347,6 +366,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
<!-- END OF LISTS -->
<!-- copies in collections --> <!-- copies in collections -->
@ -377,6 +397,7 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<!-- end copies in collections -->
<!-- Related works --> <!-- Related works -->
<div class="artwork-relatedwrapper"> <div class="artwork-relatedwrapper">
@ -411,7 +432,7 @@
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<!-- End related works -->
</div> </div>
{% endblock content %} {% endblock content %}
Loading…
Cancel
Save