-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on adding event cards to markers on map
- Loading branch information
Bryce Frost
committed
Dec 4, 2015
1 parent
e792807
commit df7c77c
Showing
7 changed files
with
137 additions
and
73 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<h1>{{eventdata.sport}}</h1> | ||
<div class="row "> | ||
<div class="col-md-2"> | ||
<a href="#"> | ||
<img class="img-responsive" style="width:100px; height:100px" src="{{getImage()}}"> | ||
</a> | ||
</div> | ||
<div class="col-md-4"> | ||
<h5>{{eventdata.name}}</h5> | ||
<span>{{eventdata.host}}</span> | ||
<div> | ||
<span>{{eventdata.date}}</span><span>{{eventdata.time}}</span> | ||
</div> | ||
<div> | ||
<span>{{eventdata.location.name}}</span> | ||
</div> | ||
</div> | ||
<div class="col-md-2"> | ||
<a class="btn btn-success" ui-sref="eventDetail({id: eventdata._id})">Check it Out</a> | ||
</div> | ||
</div> | ||
|
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,17 @@ | ||
app.directive('eventCard', function(Utils) { | ||
return { | ||
restrict: 'E', | ||
scope: { | ||
eventdata: '=' | ||
}, | ||
templateUrl: '/js/common/directives/event-card/event-card.html', | ||
link: function(scope, element, attrs){ | ||
var defaultImages = Utils.defaultImages; | ||
scope.getImage = function() { | ||
// type = type.toLowerCase(); | ||
// console.log(type); | ||
return defaultImages[scope.eventdata.sport.toLowerCase()]; | ||
} | ||
} | ||
} | ||
}); |
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
2 changes: 1 addition & 1 deletion
2
browser/js/common/directives/search-filters/search-filters.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
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,13 +1,21 @@ | ||
<div class="row-fluid"> | ||
<div class="col-md-6"> | ||
<ui-gmap-google-map center='map.center' zoom='map.zoom'></ui-gmap-google-map> | ||
<div class="row-fluid" style="margin-bottom: 0"> | ||
<div class="col-md-6" style="margin: 0; padding: 0"> | ||
<ui-gmap-google-map center='map.center' zoom='map.zoom'> | ||
<ui-gmap-marker ng-repeat="event in events" coords="event.location.coords" options="{title: event.name}" mouseover="showEventDetails(event)" idkey="event._id"> | ||
<ui-gmap-window isIconVisibleOnClick="true"> | ||
<event-card eventdata="event"></event-card> | ||
</ui-gmap-window> | ||
</ui-gmap-marker> | ||
</ui-gmap-google-map> | ||
</div> | ||
<div class="col-md-6"> | ||
<search-filters></search-filters> | ||
<div id="eventsList" overflow-y="scroll"> | ||
<div ng-repeat="event in events"> | ||
<event-detail eventdata="event"></event-detail> | ||
<div class="col-md-6" style="margin: 0; padding: 0"> | ||
<div class="well" style="background-color: #404040"> | ||
<search-filters></search-filters> | ||
<div id="eventsList" style="overflow-y: scroll; height: 690px"> | ||
<div ng-repeat="event in events"> | ||
<event-detail eventdata="event"></event-detail> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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