-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/set-details'
Conflicts: .floo modules/UshahidiUI/media/css/style.css
- Loading branch information
Showing
14 changed files
with
582 additions
and
102 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
220 changes: 220 additions & 0 deletions
220
modules/UshahidiUI/media/js/app/templates/SetDetail.html
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 |
---|---|---|
@@ -0,0 +1,220 @@ | ||
<div class="body-wrapper"> | ||
<div class="row"> | ||
|
||
<form role="form" class="custom" action=""> | ||
<div class="sets-search-bar"> | ||
<div class="sets-search-bar-title"> | ||
<h5>Accidents</h5> | ||
<p class="sets-search-bar-subtitle">36 posts</p> | ||
</div> <!-- end .sets-search-bar-title --> | ||
|
||
<div class="sets-search-bar-create-button"> | ||
<a href="#sets" class="js-create-set"> <i class="icon-plus-sign"></i>Create a Set</a> | ||
</div> | ||
|
||
<div class="sets-search-bar-search-field"> | ||
<label class="visually-hidden" for="sets-search-field"></label> | ||
<input id= "sets-search-field" type="text" placeholder="Find Sets"> | ||
</div> | ||
</div> <!-- end .set-search-bar --> | ||
</form> <!-- end form --> | ||
|
||
<div id="map" class="set-detail-map"></div> <!-- end .map --> | ||
|
||
<aside class="set-detail-summary-card"> | ||
{{> set-module }} | ||
</aside> | ||
|
||
<div class="set-detail-post-list-wrapper"> | ||
|
||
<div class="set-detail-post-list-filter"> | ||
<div class="row"> | ||
|
||
<form role="form" class="custom" action=""> | ||
<div class="list-view-filter-info"> | ||
<!-- TODO: need to add dynamic data here --> | ||
<h5>Showing 3 from 1,500 posts</h5> | ||
</div> <!-- end .list-view-filter-info --> | ||
|
||
<div class="list-view-filter-count"> | ||
<div class="filter-count-select"> | ||
<label class="visually-hidden" for="filter-posts-count">Number of posts shown</label> | ||
<select id="filter-posts-count" > | ||
<option selected>3</option> | ||
<option>5</option> | ||
<option>10</option> | ||
<option>20</option> | ||
</select> | ||
</div> | ||
|
||
</div> <!-- end .list-view-filter-count --> | ||
|
||
<div class="list-view-filter-sort"> | ||
<div class="filter-sort-select"> | ||
<label class="visually-hidden" for="filter-posts-sort">Sort posts by</label> | ||
<select id="filter-posts-sort" > | ||
<option selected value="updated">Date/Time updated</option> | ||
<option value="created">Date/Time created</option> | ||
<option value="title">Title A-Z</option> | ||
<option value="id">ID</option> | ||
</select> | ||
</div> | ||
|
||
</div> <!-- end .list-view-filter-sort --> | ||
</form> <!-- end .form --> | ||
|
||
</div> <!-- end .row --> | ||
</div> <!-- end .list-view-filter --> | ||
|
||
<ul class="set-detail-post-list"> | ||
<li class="set-detail-post"> | ||
<article> | ||
<div class="list-view-post-image"> | ||
<img src="{{imageurl "mini-coop-square.jpg"}}" alt=""> | ||
</div> <!-- end .list-view-post-image --> | ||
|
||
<div class="list-view-post-details"> | ||
<div class="row"> | ||
<h5 class="list-view-post-title"><i class="icon-lock"></i> <a href="#posts/{{id}}"><!-- {{ title }} --> Mini Cooper Spotted on the Streets of London.</a></h5> | ||
<div class="list-view-post-time"> | ||
<p> <i class="icon-time"></i>{{ datetime-calendar created }}</p> | ||
</div> <!-- end .list-view-post-time --> | ||
</div> <!-- end .row --> | ||
</div> <!-- end .list-view-post-details --> | ||
|
||
<div class="list-view-post-excerpt"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi, voluptate, architecto distinctio debitis pariatur aliquid sit dignissimos dicta aliquam obcaecati expedita inventore reprehenderit voluptatem labore odit corporis voluptates magnam hic.<a href="#posts/{{id}}"><span class="read-more"> ... Read More</span></a></p> | ||
</div> <!-- end .list-view-post-excerpt --> | ||
</article> <!-- end <article> --> | ||
|
||
<div class="set-detail-post-admin"> | ||
<div class="set-detail-post-list-categories-wrapper"> | ||
<h6>Categories</h6> | ||
<ul class="list-view-post-categories"> | ||
<a href="#"><li><i class="icon-circle" style="color: #C50813"></i>Automobiles</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #23699D;"></i>Transport</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #4fa425;"></i>London</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #baac29;"></i>Retro</li></a> | ||
</ul> | ||
</div> <!-- end .list-view-post-categories-wrapper --> | ||
|
||
<div class="set-detail-post-edit-wrapper"> | ||
<ul class="list-view-post-edit"> | ||
<li><a href="#" class="list-view-post-edit-buttons js-post-edit"> <i class="icon-edit"></i> <span class="hide-for-medium-down">edit</span></a></li> | ||
<li><a href="#" class="list-view-post-edit-buttons js-post-set"> <i class="icon-plus-sign"></i> <span class="hide-for-medium-down">set</span></a></li> | ||
<li> | ||
{{#if isPublished}} | ||
<a href="#" class="list-view-post-edit-buttons post-unpublish"> <i class="icon-file"></i> <span class="hide-for-medium-down">unpublish</span></a> | ||
{{else}} | ||
<a href="#" class="list-view-post-edit-buttons post-publish"> <i class="icon-file"></i> <span class="hide-for-medium-down">publish</span></a> | ||
{{/if}} | ||
</li> | ||
<li><a href="#" class="list-view-post-edit-buttons post-delete"> <i class="icon-trash"></i></a></li> | ||
</ul> <!-- end .list-view-post-edit --> | ||
</div> <!-- end .list-view-post-edit-wrapper --> | ||
</div> | ||
</li> <!-- end .set-detail-post-list-item --> | ||
|
||
<li class="set-detail-post"> | ||
<article> | ||
<div class="list-view-post-image"> | ||
<img src="{{imageurl "mini-coop-square.jpg"}}" alt=""> | ||
</div> <!-- end .list-view-post-image --> | ||
|
||
<div class="list-view-post-details"> | ||
<div class="row"> | ||
<h5 class="list-view-post-title"><i class="icon-lock"></i> <a href="#posts/{{id}}"><!-- {{ title }} --> Mini Cooper Spotted on the Streets of London.</a></h5> | ||
<div class="list-view-post-time"> | ||
<p> <i class="icon-time"></i>{{ datetime-calendar created }}</p> | ||
</div> <!-- end .list-view-post-time --> | ||
</div> <!-- end .row --> | ||
</div> <!-- end .list-view-post-details --> | ||
|
||
<div class="list-view-post-excerpt"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi, voluptate, architecto distinctio debitis pariatur aliquid sit dignissimos dicta aliquam obcaecati expedita inventore reprehenderit voluptatem labore odit corporis voluptates magnam hic.<a href="#posts/{{id}}"><span class="read-more"> ... Read More</span></a></p> | ||
</div> <!-- end .list-view-post-excerpt --> | ||
</article> <!-- end <article> --> | ||
|
||
<div class="set-detail-post-admin"> | ||
<div class="set-detail-post-list-categories-wrapper"> | ||
<h6>Categories</h6> | ||
<ul class="list-view-post-categories"> | ||
<a href="#"><li><i class="icon-circle" style="color: #C50813"></i>Automobiles</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #23699D;"></i>Transport</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #4fa425;"></i>London</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #baac29;"></i>Retro</li></a> | ||
</ul> | ||
</div> <!-- end .list-view-post-categories-wrapper --> | ||
|
||
<div class="set-detail-post-edit-wrapper"> | ||
<ul class="list-view-post-edit"> | ||
<li><a href="#" class="list-view-post-edit-buttons js-post-edit"> <i class="icon-edit"></i> <span class="hide-for-medium-down">edit</span></a></li> | ||
<li><a href="#" class="list-view-post-edit-buttons js-post-set"> <i class="icon-plus-sign"></i> <span class="hide-for-medium-down">set</span></a></li> | ||
<li> | ||
{{#if isPublished}} | ||
<a href="#" class="list-view-post-edit-buttons post-unpublish"> <i class="icon-file"></i> <span class="hide-for-medium-down">unpublish</span></a> | ||
{{else}} | ||
<a href="#" class="list-view-post-edit-buttons post-publish"> <i class="icon-file"></i> <span class="hide-for-medium-down">publish</span></a> | ||
{{/if}} | ||
</li> | ||
<li><a href="#" class="list-view-post-edit-buttons post-delete"> <i class="icon-trash"></i></a></li> | ||
</ul> <!-- end .list-view-post-edit --> | ||
</div> <!-- end .list-view-post-edit-wrapper --> | ||
</div> | ||
</li> <!-- end .set-detail-post-list-item --> | ||
|
||
<li class="set-detail-post"> | ||
<article> | ||
<div class="list-view-post-image"> | ||
<img src="{{imageurl "mini-coop-square.jpg"}}" alt=""> | ||
</div> <!-- end .list-view-post-image --> | ||
|
||
<div class="list-view-post-details"> | ||
<div class="row"> | ||
<h5 class="list-view-post-title"><i class="icon-lock"></i> <a href="#posts/{{id}}"><!-- {{ title }} --> Mini Cooper Spotted on the Streets of London.</a></h5> | ||
<div class="list-view-post-time"> | ||
<p> <i class="icon-time"></i>{{ datetime-calendar created }}</p> | ||
</div> <!-- end .list-view-post-time --> | ||
</div> <!-- end .row --> | ||
</div> <!-- end .list-view-post-details --> | ||
|
||
<div class="list-view-post-excerpt"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi, voluptate, architecto distinctio debitis pariatur aliquid sit dignissimos dicta aliquam obcaecati expedita inventore reprehenderit voluptatem labore odit corporis voluptates magnam hic.<a href="#posts/{{id}}"><span class="read-more"> ... Read More</span></a></p> | ||
</div> <!-- end .list-view-post-excerpt --> | ||
</article> <!-- end <article> --> | ||
|
||
<div class="set-detail-post-admin"> | ||
<div class="set-detail-post-list-categories-wrapper"> | ||
<h6>Categories</h6> | ||
<ul class="list-view-post-categories"> | ||
<a href="#"><li><i class="icon-circle" style="color: #C50813"></i>Automobiles</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #23699D;"></i>Transport</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #4fa425;"></i>London</li></a> | ||
<a href="#"><li><i class="icon-circle" style="color: #baac29;"></i>Retro</li></a> | ||
</ul> | ||
</div> <!-- end .list-view-post-categories-wrapper --> | ||
|
||
<div class="set-detail-post-edit-wrapper"> | ||
<ul class="list-view-post-edit"> | ||
<li><a href="#" class="list-view-post-edit-buttons js-post-edit"> <i class="icon-edit"></i> <span class="hide-for-medium-down">edit</span></a></li> | ||
<li><a href="#" class="list-view-post-edit-buttons js-post-set"> <i class="icon-plus-sign"></i> <span class="hide-for-medium-down">set</span></a></li> | ||
<li> | ||
{{#if isPublished}} | ||
<a href="#" class="list-view-post-edit-buttons post-unpublish"> <i class="icon-file"></i> <span class="hide-for-medium-down">unpublish</span></a> | ||
{{else}} | ||
<a href="#" class="list-view-post-edit-buttons post-publish"> <i class="icon-file"></i> <span class="hide-for-medium-down">publish</span></a> | ||
{{/if}} | ||
</li> | ||
<li><a href="#" class="list-view-post-edit-buttons post-delete"> <i class="icon-trash"></i></a></li> | ||
</ul> <!-- end .list-view-post-edit --> | ||
</div> <!-- end .list-view-post-edit-wrapper --> | ||
</div> | ||
</li> <!-- end .set-detail-post-list-item --> | ||
</ul> <!-- end .set-detail-post-list --> | ||
|
||
</div> <!-- end .set-detail-post-list-outer-wrapper --> | ||
|
||
</div> | ||
</div> | ||
|
||
|
Empty file.
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
88 changes: 43 additions & 45 deletions
88
modules/UshahidiUI/media/js/app/templates/partials/set-module.html
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,45 +1,43 @@ | ||
<li> | ||
<div class="set-wrapper"> | ||
|
||
<div class="set-image"> | ||
<img src="{{ imageurl "mini-coop.jpg"}}" alt=""> | ||
</div> <!-- end .set-image --> | ||
|
||
<!-- FIXME: set-post-number icon - need a responsive & dynamic solution here. What happens with 3 and 4 digit numbers? --> | ||
<div class="set-post-number">36</div> | ||
|
||
<div class="set-body"> | ||
<div class="set-title"> | ||
<h3><a href="#">London Automobiles</a></h3> | ||
</div> <!-- end .set-title --> | ||
|
||
<div class="set-time-meta"> | ||
<small> <i class="icon-time"></i>Last updated Tuesday at 8:23pm </small> | ||
</div> <!-- end .set-time-meta --> | ||
|
||
<div class="set-excerpt"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque, quis consectetur ...</p> | ||
</div> <!-- end .set-excerpt --> | ||
|
||
<div class="set-view-posts"> | ||
<a href="#" class="set-view-posts-button" >view posts</a> | ||
</div> <!-- end .set-view-posts --> | ||
|
||
<div class="set-tags"> | ||
<small> | ||
<a href="#">automobiles</a>, <a href="#">mozilla</a>, <a href="#">barbican</a>, <a href="#">leicester square</a>, <a href="#">hand & shears</a> | ||
</small> | ||
</div> <!-- end .set-tags --> | ||
|
||
<div class="set-actions"> | ||
<ul class="set-actions-list"> | ||
<li><small><a href="#"><i class="icon-edit"></i> edit set</a></small></li> | ||
<li><small><a href="#"><i class="icon-trash"></i> delete set</a></small></li> | ||
<li><small><a href="#"><i class="icon-lock"></i></a></small></li> | ||
<li><small><a href="#"><i class="icon-eye-open"></i> 12547</a></small></li> | ||
</ul> <!-- end .set-actions-list --> | ||
</div> <!-- end .set-actions --> | ||
</div> <!-- end .set-body --> | ||
|
||
</div> <!-- end .set-wrapper --> | ||
</li> | ||
<div class="set-wrapper"> | ||
|
||
<div class="set-image"> | ||
<img src="{{ imageurl "mini-coop.jpg"}}" alt=""> | ||
</div> <!-- end .set-image --> | ||
|
||
<!-- FIXME: set-post-number icon - need a responsive & dynamic solution here. What happens with 3 and 4 digit numbers? --> | ||
<div class="set-post-number">36</div> | ||
|
||
<div class="set-body"> | ||
<div class="set-title"> | ||
<h3><a href="#sets/1">London Automobiles</a></h3> | ||
</div> <!-- end .set-title --> | ||
|
||
<div class="set-time-meta"> | ||
<small> <i class="icon-time"></i>Last updated Tuesday at 8:23pm </small> | ||
</div> <!-- end .set-time-meta --> | ||
|
||
<div class="set-excerpt"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque, quis consectetur ...</p> | ||
</div> <!-- end .set-excerpt --> | ||
|
||
<div class="set-view-posts"> | ||
<a href="#sets/1" class="set-view-posts-button" >view posts</a> | ||
</div> <!-- end .set-view-posts --> | ||
|
||
<div class="set-tags"> | ||
<small> | ||
<a href="#">automobiles</a>, <a href="#">mozilla</a>, <a href="#">barbican</a>, <a href="#">leicester square</a>, <a href="#">hand & shears</a> | ||
</small> | ||
</div> <!-- end .set-tags --> | ||
|
||
<div class="set-actions"> | ||
<ul class="set-actions-list"> | ||
<li><small><a href="#"><i class="icon-edit"></i> edit set</a></small></li> | ||
<li><small><a href="#"><i class="icon-trash"></i> delete set</a></small></li> | ||
<li><small><a href="#"><i class="icon-lock"></i></a></small></li> | ||
<li><small><a href="#"><i class="icon-eye-open"></i> 12547</a></small></li> | ||
</ul> <!-- end .set-actions-list --> | ||
</div> <!-- end .set-actions --> | ||
</div> <!-- end .set-body --> | ||
|
||
</div> <!-- end .set-wrapper --> |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
define([ 'App', 'marionette', 'handlebars', 'text!templates/SetDetail.html', 'text!templates/partials/set-module.html'], | ||
function( App, Marionette, Handlebars, template, setModuleTemplate) | ||
{ | ||
// Hacky - make sure we register partials before we call compile | ||
Handlebars.registerPartial('set-module', setModuleTemplate); | ||
return Marionette.ItemView.extend( { | ||
template: Handlebars.compile(template), | ||
initialize: function() { | ||
}, | ||
events : { | ||
} | ||
}); | ||
}); |
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
Oops, something went wrong.