-
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.
[update][l]: Most Popular Dataset Section
- Loading branch information
1 parent
ea29800
commit 9bfd571
Showing
11 changed files
with
128 additions
and
37 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
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.
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
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,36 +1,73 @@ | ||
<section class="popular-dataset"> | ||
<div class="container"> | ||
<div class="wrap"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<div class="title"> | ||
<h3>- {{ _('Most Popular Datasets') }} - </h3> | ||
</div> | ||
</div> | ||
<section class="latest-dataset"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<!-- Left Section --> | ||
<div class="col-md-6 col-sm-12 text-center"> | ||
<div class="row dataset-card-height"> | ||
<div | ||
class="col-md-8 col-md-offset-1 col-sm-10 col-sm-offset-1 col-xs-12" | ||
> | ||
<div class="d-flex flex-column text-left"> | ||
<h1>Most Popular Datasets</h1> | ||
<p class="dataset-tagline"> | ||
View the datasets which have the highest number of visits by data users. | ||
</p> | ||
<a href="/datasets"> | ||
<button class="btn btn-primary dataset-explore-btn bg-blue-400"> | ||
Explore Datasets | ||
<span class="p-left"><i class="fa fa-arrow-right"></i></span> | ||
</button> | ||
</a> | ||
</div> | ||
<div class="row"> | ||
{% for dataset in h.popular_datasets(3) %} | ||
<a href="{{ h.url_for('dataset.read', id=dataset.name) }}"> | ||
<div class="col-md-4"> | ||
<div class="icon"> | ||
{% if loop.index == 1 %} | ||
<img src="/base/images/svg/unlocked.svg" alt=""> | ||
{% elif loop.index == 2 %} | ||
<img src="/base/images/svg/checked.svg" alt=""> | ||
{% elif loop.index == 3 %} | ||
<img src="/base/images/svg/unlocked.svg" alt=""> | ||
{% endif %} | ||
</div> | ||
<div class="item"> | ||
|
||
<span>{{ dataset.title }}</span> | ||
<p> {{ dataset.notes | truncate(180) }} </p> | ||
</div> | ||
</div> | ||
</a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
<!-- Right Section --> | ||
<div class="col-md-6 col-sm-12 text-center right-popular-dataset"> | ||
<div class="row full-height"> | ||
<div | ||
class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1 col-xs-12 fix-size-dataset-card" | ||
> | ||
{% for dataset in h.popular_datasets(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-blue.png" alt="Bus" /> | ||
{% elif loop.index == 2 %} | ||
<img src="/base/images/icons/home-blue.png" alt="Home" /> | ||
{% elif loop.index == 3 %} | ||
<img src="/base/images/icons/bag-blue.png" alt="Bag" /> | ||
{% elif loop.index == 4 %} | ||
<img src="/base/images/icons/leaf-blue.png" alt="Leaf" /> | ||
{% endif %} | ||
</div> | ||
<div class="media-body"> | ||
<h4 class="media-heading"> | ||
{% set title = dataset.title %} {% set trimmed_text = | ||
title|trim %} {% if trimmed_text|length > 20 %} {{ | ||
trimmed_text[:20] ~ "..." }} {% else %} {{ trimmed_text }} | ||
{% endif %} | ||
</h4> | ||
<a | ||
href="/datasets/{{ dataset.name }}" | ||
class="btn btn-default btn-sm explore-btn" | ||
>Explore Dataset <span class="arrow">→</span></a | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<p class="more"><a href="/datasets/">More Datasets →</a> </p> | ||
|
||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
|