Skip to content

Commit b2e3def

Browse files
committed
fix(roadmap): Show that an milestone is delivered when the status is closed
1 parent 1af6102 commit b2e3def

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

config/express.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ module.exports = async app => {
2929
extname: '.hbs',
3030
defaultLayout: 'main',
3131
helpers: {
32-
moment: input => {
33-
return moment(input).format('MMMM Do YYYY')
34-
}
32+
moment: input => moment(input).format('MMMM Do YYYY'),
33+
eq: (current, state) => state === current
3534
}
3635
})
3736
)

package-lock.json

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

views/home.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ul class="list-group list-group-flush">
99
{{#each issues}}
1010
<a href="{{web_url}}" class="list-group-item list-group-item-action">{{title}}
11-
<small>#{{iid}}</small>
11+
<small>#{{iid}} {{#if (eq state "closed")}}(delivered){{/if}}</small>
1212
</a>
1313
{{/each}} {{#if noIssues}}
1414
<li class="list-group-item">No Milestones</li>

views/layouts/main.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
{{{config.copyright}}}
9898
</span>
9999
<span class="text-muted float-right">
100-
Powered by
100+
by
101101
<a href="https://github.com/filiosoft/gitlab-roadmap">GitLab Roadmap</a>
102102
</span>
103103
</div>

0 commit comments

Comments
 (0)