Skip to content

Commit

Permalink
Alternate for missing org logos
Browse files Browse the repository at this point in the history
  • Loading branch information
clash99 committed Jul 10, 2016
1 parent 6a8aec3 commit 061203f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cadasta/templates/organization/organization_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ <h3 style="text-transform: none;">{% trans "You're ready to go" %}</h3>
<!-- Right detail -->
<div class="col-md-4 detail col-height">
<section>
{% if organization.logo %}
<div class="org-logo">
<img src="{{ organization.logo }}" alt="{{ organization.name }}" />
<img src="{{ organization.logo }}" class="organization-logo" alt="{{ organization.name }}"/>
</div>
{% endif %}
<p>{{ organization.description }}<p>
<div class="divider-thick"></div>
<!-- Starter text -->
Expand Down
12 changes: 8 additions & 4 deletions cadasta/templates/organization/project_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ <h4>{{ proj.name }}</h4>
<p class="visible-xs-block">Organization: {{ proj.organization.name }}</p>
</td>
<td class="hidden-xs">
<div class="org-logo">
<span class="hidden">{{ proj.organization.name }}</span><!-- needed for sorting -->
<img src="{{ proj.organization.logo }}" class="org-logo" alt="{{ proj.organization.name }}"/>
</div>
{% if proj.organization.logo %}
<div class="org-logo">
<span class="hidden">{{ proj.organization.name }}</span><!-- needed for sorting -->
<img src="{{ proj.organization.logo }}" class="org-logo" alt="{{ proj.organization.name }}"/>
</div>
{% else %}
<p>{{ proj.organization.name }}</p>
{% endif %}
</td>
<td class="hidden-xs hidden-sm">{{ proj.country.name }}</td>
<td class="hidden-xs hidden-sm">{{ proj.last_updated|default_if_none:"&mdash;" }}</td>
Expand Down

0 comments on commit 061203f

Please sign in to comment.