-
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.
Changes to serializers. Work on Projects page. Page styling work.
modified: app/assets/javascripts/angular/controllers/projects.js modified: app/assets/javascripts/angular/directives/directives.js modified: app/assets/javascripts/angular/services/angularjs-rails-resource.js modified: app/assets/javascripts/angular/services/services.js modified: app/assets/stylesheets/_layout.css.scss modified: app/assets/templates/listen.html modified: app/assets/templates/project_details.html modified: app/controllers/api/callbacks_controller.rb modified: app/controllers/projects_controller.rb modified: app/models/project.rb modified: app/serializers/analysis_item_serializer.rb modified: app/serializers/analysis_job_serializer.rb modified: app/serializers/analysis_script_serializer.rb modified: app/serializers/audio_event_serializer.rb modified: app/serializers/audio_event_tag_serializer.rb modified: app/serializers/audio_recording_serializer.rb modified: app/serializers/common_attributes.rb new file: app/serializers/project_serializer.rb new file: app/serializers/site_serializer.rb
- Loading branch information
Mark Cottman-Fields
committed
Dec 19, 2012
1 parent
e7aa3d3
commit c4d227f
Showing
19 changed files
with
112 additions
and
31 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
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
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
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
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
require 'common_attributes' | ||
|
||
|
||
class AudioRecordingSerializer < CommonAttributesSerializer | ||
attributes :bit_rate_bps, :channels, :data_length_bytes, | ||
:duration_seconds, :file_hash, :media_type, :notes, | ||
:recorded_date, :sample_rate_hertz, :status, :uploader_id, | ||
:site_id, :uuid, :id | ||
|
||
|
||
end | ||
|
||
|
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,16 @@ | ||
require 'common_attributes' | ||
|
||
class SitesInProjectSerializer < CommonAttributesSerializer | ||
attributes :id, :name | ||
end | ||
|
||
class PhotosInProjectSerializer < CommonAttributesSerializer | ||
attributes :id, :description, :uri, :copyright | ||
end | ||
|
||
class ProjectSerializer < CommonAttributesSerializer | ||
attributes :id, :name, :description, :urn, :notes | ||
|
||
has_many :sites, :serializer => SitesInProjectSerializer | ||
has_many :photos, :serializer => PhotosInProjectSerializer | ||
end |
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,6 @@ | ||
require 'common_attributes' | ||
|
||
class SiteSerializer < CommonAttributesSerializer | ||
attributes :id, :name, :latitude, :longitude, :notes | ||
|
||
end |