mirror of
https://github.com/Prominence/grails-translations-plugin.git
synced 2026-07-03 02:36:46 +03:00
Created page for bundle translations.
Minor changes.
This commit is contained in:
+13
-2
@@ -9,8 +9,19 @@ class TranslationsOverviewController {
|
||||
render view: 'index', model: [bundles: bundleService.getBundles()]
|
||||
}
|
||||
|
||||
def showBundles() {
|
||||
def show() {
|
||||
|
||||
render view: 'showBundles', model: [bundles: bundleService.getBundles()]
|
||||
if (!params.bundleName) {
|
||||
// render error
|
||||
}
|
||||
|
||||
Bundle bundle = bundleService.findBundleByName(params.bundleName as String)
|
||||
|
||||
if (!bundle) {
|
||||
// render error
|
||||
}
|
||||
|
||||
render view: 'show', model: [bundle: bundle]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user