Code refactoring. Changed design for index page.

Minor changes...
This commit is contained in:
Prominence
2016-07-10 15:00:30 +03:00
parent c05cf24ba4
commit 34048f9525
22 changed files with 132 additions and 100 deletions
@@ -1,6 +1,6 @@
package by.prominence.translations
class TranslationsOverviewController {
class TranslationsManagementController {
def bundleService
@@ -9,23 +9,6 @@ class TranslationsOverviewController {
render view: 'index', model: [bundles: bundleService.getBundles()]
}
def show() {
if (!params.bundleName) {
redirect action: 'index'
return
}
Bundle bundle = bundleService.findBundleByName(params.bundleName as String)
if (!bundle) {
render view: 'index', model: [message: g.message(code: 'plugin.translations.error.bundleNotFound', args: [params.bundleName as String])]
return
}
render view: 'show', model: [bundle: bundle]
}
def edit() {
if (!params.bundleName) {