Permalink
Browse files

Hide language menu on module page

  • Loading branch information...
1 parent 6db11dd commit 49286323029ce22b638a238c5b603392cbb5c105 @ikeike443 ikeike443 committed Jul 8, 2012
@@ -49,7 +49,7 @@ public void onRoutesLoaded() {
Router.prependRoute("GET", "/@documentation/files/{name}", "PlayDocumentation.file");
Router.prependRoute("GET", "/@documentation/{docLang}/images/{name}", "PlayDocumentation.image");
Router.prependRoute("GET", "/@documentation/{docLang}/files/{name}", "PlayDocumentation.file");
- Router.prependRoute("GET", "/@documentation/modules/{module}/{id}", "PlayDocumentation.page");
+ Router.prependRoute("GET", "/@documentation/{docLang}/modules/{module}/{id}", "PlayDocumentation.page");
Router.prependRoute("GET", "/@documentation/modules/{module}/images/{name}", "PlayDocumentation.image");
Router.prependRoute("GET", "/@documentation/modules/{module}/files/{name}", "PlayDocumentation.file");
Router.prependRoute("GET", "/@documentation/cheatsheet/{category}", "PlayDocumentation.cheatSheet");
@@ -49,7 +49,7 @@ public static void page(String id, String module, String docLang) throws Excepti
if (id.equals("home") && module == null) {
for (String key : Play.modules.keySet()) {
VirtualFile mr = Play.modules.get(key);
- VirtualFile home = mr.child("documentation/manual" + docLang + "home.textile");
+ VirtualFile home = mr.child("documentation/manual/" + "home.textile");
if (home.exists()) {
modules.add(key);
}
@@ -42,6 +42,7 @@ <h2 id="version">Play ${play.version}</h2>
<h2>Contents</h2>
<div id="toc"></div>
+ #{ifnot module}
<h2>Languages</h2>
<div id="lang">
@@ -69,6 +70,7 @@ <h2 id="version">Play ${play.version}</h2>
#{/list}
</ul>
</div>
+ #{/ifnot}
<h2>Search</h2>
<p>Get help with google</p>

0 comments on commit 4928632

Please sign in to comment.