-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#866] Map slider on project main page
Initial version of map slider on project main page, showing project and update pins. In this version, we use jQuery for the slider, because we'll have to rebuild the way we show maps if we don't adhere to this.
- Loading branch information
1 parent
10f81eb
commit e115d65
Showing
2 changed files
with
20 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% load i18n %} | ||
{% load i18n maps %} | ||
|
||
<header> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-8 col-xs-8"> | ||
<h1>{{project.title}}</h1> | ||
<p>{{project.subtitle}}</p> | ||
<p class="small"><span class="glyphicon glyphicon-globe"></span> {{project.primary_location.country}}, {{project.primary_location.country.continent}} <a href="#" class="map-toggle">View map</a></p> | ||
<p class="small"><span class="glyphicon glyphicon-globe"></span> {{project.primary_location.country}}, {{project.primary_location.country.continent}} <a href="#" onclick="maptoggle()" class="map-toggle">Show map +</a></p> | ||
</div> | ||
<div class="col-sm-4 col-xs-4"> | ||
Share <a href="#" class="btn btn-primary">Follow project</a> | ||
</div> | ||
</div> | ||
<div class="row hidden"> | ||
MAP HERE WITH PROJECT PIN and UPDATE PINS | ||
<div style="display: None" id="project-map" class="row initial"> | ||
{% project_map project.id '100%' '300px' %} | ||
</div> | ||
</div> | ||
</header> |
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