-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bfd571
commit bf0edea
Showing
10 changed files
with
199 additions
and
45 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,57 +1,55 @@ | ||
<section class="themes hidden"> | ||
<section class="theme"> | ||
<div class="container"> | ||
<div class="wrap"> | ||
<!-- Centered Heading --> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="title"> | ||
<h3>- {{ _('Research Themes') }} - </h3> | ||
</div> | ||
<div class="col-12 text-center"> | ||
<h1>Research Themes</h1> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
{% set themes = h.get_featured_groups(6) %} | ||
{% for theme in themes %} | ||
{% set url = h.url_for('group' ~ '.read', id=theme.name) %} | ||
|
||
<div class="col-md-4 col"> | ||
<div class="item"> | ||
{% if loop.index < 4 %} <div class="media"> | ||
<div class="count">{{theme.package_count}}</div> | ||
<div class="media-body media-right"> | ||
<h4 class="media-heading">{{ theme.title }}</h4> | ||
<p> | ||
{{ theme.description | truncate(80) }} | ||
</p> | ||
<a href="{{url}}" class="btn btn-primary">SEE DATASETS</a> | ||
<!-- Dataset Cards --> | ||
<div class="row block"> | ||
{% for theme in h.get_featured_groups(5) %} | ||
<div class="col-md-4"> | ||
<div class="panel panel-default"> | ||
<div class="panel-body"> | ||
<div class="media"> | ||
<div class="media-left"> | ||
{% if loop.index == 1 %} | ||
<img src="/base/images/icons/bus.png" alt="Bus" /> | ||
{% elif loop.index == 2 %} | ||
<img src="/base/images/icons/home.png" alt="Home" /> | ||
{% elif loop.index == 3 %} | ||
<img src="/base/images/icons/bag.png" alt="Bag" /> | ||
{% elif loop.index == 4 %} | ||
<img src="/base/images/icons/leaf.png" alt="Leaf" /> | ||
{% elif loop.index == 5 %} | ||
<img src="/base/images/icons/leaf.png" alt="Leaf" /> | ||
{% elif loop.index == 6 %} | ||
<img src="/base/images/icons/leaf.png" alt="Leaf" /> | ||
{% endif %} | ||
</div> | ||
<div class="media-right media-middle"> | ||
<img class="ml-3" | ||
src="{{theme.image_display_url or h.url_for_static('/base/images/placeholder-group.png') }}" | ||
alt="Generic placeholder image"> | ||
<div class="media-body"> | ||
<h4 class="media-heading"> | ||
{% set title = theme.title %} | ||
{% set trimmed_text = title|trim %} | ||
{% if trimmed_text|length > 20 %} | ||
{{ trimmed_text[:20] ~ "..." }} | ||
{% else %} | ||
{{ trimmed_text }} | ||
{% endif %} | ||
</h4> | ||
<a href="/research-themes/{{ theme.name }}" class="btn btn-default btn-sm explore-btn"> | ||
Explore Research Theme <span class="arrow">→</span> | ||
</a> | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="media"> | ||
<div class="count">{{theme.package_count}} Datasets</div> | ||
<div class="media-left media-middle"> | ||
<img class="ml-3" | ||
src="{{theme.image_display_url or h.url_for_static('/base/images/placeholder-group.png') }}" | ||
alt="Generic placeholder image"> | ||
</div> | ||
<div class="media-body media-left"> | ||
<h4 class="media-heading">{{ theme.title }}</h4> | ||
<p> | ||
{{ theme.description | truncate(80) }} | ||
</p> | ||
<a href="{{ url }}" class="btn btn-primary">SEE DATASETS</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<p class="more"><a href="/group">See more →</a> </p> | ||
</div> | ||
</div> | ||
</section> | ||
</section> |