Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2556] Update class names on the media component
- Loading branch information
Showing
6 changed files
with
48 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
{% set item = pkg.related | first %} | ||
<section class="module module-narrow module-shallow related{{ " related-empty" if not item }}"> | ||
<h2 class="module-heading"><i class="icon-medium icon-picture"></i> Related <a class="action" href="{{ h.url_for(controller='related', action='new', id=pkg.name) }}">Add Related</a></h2> | ||
<div class="module-content media"> | ||
{% if item %} | ||
{% with url = h.url_for(controller='related', action='list', id=pkg.name) %} | ||
<a class="logo" href="{{ url }}"> | ||
<img src="{{ item.image_url or "http://placehold.it/200x125" }}" width="200" height="125" /> | ||
</a> | ||
<div class="content"> | ||
<h3 class="heading"><a href="{{ url }}">{{ item.title }}</a></h3> | ||
<p>{{ h.markdown_extract(item.description, 70) }}</p> | ||
</div> | ||
{% endwith %} | ||
{% else %} | ||
<p>No apps, ideas, news stories or images have been | ||
related to this dataset yet, why not add one now?</p> | ||
<p class="action"><a class="btn" href="{{ h.url_for(controller='related', action='new', id=pkg.name) }}">Add Item</a></p> | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% with item = item or pkg.related|first %} | ||
<section class="module module-narrow module-shallow related{{ " related-empty" if not item }}"> | ||
<h2 class="module-heading"><i class="icon-medium icon-picture"></i> Related <a class="action" href="{{ h.url_for(controller='related', action='new', id=pkg.name) }}">Add Related</a></h2> | ||
<div class="module-content media"> | ||
{% if item %} | ||
{% with url = h.url_for(controller='related', action='list', id=pkg.name) %} | ||
<a class="image logo" href="{{ url }}"> | ||
<img src="{{ item.image_url or "http://placehold.it/200x125" }}" width="200" height="125" /> | ||
</a> | ||
<div class="media-content"> | ||
<h3 class="media-heading"><a href="{{ url }}">{{ item.title }}</a></h3> | ||
<p>{{ h.markdown_extract(item.description, 70) }}</p> | ||
</div> | ||
{% endwith %} | ||
{% else %} | ||
<p>No apps, ideas, news stories or images have been | ||
related to this dataset yet, why not add one now?</p> | ||
<p class="action"><a class="btn" href="{{ h.url_for(controller='related', action='new', id=pkg.name) }}">Add Item</a></p> | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% endwith %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters