Skip to content
This repository was archived by the owner on Jul 31, 2019. It is now read-only.

Commit 9da0d18

Browse files
committed
Change updates page to changelog
1 parent d2d3edc commit 9da0d18

File tree

9 files changed

+11
-36
lines changed

9 files changed

+11
-36
lines changed

lib/routes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = (server) => {
4141

4242
routes.push({
4343
method: 'GET',
44-
path: '/updates',
44+
path: '/changelog',
4545
options: {
4646
pre: [
4747
[
@@ -75,7 +75,7 @@ module.exports = (server) => {
7575
}
7676
}
7777

78-
return reply.view('updates', { ...request.pre, editLink: `${editLinkPrefix}/templates/updates.pug` });
78+
return reply.view('changelog', { ...request.pre, editLink: `${editLinkPrefix}/templates/changelog.pug` });
7979
}
8080
}
8181
});

public/css/main.css

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

public/css/main.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
@import 'sections/github'
2424
@import 'sections/api'
2525
@import 'sections/plugins'
26-
@import 'sections/updates'
26+
@import 'sections/changelog'
File renamed without changes.

public/css/sections/github.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
fill: $gray
3232

3333
.contributing,
34-
.github-updates
34+
.github-changelog
3535

3636
h3
3737
margin-top: 0

templates/updates.pug renamed to templates/changelog.pug

+1-26
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,7 @@ block content
1414
p During the last week we’ve closed <strong>#{issues.length} #{issueString}</strong>, merged <strong>#{pullRequests.length} #{pullRequestString}</strong> and pushed <strong>#{commits.length} #{commitString}</strong> to master branch.
1515

1616
p If you want information about modules releases in the ecosystem other than the core hapi module, you can look into issues in their respective repositories. They are labelled with <strong>release notes</strong> or <strong>breaking changes</strong> for major releases, otherwise for the minor releases check the issues <strong>milestones</strong>.
17-
18-
.cf.contain.content
19-
.column.pull-request-list
20-
header.cf
21-
h4.pull-left Merged pull requests
22-
a.pull-right(href='https://github.com/hapijs/hapi/pulls', title='See all pull requests') See all
23-
24-
ul.unstyled
25-
each pullRequest in pullRequests.slice(0, 5)
26-
li
27-
p.pull-request-number
28-
a(href=`${pullRequest.html_url}`) ##{pullRequest.number}
29-
p.pull-request-title= pullRequest.title
30-
31-
.column.closed-issues-list
32-
header.cf
33-
h4.pull-left Closed issues
34-
a.pull-right(href='https://github.com/hapijs/hapi/issues?page=1&state=open', title='See all issues') See all
35-
36-
ul.unstyled
37-
each issue in issues.slice(0, 5)
38-
li
39-
p.issue-number
40-
a(href=`${issue.html_url}`) ##{issue.number}
41-
p.issue-title= issue.title
42-
17+
4318
section.bottom-rule.changelog
4419
.contain
4520
h3 Changelog

templates/includes/changelog.pug

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ for milestone, i in milestones
2525

2626
if (limit < 100)
2727
div
28-
a(href='/updates?limit=100' class='button button-primary') Show all
28+
a(href='/changelog?limit=100' class='button button-primary') Show all

templates/includes/footer.pug

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ footer(role='contentinfo')
44
nav(role='navigation')
55
ul.unstyled
66
li
7-
a(href='/updates', title='Latest Updates') Updates
7+
a(href='/changelog', title='Changelog') Changelog
88
li
99
a(href='/tutorials', title='Tutorials') Tutorials
1010
li

templates/includes/navigation.pug

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ nav.animated.fadeInDown(role='navigation')
55
a.logo(href='/', title='← Back to home of hapi')
66

77
ul.nav-collapse.unstyled
8-
li
9-
a(href='/updates', title='Updates') Updates
10-
li
8+
li
9+
a(href='/changelog', title='Changelog') Changelog
10+
li
1111
a(href='/tutorials', title='Tutorials') Tutorials
1212
li
1313
a(href='/api', title='API Reference') API

0 commit comments

Comments
 (0)