Skip to content

Commit

Permalink
[Template] minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
geosolutions committed May 10, 2019
1 parent e41d5c4 commit 8a746f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion geonode/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ <h1>{% trans "You are using an outdated browser that is not supported by GeoNode
<div class="row">
<div class="col-md-12 copyright ">
<div class="module">
<small>{{ custom_theme.copyright }}</small>
<small>{{ custom_theme.copyright|safe }}</small>
</div>
</div>
</div>
Expand Down
12 changes: 9 additions & 3 deletions geonode/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,15 @@ <h4>{{ item.title | limitTo: 20 }}{{item.title.length > 20 ? '...' : ''}}</h4>
<h2>{{ custom_theme.partners_title|default:_("Our partners") }}</h2>
<div class="row">
{% for partner in custom_theme.partners.all %}
<div class="col-md-6">
<div class="partner_logo" style="background-image: url({% if partner.logo %}{{partner.logo.url}}{% else %}{% static 'geonode/img/missing_thumb.png' %}{% endif %})"></div>
<div><a href="{{ partner.partner_link }}" target="_blank">{{ partner.title }}</a></div>
<div class="col-md-2">
<a style="font-size: 12px" href="{{ partner.partner_link|safe }}" target="_blank">
{% if partner.logo %}
<div class="partner_logo" style="background-image: url({{partner.logo.url}})">
{% else %}
{{ partner.title|safe }}
{% endif %}
</div>
</a>
</div>
{% endfor %}
</div>
Expand Down

0 comments on commit 8a746f1

Please sign in to comment.