mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-24 22:31:15 +00:00
Add the ability to have a site-wide message
This commit is contained in:
@@ -54,6 +54,9 @@ The boot configurations for pa11y-dashboard are as follows. Look at the sample J
|
|||||||
### readonly
|
### readonly
|
||||||
*(boolean)* If set to `true`, users will not be able to add, delete or run URLs (defaults to `false`).
|
*(boolean)* If set to `true`, users will not be able to add, delete or run URLs (defaults to `false`).
|
||||||
|
|
||||||
|
### siteMessage
|
||||||
|
*(string)* A message to display prominently on the site home page. Defaults to `null`.
|
||||||
|
|
||||||
|
|
||||||
Development
|
Development
|
||||||
-----------
|
-----------
|
||||||
|
3
app.js
3
app.js
@@ -54,7 +54,8 @@ function initApp (config, callback) {
|
|||||||
repo: pkg.homepage,
|
repo: pkg.homepage,
|
||||||
bugtracker: pkg.bugs,
|
bugtracker: pkg.bugs,
|
||||||
noindex: config.noindex,
|
noindex: config.noindex,
|
||||||
readonly: config.readonly
|
readonly: config.readonly,
|
||||||
|
siteMessage: config.siteMessage
|
||||||
});
|
});
|
||||||
|
|
||||||
app.express.use(function (req, res, next) {
|
app.express.use(function (req, res, next) {
|
||||||
|
@@ -1,5 +1,13 @@
|
|||||||
{{#content "title"}}pa11y-dashboard{{/content}}
|
{{#content "title"}}pa11y-dashboard{{/content}}
|
||||||
|
|
||||||
|
{{#if siteMessage}}
|
||||||
|
<div class="col-md-12 clearfix">
|
||||||
|
<div class="alert alert-info">
|
||||||
|
<p>{{siteMessage}}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#deleted}}
|
{{#deleted}}
|
||||||
<div class="col-md-12 clearfix">
|
<div class="col-md-12 clearfix">
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
|
Reference in New Issue
Block a user