Skip to content

Commit ce7669d

Browse files
authored
Merge pull request #461 from mkurz/Play_2.8.11
Play 2.8.11 / Scala 2.13.7
2 parents dd4cbd3 + 8f39783 commit ce7669d

15 files changed

Lines changed: 39 additions & 39 deletions

app/controllers/Application.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ class Application @Inject()(
5151
.map { _ =>
5252
s"""<p class="vulnerability-warning">You are using a version of Play Framework that has a
5353
<a href="${routes.Security.vulnerability("20130806-SessionInjection")}">known vulnerability</a>.</p>
54-
<p>Please upgrade to a later version <a href="${routes.Application.download()}">here</a>.</p>"""
54+
<p>Please upgrade to a later version <a href="${routes.Application.download}">here</a>.</p>"""
5555

5656
}
5757
.orElse {
5858
if (!version.contains(releases.latest.version)) {
5959
Some(s"""Play framework ${releases.latest.version} is out! Check it out <a href="${routes.Application
60-
.download()}">here</a>.""")
60+
.download}">here</a>.""")
6161
} else {
6262
None
6363
}

app/controllers/Outreachy.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import play.api.mvc.ControllerComponents
1111
class Outreachy @Inject()(components: ControllerComponents)(implicit reverseRouter: documentation.ReverseRouter)
1212
extends AbstractController(components) {
1313

14-
def outreachy = Action(Redirect(routes.Outreachy.round15()))
14+
def outreachy = Action(Redirect(routes.Outreachy.round15))
1515

1616
def round10 = Action { implicit req =>
1717
Ok(views.html.outreachy.round10())

app/models/documentation/Sitemap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ case class Sitemap(urls: Seq[SitemapUrl]) {
4040
urls.map { url =>
4141
<url>
4242
<loc>{url.loc}</loc>
43-
<priority>{url.priority.value.formatted("%.2f")}</priority>
43+
<priority>{"%.2f".format(url.priority.value)}</priority>
4444
{
4545
url.alternates.map {
4646
case (lang, href) =>

app/views/allreleases.scala.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ <h2>Release List</h2>
3535
<p>
3636
We recommend that you use the latest version of Play. However, if you need to work with an older version, you will find links on this page. Versions of Play older than 2.2 are packaged in zip files. The traditional Play zip provides a <code>play</code> command to create new applications, run tests,
3737
and run the application. After 2.3.0, the <code>play</code> command was replaced with <code>sbt</code>. Version 2.6.x and 2.7.x projects can be
38-
created from an <a href="@routes.Application.download()">example project or template</a>.
38+
created from an <a href="@routes.Application.download">example project or template</a>.
3939
</p>
4040
<p>
41-
<p class="changelogLink"><a href="@routes.Application.changelog()">See the Changelog</a> for the history of changes in each release.</p>
41+
<p class="changelogLink"><a href="@routes.Application.changelog">See the Changelog</a> for the history of changes in each release.</p>
4242
</p>
4343

4444
@if(releases.development.nonEmpty) {
@@ -47,7 +47,7 @@ <h3>Development versions</h3>
4747
<p>
4848
Previews of releases in the pipeline.
4949
</p>
50-
<p class="changelogLink"><a href="@routes.Application.changelog()">Changelog</a></p>
50+
<p class="changelogLink"><a href="@routes.Application.changelog">Changelog</a></p>
5151
<table>
5252
@for(release <- releases.development) {
5353
<tr>

app/views/code.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>About the code</h1>
3333
<p>If you're looking for the code for the previous Play 1.x series, it's available in another repository:</p>
3434
<pre><code>git clone git://github.com/playframework/play.git</code></pre>
3535
<p>
36-
To contribute, check out the <a href="@routes.Application.contributing()">contributor guide</a> and learn how to <a href="@reverseRouter.latest(None, "BuildingFromSource")">build Play from source</a>.
36+
To contribute, check out the <a href="@routes.Application.contributing">contributor guide</a> and learn how to <a href="@reverseRouter.latest(None, "BuildingFromSource")">build Play from source</a>.
3737
</p>
3838

3939
<h2>License</h2>

app/views/commonSidebar.scala.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<li><a href="@reverseRouter.latest(None, "Requirements")">Play Requirements</a></li>
77
<li><a href="@reverseRouter.latest(None, "NewApplication")">Build your first app</a></li>
88
<li><a href="@reverseRouter.index(None)">Full documentation</a></li>
9-
<li><a href="@routes.Application.changelog()">Change log</a></li>
10-
<li><a href="@routes.Security.index()">Security advisories</a></li>
9+
<li><a href="@routes.Application.changelog">Change log</a></li>
10+
<li><a href="@routes.Security.index">Security advisories</a></li>
1111
</ul>
1212
<@hn>Find help</@hn>
1313
<ul>
@@ -18,13 +18,13 @@
1818
</ul>
1919
<@hn>Contribute</@hn>
2020
<ul>
21-
<li><a href="@routes.Code.index()">Code and contributors</a></li>
21+
<li><a href="@routes.Code.index">Code and contributors</a></li>
2222
<li><a href="https://www.lightbend.com/conduct">Code of conduct</a></li>
23-
<li><a href="@routes.Application.getInvolved()">Get involved</a></li>
24-
<li><a href="@routes.Application.communityProcess()">Community process</a></li>
25-
<li><a href="@routes.Security.index()">Reporting security vulnerabilities</a></li>
23+
<li><a href="@routes.Application.getInvolved">Get involved</a></li>
24+
<li><a href="@routes.Application.communityProcess">Community process</a></li>
25+
<li><a href="@routes.Security.index">Reporting security vulnerabilities</a></li>
2626
</ul>
2727
<@hn>Programs</@hn>
2828
<ul>
29-
<li><a href="@routes.Outreachy.outreachy()">Outreachy</a></li>
29+
<li><a href="@routes.Outreachy.outreachy">Outreachy</a></li>
3030
</ul>

app/views/getInvolved.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h3 class="opencollective">Donate to our Open Collective</h3>
2323
<a href="//opencollective.com/playframework#section-contributors">35+ backers</a>
2424
<p>
2525
Play uses <a href="//opencollective.com/playframework">Open Collective</a> to collect donations from sponsors. These funds are used to pay contributors and cover project costs, openly and transparently.
26-
Individuals and companies alike can support Play financially by <a href="@routes.Application.sponsors()">becoming backers or premium sponsors</a>.
26+
Individuals and companies alike can support Play financially by <a href="@routes.Application.sponsors">becoming backers or premium sponsors</a>.
2727
</p>
2828

2929
<h3 class="mailing">Join the Discuss Play forum</h3>
@@ -61,7 +61,7 @@ <h3 class="patch">Patch the core</h3>
6161
You're welcome to work on any feature you like&mdash;Play is open source after all!&mdash;but if you'd like some good ideas, look for issues tagged with the <a href="//github.com/playframework/playframework/issues?labels=community"><span class="issueLabel">community label</a>. These issues are ready and waiting for volunteers to pick them up.
6262
</p>
6363
<p>
64-
To keep our code tidy and to make sure we work together smoothly there are some <a href="@routes.Application.contributing()">Contributor Guidelines</a> that you'll need to make sure you follow.
64+
To keep our code tidy and to make sure we work together smoothly there are some <a href="@routes.Application.contributing">Contributor Guidelines</a> that you'll need to make sure you follow.
6565
</p>
6666

6767
<h3 class="modules">Create modules</h3>

app/views/index.scala.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>
2424
<div id="actions">
2525
<div id="start">
2626
<h2>Get Started</h2>
27-
<a href="@routes.Application.download()" class="button">Try Play <br> @releases.latest.version@for(name <- releases.latest.name){ "@name"}</a>
27+
<a href="@routes.Application.download" class="button">Try Play <br> @releases.latest.version@for(name <- releases.latest.name){ "@name"}</a>
2828
<p>
2929
or <a href="@routes.Application.allreleases()">browse all versions</a>
3030
</p>
@@ -247,8 +247,8 @@ <h2>They already use Play Framework</h2>
247247
<article id="sponsors-backers">
248248
<h2>Sponsors & Backers</h2>
249249
<p>
250-
If you find Play useful for work, please consider asking your company to support this Open Source project by <a href="@routes.Application.sponsors()">becoming a sponsor</a>.
251-
You can also individually sponsor the project by <a href="@routes.Application.sponsors()">becoming a backer</a>.
250+
If you find Play useful for work, please consider asking your company to support this Open Source project by <a href="@routes.Application.sponsors">becoming a sponsor</a>.
251+
You can also individually sponsor the project by <a href="@routes.Application.sponsors">becoming a backer</a>.
252252
</p>
253253
<div class="donate-button">
254254
<a href="//opencollective.com/playframework">Donate to our Collective</a>

app/views/main.scala.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
<div class="wrapper">
5959
<a href="/" id="logo">Lightbend</a>
6060
<nav id="sections">
61-
<a href="@routes.Application.gettingStarted()">Try Play</a>
61+
<a href="@routes.Application.gettingStarted">Try Play</a>
6262
<a href="@reverseRouter.index(None)">Documentation</a>
63-
<a href="@routes.Application.support()">Support</a>
64-
<a href="@routes.Application.getInvolved()">Get Involved</a>
63+
<a href="@routes.Application.support">Support</a>
64+
<a href="@routes.Application.getInvolved">Get Involved</a>
6565
</nav>
6666
<nav id="social">
6767
<a href="//opencollective.com/playframework"><span>Open Collective</span></a>
@@ -131,15 +131,15 @@ <h3>Community support</h3>
131131
<article class="professional">
132132
<h3>Donate to our Collective</h3>
133133
<ul>
134-
<li><a href="@routes.Application.sponsors()">If you like Play consider becoming a sponsor</a></li>
134+
<li><a href="@routes.Application.sponsors">If you like Play consider becoming a sponsor</a></li>
135135
</ul>
136136
</article>
137137
</div>
138138
<div class="wrapper">
139139
<div>
140140
<h3>Play Framework</h3>
141141
<ul>
142-
<li><a href="@routes.Application.download()">Try Play</a></li>
142+
<li><a href="@routes.Application.download">Try Play</a></li>
143143
<li><a href="@reverseRouter.latest(None, "Tutorials")">Tutorials</a></li>
144144
<li><a href="@reverseRouter.index(None)">Documentation</a></li>
145145
</ul>
@@ -153,9 +153,9 @@ <h3>Community links</h3>
153153
<div>
154154
<h3>Code &amp; contribution</h3>
155155
<ul>
156-
<li><a href="@routes.Code.index()">Code &amp; contributors</a></li>
156+
<li><a href="@routes.Code.index">Code &amp; contributors</a></li>
157157
<li><a href="//github.com/playframework/playframework/issues">Bug tracker <em>GitHub</em></a></li>
158-
<li><a href="@routes.Application.getInvolved()">Get involved</a></li>
158+
<li><a href="@routes.Application.getInvolved">Get involved</a></li>
159159
</ul>
160160
</div>
161161
<div>
@@ -180,7 +180,7 @@ <h3>Social networks</h3>
180180
<a href="https://www.lightbend.com/legal/licenses" target="_blank">Licenses</a> |
181181
<a href="https://www.lightbend.com/legal/terms" target="_blank">Terms</a> |
182182
<a href="https://www.lightbend.com/legal/privacy" target="_blank">Privacy Policy</a> |
183-
<a href="@routes.Application.cookie()">Cookie Listing</a> |
183+
<a href="@routes.Application.cookie">Cookie Listing</a> |
184184
<a class="optanon-toggle-display">Cookie Settings</a>
185185
</p>
186186
</div>

app/views/outreachy/round10.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h2>Outreachy - Round 10</h2>
3131
<h2>Getting started</h2>
3232

3333
<p>
34-
The best way to get started is to read Play's <a href="@routes.Application.getInvolved()">Get Involved</a>
34+
The best way to get started is to read Play's <a href="@routes.Application.getInvolved">Get Involved</a>
3535
page. From there you can find information about the project issue tracker and mailing lists, links to
3636
instructions for building Play from source.
3737
</p>

0 commit comments

Comments
 (0)