mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-25 14:51:28 +00:00
Issue 35 - Change Notifications to Notices
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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(){
|
expandLink.click( function(){
|
||||||
$(this).parent().next().slideToggle('slow', function(){});
|
$(this).parent().next().slideToggle('slow', function(){});
|
||||||
if ($(this).parent().hasClass('showing')) {
|
if ($(this).parent().hasClass('showing')) {
|
||||||
@@ -131,7 +131,7 @@ $(document).ready(function(){
|
|||||||
return [
|
return [
|
||||||
{ color: "rgb(231, 76, 60)", label: "Errors", data: data.error },
|
{ color: "rgb(231, 76, 60)", label: "Errors", data: data.error },
|
||||||
{ color: "rgb(243, 156, 18)", label: "Warnings", data: data.warning },
|
{ 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 }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -117,7 +117,7 @@
|
|||||||
background-color:@brand-warning;
|
background-color:@brand-warning;
|
||||||
color:@btn-default-color;
|
color:@btn-default-color;
|
||||||
}
|
}
|
||||||
.info, .notification {
|
.info, .notice {
|
||||||
background-color:@brand-info;
|
background-color:@brand-info;
|
||||||
color:@btn-default-color;
|
color:@btn-default-color;
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th class="text-center">Errors</th>
|
<th class="text-center">Errors</th>
|
||||||
<th class="text-center">Warnings</th>
|
<th class="text-center">Warnings</th>
|
||||||
<th class="text-center">Notifications</th>
|
<th class="text-center">Notices</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<td data-role="category">{{date-format date format="DD MMM YYYY"}}</td>
|
<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="error">{{count.error}}</td>
|
||||||
<td class="text-center" data-label="warning">{{count.warning}}</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>
|
</tr>
|
||||||
{{/results}}
|
{{/results}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
{{#lastResult}}
|
{{#lastResult}}
|
||||||
<li class="danger" title="Number of errors ({{count.error}})">{{count.error}}</li>
|
<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="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}}
|
{{/lastResult}}
|
||||||
</ul>
|
</ul>
|
||||||
Last run {{date-format lastResult.date format="DD MMM YYYY"}}
|
Last run {{date-format lastResult.date format="DD MMM YYYY"}}
|
||||||
|
@@ -68,7 +68,7 @@
|
|||||||
{{#lastResult}}
|
{{#lastResult}}
|
||||||
<li class="danger"><a href="#errors" title="See errors">{{count.error}}</a></li>
|
<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="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}}
|
{{/lastResult}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
<a class="pull-right" href="#top" data-role="top">Back to top</a>
|
<a class="pull-right" href="#top" data-role="top">Back to top</a>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{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}}
|
||||||
|
|
||||||
{{#if lastResult.count.warning}}
|
{{#if lastResult.count.warning}}
|
||||||
@@ -143,13 +143,13 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{else}}
|
{{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}}
|
||||||
|
|
||||||
{{#if lastResult.count.notice}}
|
{{#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>
|
<span data-role="expander" class="pull-right expander"> + </span>
|
||||||
Notifications ( {{lastResult.count.notice}} )
|
Notices ( {{lastResult.count.notice}} )
|
||||||
</div>
|
</div>
|
||||||
<div class="task-info tasks-list collapse clearfix">
|
<div class="task-info tasks-list collapse clearfix">
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
<a class="pull-right" href="#top" data-role="top">Back to top</a>
|
<a class="pull-right" href="#top" data-role="top">Back to top</a>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{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}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="heading label-default">
|
<div class="heading label-default">
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
|
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="alert alert-info">
|
<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>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>
|
<p>To run pa11y for this URL now <a href="">click here</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user