feedback-menu: user can change feedback url or remove it
@23246ea8bfe61a73b7b95ac800c4e490f47cfa52
--- app/views/siteLayout.scala.html
+++ app/views/siteLayout.scala.html
... | ... | @@ -6,6 +6,10 @@ |
6 | 6 |
if(m_type == menuType){ "active" } |
7 | 7 |
} |
8 | 8 |
|
9 |
+@appFeedbackUrl() = @{ |
|
10 |
+ play.Configuration.root().getString("application.feedback.url") |
|
11 |
+} |
|
12 |
+ |
|
9 | 13 |
@layout(Messages(title))(""){ |
10 | 14 |
<div class="unsupported"> |
11 | 15 |
<div class="unsupported-inner"> |
... | ... | @@ -25,9 +29,11 @@ |
25 | 29 |
<li class="@isActiveMenu(MenuType.HELP)"> |
26 | 30 |
<a href="@routes.HelpApp.help()">@Messages("title.help")</a> |
27 | 31 |
</li> |
32 |
+ @if(appFeedbackUrl){ |
|
28 | 33 |
<li> |
29 |
- <a href="https://github.com/nforge/yobi/issues?state=open" target="_blank">@Messages("title.yobi.feedback")</a> |
|
34 |
+ <a href="@appFeedbackUrl" target="_blank">@Messages("title.yobi.feedback")</a> |
|
30 | 35 |
</li> |
36 |
+ } |
|
31 | 37 |
</ul> |
32 | 38 |
@common.usermenu(null) |
33 | 39 |
</div> |
--- conf/application.conf.default
+++ conf/application.conf.default
... | ... | @@ -83,6 +83,9 @@ |
83 | 83 |
# application.hostname="www.yourdomain.com" |
84 | 84 |
# application.port="8080" |
85 | 85 |
|
86 |
+# Application feedback url at top layout menu. You can remove feedback menu by commenting it. |
|
87 |
+application.feedback.url="https://github.com/nforge/yobi/issues" |
|
88 |
+ |
|
86 | 89 |
# Mailer |
87 | 90 |
# ~~~~~~ |
88 | 91 |
# You have to configure SMTP to send mails. |
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?