Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Finish v1.0alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilco Fiers committed Aug 14, 2014
1 parent d34b1e1 commit 350a298
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ angular.module('wcagReporter', [
titleElm.text(prefix + title);
return title;
};
$rootScope.rootHide = {};

$rootScope.rootHide = {};
appState.init();

});
13 changes: 12 additions & 1 deletion app/scripts/directives/successCriterion.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

angular.module('wcagReporter').directive(
'successCriterion', function (directivePlugin, $filter) {
var uniqueNum = 0,
var uniqueNum = 0, className,
outcomes = ['earl:untested', 'earl:passed',
'earl:failed', 'earl:inapplicable',
'earl:cantTell']
Expand All @@ -13,6 +13,13 @@ angular.module('wcagReporter').directive(
};
});

className = {
'earl:untested': 'panel-default',
'earl:passed': 'panel-success',
'earl:failed': 'panel-danger',
'earl:inapplicable': 'panel-info',
'earl:cantTell': 'panel-warning'
};

return directivePlugin({
restrict: 'E',
Expand All @@ -27,6 +34,10 @@ angular.module('wcagReporter').directive(
link: function (scope) {
scope.desc = scope.assert.getSpec();
scope.outcomes = outcomes;

scope.getClassName = function (state) {
return className[state];
};
scope.getUnique = function () {
return uniqueNum += 1;
};
Expand Down
1 change: 0 additions & 1 deletion app/views/audit/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ <h2>{{'HD_STRUCT_SAMPLE' | translate }}&nbsp;<info-button
<input-pages pages="structuredSample.webpage" add-page="addPage(structuredSample)"
remove-page="removePage(structuredSample)"></input-pages>


<h2>
{{'HD_RANDOM_SAMPLE' | translate }}&nbsp;<info-button
label="{{'LABEL_INFO' | translate}}" target="inf_rand_sample"></info-button>
Expand Down
18 changes: 4 additions & 14 deletions app/views/audit/test/successCriterion.drt.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
<div class="panel"
ng-class="{
'panel-default': assert.result.outcome == 'earl:untested',
'panel-success': assert.result.outcome == 'earl:passed',
'panel-danger': assert.result.outcome == 'earl:failed',
'panel-info': assert.result.outcome == 'earl:inapplicable',
'panel-warning': assert.result.outcome == 'earl:cantTell'
}">
<div class="panel" ng-class="getClassName(assert.result.outcome)">
<div class="panel-heading"><div class="row">
<div class="col-sm-9">
<strong>{{desc.number}} {{desc.title}}:</strong>
<span class="badge">{{desc.level | rdfToLabel}}</span>
</div>

<div class="col-sm-3"
ng-if="!opt.hideCollapseBtn">
<div class="col-sm-3" ng-if="!opt.hideCollapseBtn">
<button ng-click="flipCollapse()"
class="pull-right btn btn-default"
ng-disabled="!(opt.showallpages === true ||
Expand All @@ -30,12 +22,10 @@
<p>{{ 'SAMPLE_FINDINGS' | translate }}:</p>
</div>
<assert-result options="opt"
class="col-sm-12" assert="assert" />

class="col-sm-12" assert="assert" />
</div></div>

<div collapse="opt.collapsed" class="assert-indent">
<test-case
ng-repeat="tcAssert in getCases() | selectedCasesOnly" />
<test-case ng-repeat="tcAssert in getCases() | selectedCasesOnly" />
</div>
</div>
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wcag-reporter",
"version": "0.0.1",
"name": "WCAG-EM-Report-Tool",
"version": "0.9.0",
"dependencies": {
"angular": "1.2.15",
"json3": "~3.2.6",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wcagreporter",
"version": "0.0.1",
"name": "WCAG-EM-Report-Tool",
"version": "0.9.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
Expand Down

0 comments on commit 350a298

Please sign in to comment.