Skip to content

Commit

Permalink
Hide language menu on module page
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeike443 committed Jul 8, 2012
1 parent 6db11dd commit 4928632
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/docviewer/app/DocViewerPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion modules/docviewer/app/controllers/PlayDocumentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions modules/docviewer/app/views/PlayDocumentation/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ <h2>Installed modules</h2>
<h2>Contents</h2>
<div id="toc"></div>

#{ifnot module}
<h2>Languages</h2>
<div id="lang">

Expand Down Expand Up @@ -69,6 +70,7 @@ <h2>Languages</h2>
#{/list}
</ul>
</div>
#{/ifnot}

<h2>Search</h2>
<p>Get help with google</p>
Expand Down

0 comments on commit 4928632

Please sign in to comment.