[Notice] Announcing the End of Demo Server [Read me]

Fix loadAssetsLink for prod mode.
@8e85021bc03a59c59700ef7d995e36338ea03b11
--- .gitignore
+++ .gitignore
... | ... | @@ -17,3 +17,4 @@ |
17 | 17 |
db |
18 | 18 |
*.iml |
19 | 19 |
uploads |
20 |
+RUNNING_PID |
--- app/utils/TemplateHelper.scala
+++ app/utils/TemplateHelper.scala
... | ... | @@ -50,7 +50,7 @@ |
50 | 50 |
|
51 | 51 |
def loadAssetsLink(base: String, name: String, _type: String): String = { |
52 | 52 |
var minified = "" |
53 |
- if (play.Play.isProd) minified = ".min" |
|
53 |
+// if (play.Play.isProd) minified = ".min" |
|
54 | 54 |
routes.Assets.at(base + "/" + name + minified + "." + _type).toString |
55 | 55 |
} |
56 | 56 |
|
--- app/views/layout.scala.html
+++ app/views/layout.scala.html
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
11 | 11 |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
12 | 12 |
<link rel="stylesheet" type="text/css" media="screen" href="@getCSSLink("bootstrap.min")"> |
13 |
- <link rel="stylesheet" type="text/css" media="screen" href="@getCSSLink("nforge.min")"> |
|
13 |
+ <link rel="stylesheet" type="text/css" media="screen" href="@getCSSLink("nforge")"> |
|
14 | 14 |
|
15 | 15 |
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")"> |
16 | 16 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?