Skip to content

Commit

Permalink
modified: Gemfile
Browse files Browse the repository at this point in the history
modified:   Gemfile.lock
	-- bumped versions of dependencies

modified:   app/assets/javascripts/angular/directives/directives.js
	-- added debug directive, and improved record_informaition

modified:   app/assets/javascripts/app.js
	-- fixed bug in scope printer

new file:   app/assets/stylesheets/record_information.css.scss
modified:   app/assets/templates/listen.html
modified:   app/assets/templates/project_details.html
modified:   app/assets/templates/record_information.html
	-- general site work
  • Loading branch information
atruskie committed Nov 14, 2012
1 parent 4e0e991 commit 44234a8
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 14 deletions.
17 changes: 14 additions & 3 deletions app/assets/javascripts/angular/directives/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
}
});

bads.directive('recordInformation', function(){
bads.directive('bawRecordInformation', function(){
return {
restrict: 'AE',
/*scope: false,*/
/* priority: ??? */
/* controller: ??? */
/* require: ??? */
/*template: "<div></div>",*/
templateUrl: "/assets/record_information.html"
/*replace: false*/
templateUrl: "/assets/record_information.html",
replace: false
/*compile: function(tElement, tAttrs, transclude) {
},*/
Expand All @@ -28,6 +28,17 @@
}
});

bads.directive('bawDebugInfo', function() {
return {
restrict: 'AE',
replace: true,
template: '<div><a href ng-click="showOrHideDebugInfo= !showOrHideDebugInfo">Debug info {{showOrHideDebugInfo}}</a><pre ui-toggle="showOrHideDebugInfo" class="ui-hide" ng-bind="print()"></pre></div>',
link: function(scope, element, attrs) {

}
}
});

})();

//bawApp.directive('nsDsFade', function() {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var bawApp = angular.module('baw',
$rootScope.print = function () {
var seen = [];
var badKeys = ["$digest", "$$watchers", "$$childHead", "$$childTail", "$$listeners", "$$nextSibling", "$$prevSibling", "$root", "this", "$parent"];
var str = JSON.stringify($rootScope,
var str = JSON.stringify(this,
(function (key, val) {
if (badKeys.indexOf(key) >= 0) {
return "[Can't do that]";
Expand Down
3 changes: 3 additions & 0 deletions app/assets/stylesheets/record_information.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
baw\:record-information {
display: block;
}
5 changes: 2 additions & 3 deletions app/assets/templates/listen.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="content" data-ng-controller="ListenCtrl">
<div id="content" data-ng-controller="ListenCtrl" xmlns:baw="">
<a href="/listen/1bd0d668-1471-4396-adc3-09ccd8fe949a">demo</a>
<a href="#" ng-click="refresh()">demo</a>

Expand Down Expand Up @@ -31,7 +31,6 @@ <h3>Annotations</h3>
</tbody>
</table>

<a href ng-click="showHide= !showHide">Debug info {{showHide}}</a>
<pre ui-toggle="showHide" class="ui-hide" ng-bind="print()"></pre>
<baw:debug-info />

</div>
9 changes: 5 additions & 4 deletions app/assets/templates/project_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ <h3><a ng-href="{{project.urn}}">{{project.name}}</a></h3>
<p ng-bind="project.description" ></p>
<pre>{{project.notes}}</pre>
<small>{{project.updated_at}}</small>
<record-information></record-information>
<!--<baw:record-information></baw:record-information>-->
<baw:record-information></baw:record-information>
<!--<record-information></record-information>-->

<!--<div baw:record-information ></div>-->
<div record-information ></div>
<div baw:record-information ></div>
<ul>
<li data-ng-repeat="site in project.sites">
{{site.id}}
Expand All @@ -23,5 +23,6 @@ <h3><a ng-href="{{project.urn}}">{{project.name}}</a></h3>
</li>
</ul>

<pre ui-toggle="showOrHideDebugInfo" class="ui-hide" ng-bind="print()"></pre>
<!--<pre ui-toggle="showOrHideDebugInfo" class="ui-hide" ng-bind="print()"></pre>-->
<baw:debug-info />
</div>
4 changes: 1 addition & 3 deletions app/assets/templates/record_information.html
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
<div>
modified<span>{{{project.updated_at}}</span>&nbsp;created<span></span>&nbsp;archived<span></span>
</div>
modified<span>{{project.updated_at}}</span>&nbsp;created<span>{{project.created_at}}</span>&nbsp;archived<span>{{project.deleted_at}}</span>

0 comments on commit 44234a8

Please sign in to comment.