mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Merge branch 'filter-urls' of github.com:nature/pa11y-dashboard into develop
Conflicts: view/partial/tasks.html
This commit is contained in:
@@ -16,23 +16,37 @@ along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
}}
|
}}
|
||||||
{{#content "title"}}pa11y-dashboard{{/content}}
|
{{#content "title"}}pa11y-dashboard{{/content}}
|
||||||
|
|
||||||
{{#if siteMessage}}
|
<div data-control="task-list">
|
||||||
<div class="col-md-12 clearfix" data-test="alert">
|
|
||||||
<div class="alert alert-info site-message">
|
|
||||||
<h3 class="crunch-top"><span class="pull-left glyphicon glyphicon-exclamation-sign"></span> Important</h3>
|
|
||||||
<p class="h5">{{siteMessage}}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#deleted}}
|
<div class="clearfix">
|
||||||
<div class="col-md-12 clearfix" data-test="alert">
|
<div class="col-md-6 col-md-offset-3 filter-toggle no-js-hide text-center">
|
||||||
<div class="alert alert-info">
|
<label for="filter-input" class="filter-trigger" data-toggle="collapse" data-target="#filter-input">Filter<span class="glyphicon glyphicon-filter"></span>
|
||||||
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
</label>
|
||||||
<strong>Bye Bye URL</strong>
|
<div id="filter-input" class="collapse">
|
||||||
<p>The URL you selected and its associated results have been deleted.</p>
|
<input class="form-control" id="task-filter" type="text" data-role="input" placeholder="Type filter term (name or standard)"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/deleted}}
|
</div>
|
||||||
|
|
||||||
{{> tasks}}
|
{{#if siteMessage}}
|
||||||
|
<div class="col-md-12 clearfix" data-test="alert">
|
||||||
|
<div class="alert alert-info site-message">
|
||||||
|
<h3 class="crunch-top"><span class="pull-left glyphicon glyphicon-exclamation-sign"></span> Important</h3>
|
||||||
|
<p class="h5">{{siteMessage}}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{#deleted}}
|
||||||
|
<div class="col-md-12 clearfix" data-test="alert">
|
||||||
|
<div class="alert alert-info">
|
||||||
|
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
||||||
|
<strong>Bye Bye URL</strong>
|
||||||
|
<p>The URL you selected and its associated results have been deleted.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/deleted}}
|
||||||
|
|
||||||
|
{{> tasks}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
@@ -15,61 +15,49 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
along with pa11y-dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div data-control="task-list">
|
<ul class="list-unstyled clearfix crunch-bottom">
|
||||||
|
<li class="col-md-4 col-sm-6 task-card add-task">
|
||||||
<div class="col-md-6 col-md-offset-3 filter-toggle no-js-hide text-center">
|
{{#if readonly}}
|
||||||
<label for="filter-input" class="filter-trigger" data-toggle="collapse" data-target="#filter-input">Filter<span class="glyphicon glyphicon-filter"></span>
|
<span class="well task-card-link crunch-bottom">
|
||||||
</label>
|
<p class="h3 crunch">Add new URL</p>
|
||||||
<div id="filter-input" class="collapse">
|
<p class="supersize-me crunch">+</p>
|
||||||
<input class="form-control" id="task-filter" type="text" data-role="input" placeholder="Type filter term (name or standard)"/>
|
</span>
|
||||||
</div>
|
{{else}}
|
||||||
</div>
|
<a class="well task-card-link crunch-bottom" data-role="add-task" href="/new" data-test="add-task">
|
||||||
|
<p class="h3 crunch">Add new URL</p>
|
||||||
<ul class="list-unstyled clearfix crunch-bottom">
|
<p class="supersize-me crunch">+</p>
|
||||||
<li class="col-md-4 col-sm-6 task-card add-task">
|
</a>
|
||||||
{{#if readonly}}
|
{{/if}}
|
||||||
<span class="well task-card-link crunch-bottom">
|
</li>
|
||||||
<p class="h3 crunch">Add new URL</p>
|
{{#each tasks}}
|
||||||
<p class="supersize-me crunch">+</p>
|
<li class="col-md-4 col-sm-6 task-card" data-test="task" data-role="task" data-keywords="{{lowercase name}} {{lowercase standard}} {{simplify-url url}}">
|
||||||
</span>
|
<a class="well task-card-link crunch-bottom" title="Details for URL {{simplify-url url}}" href="{{href}}">
|
||||||
{{else}}
|
<p class="h3">{{name}}</p>
|
||||||
<a class="well task-card-link crunch-bottom" data-role="add-task" href="/new" data-test="add-task">
|
<p class="h5">({{standard}})</p>
|
||||||
<p class="h3 crunch">Add new URL</p>
|
{{#if lastResult}}
|
||||||
<p class="supersize-me crunch">+</p>
|
<ul class="clearfix list-unstyled floated-list task-stats">
|
||||||
</a>
|
{{#lastResult}}
|
||||||
{{/if}}
|
<li class="danger" title="Number of errors ({{count.error}})">{{count.error}}<span class="stat-type">Errors</span></li>
|
||||||
|
<li class="warning" title="Number of warnings ({{count.warning}})">{{count.warning}}<span class="stat-type">Warnings</span></li>
|
||||||
|
<li class="info last" title="Number of notices ({{count.notice}})">{{count.notice}}<span class="stat-type">Notices</span></li>
|
||||||
|
{{/lastResult}}
|
||||||
|
</ul>
|
||||||
|
Last run {{date-format lastResult.date format="DD MMM YYYY"}}
|
||||||
|
{{else}}
|
||||||
|
<p class="no-results">No results</p>
|
||||||
|
{{/if}}
|
||||||
|
</a>
|
||||||
|
{{#unless ../readonly}}
|
||||||
|
<div class="btn-group options-button text-right">
|
||||||
|
<button type="button" class="btn btn-info btn-xs dropdown-toggle" data-toggle="dropdown"><span class="sr-only">Options</span><span class="glyphicon glyphicon-cog"></span></button>
|
||||||
|
<ul class="dropdown-menu pull-right" role="menu">
|
||||||
|
<li><a href="{{href}}/edit">Edit this task</a></li>
|
||||||
|
<li><a href="{{href}}/delete">Delete this task</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="{{href}}/run" data-test="run-task">Run pa11y</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{/unless}}
|
||||||
</li>
|
</li>
|
||||||
{{#each tasks}}
|
{{/each}}
|
||||||
<li class="col-md-4 col-sm-6 task-card" data-test="task" data-role="task" data-keywords="{{lowercase name}} {{lowercase standard}} {{simplify-url url}}">
|
</ul>
|
||||||
<a class="well task-card-link crunch-bottom" title="Details for URL {{simplify-url url}}" href="{{href}}">
|
|
||||||
<p class="h3">{{name}}</p>
|
|
||||||
<p class="h5">({{standard}})</p>
|
|
||||||
{{#if lastResult}}
|
|
||||||
<ul class="clearfix list-unstyled floated-list task-stats">
|
|
||||||
{{#lastResult}}
|
|
||||||
<li class="danger" title="Number of errors ({{count.error}})">{{count.error}}<span class="stat-type">Errors</span></li>
|
|
||||||
<li class="warning" title="Number of warnings ({{count.warning}})">{{count.warning}}<span class="stat-type">Warnings</span></li>
|
|
||||||
<li class="info last" title="Number of notices ({{count.notice}})">{{count.notice}}<span class="stat-type">Notices</span></li>
|
|
||||||
{{/lastResult}}
|
|
||||||
</ul>
|
|
||||||
Last run {{date-format lastResult.date format="DD MMM YYYY"}}
|
|
||||||
{{else}}
|
|
||||||
<p class="no-results">No results</p>
|
|
||||||
{{/if}}
|
|
||||||
</a>
|
|
||||||
{{#unless ../readonly}}
|
|
||||||
<div class="btn-group options-button text-right">
|
|
||||||
<button type="button" class="btn btn-info btn-xs dropdown-toggle" data-toggle="dropdown"><span class="sr-only">Options</span><span class="glyphicon glyphicon-cog"></span></button>
|
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
|
||||||
<li><a href="{{href}}/edit">Edit this task</a></li>
|
|
||||||
<li><a href="{{href}}/delete">Delete this task</a></li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li><a href="{{href}}/run" data-test="run-task">Run pa11y</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{{/unless}}
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
Reference in New Issue
Block a user