using name and link of real organization on program detail page. using fallback images for missing program detail page program image. fixes #355 and fixes #381

This commit is contained in:
Joe Curlee 2013-06-04 16:01:22 -05:00
Родитель ebaeaccd9d
Коммит 59d2cea1ce
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -589,7 +589,8 @@ nav.pagination ul li a {
ul.thumbnails li figure.thumbnail { ul.thumbnails li figure.thumbnail {
margin: 0 0 0 0; margin: 0 0 0 0;
} }
ul.thumbnails li figure.thumbnail > a img { ul.thumbnails li figure.thumbnail > a img,
figure.program-thumbnail > img {
display: block; display: block;
width: 210px; width: 210px;
height: 210px; height: 210px;

Просмотреть файл

@ -5,16 +5,16 @@
{% block content %} {% block content %}
<div class="row"> <div class="row">
<div class="span4"> <div class="span4">
<img src="{{program.imageUrl}}"> <figure class="program-thumbnail thumbnail">
<img src="{% if program.imageUrl %}{{ program.imageUrl }}{% else %}{{program.issuer.imageUrl}}{% endif %}">
</figure>
</div> </div>
<div class="span8"> <div class="span8">
<p><strong>From <a href="/orgs/some-organization">{{program.issuer.name}}</a>.</strong></p> <p><strong>From <a href="{{program.url}}">{{program.issuer.name}}</a>.</strong></p>
{% if program.description %} {% if program.description %}
<p>{{program.description}}</p> <p>{{program.description}}</p>
{% endif %} {% endif %}
<p class="text-right"></p>
<p class="text-right">
</p>
</div> </div>
</div> </div>
<h3>Badges You Can Earn through this Program</h3> <h3>Badges You Can Earn through this Program</h3>