Skip to content

Commit

Permalink
Merge pull request #112 from newtheatre/davidtaylorhq-patch-1
Browse files Browse the repository at this point in the history
Use full URL for sidebar missing show poster
  • Loading branch information
davidtaylorhq committed Feb 18, 2018
2 parents da65c27 + 35f7ff6 commit 6ccd673
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ wsgiref==0.1.2
coverage==4.2
requests-transition==1.0.4
factory_boy==2.7.0
psycopg2==2.6.2
psycopg2==2.7.1
whitenoise==3.3.0
2 changes: 1 addition & 1 deletion tickets/templates/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2 class="show_category_header">{{ show.category }}</h2>
{% if show.poster %}
<a href="http://newtheatre.org.uk/uk/whats-on"><img class="sidebar_poster" src="{{show.poster.poster_page.url}}" /></a>
{% else %}
<a href="http://newtheatre.org.uk/uk/whats-on"><img class="sidebar_poster" src="{% static 'images/no_image.png' %}" /></a>
<a href="http://newtheatre.org.uk/uk/whats-on"><img class="sidebar_poster" src="{{ request.build_absolute_uri }}{% static 'images/no_image.png' %}" /></a>
{% endif %}
<div>
<p class="sidebar_date">{% if show.start_date != show.end_date %}{{show.start_date|date:"j M"}} to {% endif %}{{show.end_date|date:"j M o"}}</p>
Expand Down

0 comments on commit 6ccd673

Please sign in to comment.