This repository has been archived by the owner on Dec 28, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
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
6eb9dad
commit 38127b2
Showing
12 changed files
with
140 additions
and
127 deletions.
There are no files selected for viewing
69 changes: 0 additions & 69 deletions
69
app/components/video-list-item/modal/_video-list-item-modal.scss
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
app/components/video-list-item/modal/video-list-item-modal.html
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
app/components/video-list-item/modal/video-list-item-modal.js
This file was deleted.
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
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,73 @@ | ||
.video-page { | ||
|
||
} | ||
|
||
.modal { | ||
.modal-dialog { | ||
@include clearfix; | ||
|
||
position: static; | ||
top: 0; | ||
width: 100%; | ||
margin: 0; | ||
margin-top: 70px; | ||
|
||
.modal-body { | ||
margin: 0 auto; | ||
} | ||
|
||
.close { | ||
position: absolute; | ||
top: -50px; | ||
right: 10px; | ||
font-size: 40px; | ||
background: none; | ||
box-shadow: none; | ||
border: none; | ||
color: #fff; | ||
} | ||
|
||
.modal-video { | ||
// @include span-columns(6 of 10); | ||
|
||
// @include media($tablet) { | ||
@include span-columns(20 of 20); | ||
// } | ||
} | ||
|
||
.modal-video-info { | ||
// @include span-columns(4 of 10); | ||
color: #fff; | ||
padding: $content-gutter 0; | ||
|
||
// @include media($tablet) { | ||
@include span-columns(20 of 20); | ||
// } | ||
|
||
h2 { | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
button.favorite { | ||
float: left; | ||
vertical-align: top; | ||
margin-right: 10px; | ||
margin-top: -5px; | ||
background: none; | ||
border: none; | ||
box-shadow: none; | ||
color: #fff; | ||
font-size: 30px; | ||
padding: 0; | ||
|
||
i.fa-star { | ||
color: $primary-color; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.modal-backdrop { | ||
opacity: 0.8 !important; | ||
} |
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 @@ | ||
<div class="modal-backdrop fade in"> | ||
<div class="modal-body modal-lg video-page"> | ||
<button type="button" class="close" ng-click="closeModal()">×</button> | ||
<div class="modal-video"> | ||
<media-player-component ng-if="video" video="video"></media-player-component> | ||
</div> | ||
<div class="modal-video-info"> | ||
<h2> | ||
{{video.title}} | ||
<button class="favorite has-tooltip" data-toggle="tooltip" data-placement="bottom" title="Set favorite"> | ||
<i class="fa fa-star-o"></i> | ||
</button> | ||
</h2> | ||
<p>{{video.description}}</p> | ||
</div> | ||
</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,21 @@ | ||
'use strict'; | ||
|
||
angular.module('ndc') | ||
.config(function ($stateProvider, stateFactory) { | ||
$stateProvider.state('videoDetails', stateFactory('Video', { | ||
url: '/video/{id}', | ||
views: { | ||
'modal@': { | ||
templateUrl: 'pages/video/index/modal.html', | ||
controller: 'VideoCtrl' | ||
} | ||
} | ||
})); | ||
}) | ||
.controller('VideoCtrl', function ($scope, $stateParams, VideoRepository) { | ||
|
||
VideoRepository.getById($stateParams.id).then(function (video) { | ||
$scope.video = video; | ||
}); | ||
|
||
}); |
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,9 +1,7 @@ | ||
// TODO: Shoudn't need to include config and neat-helpers here - inheritance bug? | ||
@import 'config'; | ||
@import 'neat/app/assets/stylesheets/neat-helpers'; | ||
|
||
@import '../components/navbar/navbar'; | ||
@import '../components/media-player/media-player'; | ||
@import '../components/video-list-item/video-list-item'; | ||
@import '../components/video-list-item/modal/video-list-item-modal'; | ||
@import '../components/navbar-mini-player/navbar-mini-player'; |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use strict'; | ||
|
||
describe('Controller(/video): VideoCtrl', function () { | ||
|
||
var VideoCtrl, scope; | ||
|
||
beforeEach(function () { | ||
|
||
module('ndc'); | ||
|
||
inject(function ($controller, $rootScope) { | ||
scope = $rootScope.$new(); | ||
VideoCtrl = $controller('VideoCtrl', { | ||
$scope: scope, | ||
init: 'video' | ||
}); | ||
}); | ||
}); | ||
|
||
it('should attach init data to scope', function () { | ||
expect(scope.video).toEqual('video'); | ||
}); | ||
}); |