Skip to content

Commit d8c2e2c

Browse files
committed
minor fixes
- fixed path root on new views - better plurals - layout tweaks
1 parent eae7346 commit d8c2e2c

File tree

8 files changed

+9
-7
lines changed

8 files changed

+9
-7
lines changed

src/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"dotenv": "9.0.2",
4040
"ping": "0.4.1",
4141
"@slack/bolt": "3.4.0",
42-
"timebelt": "https://github.com/shukriadams/timebelt.git#0.1.16",
42+
"timebelt": "https://github.com/shukriadams/timebelt.git#0.1.17",
4343
"winston-wrapper": "https://github.com/shukriadams/winston-wrapper.git#0.1.0",
4444
"madscience-fsUtils": "https://github.com/shukriadams/node-fsUtils.git#0.0.12",
4545
"madscience-httputils": "https://github.com/shukriadams/node-httpUtils.git#0.0.8",

src/public/css/overrides.css

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ x-columns {
104104
background-color: var(--color-ebonyClay);
105105
position: relative;
106106
z-index: 1; /* menu in headers can float over body content */
107+
overflow: hidden;
107108
}
108109

109110
.layout-header a {

src/routes/watcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = express => {
125125
totalDownTime : timebelt.minutesToPeriodString(totalDownTime),
126126
watcherRuntime : startDate ? timebelt.timespanString(new Date(), startDate, ' days', ' hours', ' minutes', ' seconds') : null,
127127
page : arrayHelper.toPage(files, page, settings.pageSize),
128-
baseurl : `/watcher/${watcher.__safeId}?`,
128+
baseurl : `${settings.rootpath}watcher/${watcher.__safeId}?`,
129129
rootpath: settings.rootpath
130130
}))
131131

src/views/helpers/pluralizer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = Handlebars => {
22
Handlebars.registerHelper('pluralizer', (count, word)=>{
3-
return `${word}${count > 1 ? 's': ''}`
3+
return `${word}${count === 1 ? '': 's'}`
44
})
55
}

src/views/pages/invalidDashboard.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{#extend "layout"}}
22
{{#content "body"}}
33
<div class="dashboard-message">
4-
<strong>"{{title}}"</strong> isn't a valid dashboard. Would you like to try <a href="/dashboard/{{dashboard.__safeId}}">{{dashboard.name}}</a> instead?
4+
<strong>"{{title}}"</strong> isn't a valid dashboard. Would you like to try <a href="{{../rootpath}}dashboard/{{dashboard.__safeId}}">{{dashboard.name}}</a> instead?
55
</div>
66
{{/content}}
77
{{/extend}}

src/views/pages/watcher.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{{#if dashboardsWithWatcher}}
2727
<div class="quiet">On dashboards</div>
2828
{{#each dashboardsWithWatcher}}
29-
<a href="/dashboard/{{__safeId}}">{{name}}</a>
29+
<a href="{{../rootpath}}dashboard/{{__safeId}}">{{name}}</a>
3030
{{/each}}
3131
{{/if}}
3232
</x-card>

src/views/partials/layout.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<div class="layout-footer">
4040
{{{block "footer"}}}
4141
</div>
42+
4243
<script src="{{rootpath}}content/js/bootstrip.js"></script>
4344
<script src="{{rootpath}}content/js/base.js"></script>
4445

0 commit comments

Comments
 (0)