-
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.
updated project, site, photo, recording views
- Loading branch information
Showing
29 changed files
with
297 additions
and
213 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
'use strict' | ||
"use strict"; | ||
|
||
//angular.module('home', []).config(function ($routeProvider, $httpProvider) { | ||
// | ||
|
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,11 @@ | ||
"use strict"; | ||
function PhotoCtrl($scope, $resource) { | ||
|
||
var photoResource = $resource('/photos/:photoId', {photoId: '@id'}, { | ||
get: { method:'GET', params:{photoId: '@id'}, isArray: false } | ||
}); | ||
|
||
$scope.project = photoResource.get({photoId:1}); | ||
} | ||
|
||
PhotoCtrl.$inject = ['$scope', '$resource'] |
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,7 @@ | ||
"use strict"; | ||
function PhotosCtrl($scope, $resource) { | ||
$scope.photosResource = $resource('/photos', {}, { get: { method:'GET', params:{}, isArray: true }}); | ||
$scope.photos = $scope.photosResource.get(); | ||
} | ||
|
||
PhotosCtrl.$inject = ['$scope', '$resource']; |
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,15 +1,11 @@ | ||
'use strict' | ||
"use strict"; | ||
function ProjectCtrl($scope, $resource) { | ||
|
||
|
||
function ProjectCtrl($scope, $http) { | ||
|
||
$http.get('projects.json').success(function(data) { | ||
$scope.projectList = data; | ||
var projectResource = $resource('/projects/:projectId', {projectId: '@id'}, { | ||
get: { method:'GET', params:{projectId: '@id'}, isArray: false } | ||
}); | ||
|
||
|
||
|
||
$scope.ProjectName = "boobs r us"; | ||
|
||
|
||
$scope.project = projectResource.get({projectId:1}); | ||
} | ||
|
||
ProjectCtrl.$inject = ['$scope', '$resource']; |
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,7 @@ | ||
"use strict"; | ||
function ProjectsCtrl($scope, $resource) { | ||
$scope.projectsResource = $resource('/projects', {}, { get: { method:'GET', params:{}, isArray: true }}); | ||
$scope.projects = $scope.projectsResource.get(); | ||
} | ||
|
||
ProjectsCtrl.$inject = ['$scope', '$resource']; |
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,11 @@ | ||
"use strict"; | ||
function RecordingCtrl($scope, $resource) { | ||
|
||
var recordingResource = $resource('/audio_recordings/:recordingId', {recordingId: '@id'}, { | ||
get: { method:'GET', params:{recordingId: '@id'}, isArray: false } | ||
}); | ||
|
||
$scope.recording = recordingResource.get({recordingId:1}); | ||
} | ||
|
||
RecordingCtrl.$inject = ['$scope', '$resource'] |
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,7 @@ | ||
"use strict"; | ||
function RecordingsCtrl($scope, $resource) { | ||
$scope.recordingsResource = $resource('/audio_recordings', {}, { get: { method:'GET', params:{}, isArray: true }}); | ||
$scope.recordings = $scope.recordingsResource.get(); | ||
} | ||
|
||
RecordingsCtrl.$inject = ['$scope', '$resource']; |
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,12 @@ | ||
'use strict' | ||
"use strict"; | ||
|
||
function SiteCtrl($scope, $resource) { | ||
|
||
function SiteCtrl($scope) { | ||
|
||
$scope.name = "farts r us"; | ||
|
||
var siteResource = $resource('/sites/:siteId', {siteId: '@id'}, { | ||
get: { method:'GET', params:{siteId: '@id'}, isArray: false } | ||
}); | ||
|
||
$scope.site = siteResource.get({siteId:1}); | ||
} | ||
|
||
SiteCtrl.$inject = ['$scope', '$resource']; |
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,7 @@ | ||
"use strict"; | ||
function SitesCtrl($scope, $resource) { | ||
$scope.sitesResource = $resource('/sites', {}, { get: { method:'GET', params:{}, isArray: true }}); | ||
$scope.sites = $scope.sitesResource.get(); | ||
} | ||
|
||
SitesCtrl.$inject = ['$scope', '$resource']; |
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
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 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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<h1>This is a test</h1> | ||
<h2>Welcome</h2> | ||
|
||
<p>{{welcomeMessage}}</p> | ||
<p>{{welcomeMessage}}</p> | ||
|
||
<a href="#/projects/" >fun times</a> | ||
<a href="#/site/" >funny times</a> | ||
<a href="#/projects">Projects</a> | ||
<a href="#/sites">Sites</a> | ||
<a href="#/photos">Photos</a> | ||
<a href="#/recordings">Audio Recordings</a> |
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 @@ | ||
<div id="content" data-ng-controller="PhotoCtrl"> | ||
<h2>Photo</h2> | ||
|
||
<p>The details for a site.</p> | ||
|
||
<a href="#/photos" >Photos</a> | ||
<a href="#" >Home</a> | ||
|
||
<h3><a data-ng-href="#/photo/{{id}}" title="source: {{photo.uri}}">{{photo.name}}</a></h3> | ||
<p data-ng-bind="photo.description" ></p> | ||
<p data-ng-bind="photo.copyright" ></p> | ||
<small>{{photo.updated_at}}</small> | ||
</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,19 @@ | ||
<div id="content" data-ng-controller="PhotosCtrl"> | ||
<h1>Photo List</h1> | ||
|
||
<p>These are the available photos.</p> | ||
|
||
<a href="#/">Home</a> | ||
|
||
<ul> | ||
<li data-ng-repeat="photo in photos"> | ||
<div> | ||
<h3><a data-ng-href="#/photo/{{id}}" title="source: {{photo.uri}}">{{photo.name}}</a></h3> | ||
<p data-ng-bind="photo.description" ></p> | ||
<p data-ng-bind="photo.copyright" ></p> | ||
<small>{{photo.updated_at}}</small> | ||
</div> | ||
</li> | ||
|
||
</ul> | ||
</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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
<h1>This is a project listing</h1> | ||
<div id="content" data-ng-controller="ProjectCtrl"> | ||
<h2>Project</h2> | ||
|
||
<p>{{ProjectName}}</p> | ||
<p>The details for a project.</p> | ||
|
||
<ul> | ||
<li ng-repeat="project in projectList"> | ||
<div> | ||
<h3>{{project.name}}</h3> | ||
<p ng-bind="project.description" ></p> | ||
<a ng-href="{{project.urn}}">{{project.urn}}</a> | ||
<a href="#/projects">Projects</a> | ||
<a href="#/">Home</a> | ||
|
||
<pre>{{project.notes}}</pre> | ||
|
||
<small>{{updated_at}}</small> | ||
|
||
</div> | ||
</li> | ||
|
||
</ul> | ||
<a href="#/" >less fun times</a> | ||
<h3><a ng-href="{{project.urn}}">{{project.name}}</a></h3> | ||
<p ng-bind="project.description" ></p> | ||
<pre>{{project.notes}}</pre> | ||
<small>{{updated_at}}</small> | ||
</div> |
Oops, something went wrong.