Issue 35 - Change Notifications to Notices

This commit is contained in:
perryharlock
2013-09-25 14:50:19 +01:00
parent 2ed29319f8
commit b7b4acfa9e
6 changed files with 14 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@@ -39,7 +39,7 @@ $(document).ready(function(){
}
};
// Toggle appearance of lists of error/warnings/notifications
// Toggle appearance of lists of error/warnings/notices
expandLink.click( function(){
$(this).parent().next().slideToggle('slow', function(){});
if ($(this).parent().hasClass('showing')) {
@@ -131,7 +131,7 @@ $(document).ready(function(){
return [
{ color: "rgb(231, 76, 60)", label: "Errors", data: data.error },
{ color: "rgb(243, 156, 18)", label: "Warnings", data: data.warning },
{ color: "rgb(52, 152, 219)", label: "Notifications", data: data.notification }
{ color: "rgb(52, 152, 219)", label: "Notices", data: data.notice }
];
}

View File

@@ -117,7 +117,7 @@
background-color:@brand-warning;
color:@btn-default-color;
}
.info, .notification {
.info, .notice {
background-color:@brand-info;
color:@btn-default-color;
}

View File

@@ -5,7 +5,7 @@
<th>Date</th>
<th class="text-center">Errors</th>
<th class="text-center">Warnings</th>
<th class="text-center">Notifications</th>
<th class="text-center">Notices</th>
</tr>
</thead>
<tbody>
@@ -14,7 +14,7 @@
<td data-role="category">{{date-format date format="DD MMM YYYY"}}</td>
<td class="text-center" data-label="error">{{count.error}}</td>
<td class="text-center" data-label="warning">{{count.warning}}</td>
<td class="text-center" data-label="notification">{{count.notice}}</td>
<td class="text-center" data-label="notice">{{count.notice}}</td>
</tr>
{{/results}}
</tbody>

View File

@@ -16,7 +16,7 @@
{{#lastResult}}
<li class="danger" title="Number of errors ({{count.error}})">{{count.error}}</li>
<li class="warning" title="Number of warnings ({{count.warning}})">{{count.warning}}</li>
<li class="info last" title="Number of notifications ({{count.notice}})">{{count.notice}}</li>
<li class="info last" title="Number of notices ({{count.notice}})">{{count.notice}}</li>
{{/lastResult}}
</ul>
Last run {{date-format lastResult.date format="DD MMM YYYY"}}

View File

@@ -68,7 +68,7 @@
{{#lastResult}}
<li class="danger"><a href="#errors" title="See errors">{{count.error}}</a></li>
<li class="warning"><a href="#warnings" title="See warnings">{{count.warning}}</a></li>
<li class="info last"><a href="#notifications" title="See notifications">{{count.notice}}</a></li>
<li class="info last"><a href="#notices" title="See notices">{{count.notice}}</a></li>
{{/lastResult}}
</ul>
</div>
@@ -122,7 +122,7 @@
<a class="pull-right" href="#top" data-role="top">Back to top</a>
</div>
{{else}}
<p class="heading label-danger">Well done! You have 0 errors. <span class="glyphicon glyphicon-ok pull-right"></span></p>
<p class="heading label-danger" id="errors">Well done! You have 0 errors. <span class="glyphicon glyphicon-ok pull-right"></span></p>
{{/if}}
{{#if lastResult.count.warning}}
@@ -143,13 +143,13 @@
</div>
{{else}}
<p class="heading label-warning">Well done! You have 0 warnings. <span class="glyphicon glyphicon-ok pull-right"></span></p>
<p class="heading label-warning" id="warnings">Well done! You have 0 warnings. <span class="glyphicon glyphicon-ok pull-right"></span></p>
{{/if}}
{{#if lastResult.count.notice}}
<div class="heading label-info" id="notifications">
<div class="heading label-info" id="notices">
<span data-role="expander" class="pull-right expander"> + </span>
Notifications ( {{lastResult.count.notice}} )
Notices ( {{lastResult.count.notice}} )
</div>
<div class="task-info tasks-list collapse clearfix">
<ul class="list-unstyled">
@@ -163,7 +163,7 @@
<a class="pull-right" href="#top" data-role="top">Back to top</a>
</div>
{{else}}
<p class="heading label-warning">Well done! You have 0 notices. <span class="glyphicon glyphicon-ok pull-right"></span></p>
<p class="heading label-warning" id="notices">Well done! You have 0 notices. <span class="glyphicon glyphicon-ok pull-right"></span></p>
{{/if}}
<div class="heading label-default">
@@ -183,7 +183,7 @@
{{else}}
<div class="alert alert-info">
<h4>No results to show</h4>
<h4>There are no results to show</h4>
<p>pa11y has not been run against this URL yet so there are no results to show.</p>
<p>To run pa11y for this URL now <a href="">click here</a></p>
</div>