mirror of
https://github.com/Prominence/grails-translations-plugin.git
synced 2026-01-09 19:06:41 +03:00
Added main layout.
Added twitter-bootstrap plugin. Minor changes.
This commit is contained in:
parent
fe06a6d5d3
commit
e36e2bdff5
@ -32,7 +32,7 @@ grails.project.dependency.resolution = {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
// uncomment the below to enable remote dependency resolution
|
// uncomment the below to enable remote dependency resolution
|
||||||
// from public Maven repositories
|
// from public Maven repositories
|
||||||
//mavenRepo "http://repository.codehaus.org"
|
mavenRepo "http://repository.codehaus.org"
|
||||||
//mavenRepo "http://download.java.net/maven/2/"
|
//mavenRepo "http://download.java.net/maven/2/"
|
||||||
//mavenRepo "http://repository.jboss.com/maven2/"
|
//mavenRepo "http://repository.jboss.com/maven2/"
|
||||||
}
|
}
|
||||||
@ -48,5 +48,11 @@ grails.project.dependency.resolution = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build(':tomcat:7.0.55')
|
build(':tomcat:7.0.55')
|
||||||
|
|
||||||
|
runtime ':resources:1.2.14'
|
||||||
|
//runtime ':cache-headers:1.1.5'
|
||||||
|
// runtime ':cached-resources:1.0'
|
||||||
|
runtime ':zipped-resources:1.0'
|
||||||
|
runtime ':twitter-bootstrap:3.3.5'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,4 +22,6 @@ log4j = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
grails.views.gsp.encoding = "UTF-8"
|
grails.views.gsp.encoding = "UTF-8"
|
||||||
grails.converters.encoding = "UTF-8"
|
grails.converters.encoding = "UTF-8"
|
||||||
|
|
||||||
|
grails.plugins.twitterbootstrap.fixtaglib = true
|
||||||
@ -4,7 +4,10 @@ class TranslationsOverviewController {
|
|||||||
|
|
||||||
def bundleService
|
def bundleService
|
||||||
|
|
||||||
def index() { }
|
def index() {
|
||||||
|
|
||||||
|
render view: 'index', model: [bundles: bundleService.getBundles()]
|
||||||
|
}
|
||||||
|
|
||||||
def showBundles() {
|
def showBundles() {
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
test.message = Test message here
|
plugin.translations.overview.page.title = Translations overview
|
||||||
@ -1 +1 @@
|
|||||||
test.message = Test message here
|
plugin.translations.overview.page.title = Translations overview
|
||||||
@ -1 +1 @@
|
|||||||
test.message = Test message here
|
plugin.translations.overview.page.title = Translations overview
|
||||||
@ -1 +1 @@
|
|||||||
test.message = Тестовое сообщение
|
plugin.translations.overview.page.title = Обзор переводов
|
||||||
13
grails-app/views/layouts/main.gsp
Normal file
13
grails-app/views/layouts/main.gsp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||||
|
<title><g:layoutTitle default="Translations overview" /></title>
|
||||||
|
<r:layoutResources/>
|
||||||
|
</head>
|
||||||
|
<g:layoutBody />
|
||||||
|
<r:layoutResources/>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -1,11 +1,32 @@
|
|||||||
<%@ page contentType="text/html;charset=UTF-8" %>
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
<meta name="layout" content="main"/>
|
||||||
<title>Test</title>
|
<title><g:message code="plugin.translations.overview.page.title" /></title>
|
||||||
|
<r:require modules="bootstrap"/>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<g:message code="test.message" />
|
<g:if test="${bundles}">
|
||||||
|
<ol>
|
||||||
|
<g:each in="${bundles}" var="bundle">
|
||||||
|
<li>${bundle.name}<li>
|
||||||
|
<ul>
|
||||||
|
<g:each in="${bundle.propertiesList}" var="properties">
|
||||||
|
<li>${properties.name}</li>
|
||||||
|
${properties.text.eachLine { line ->
|
||||||
|
print('----------> ' + line + '<br/>')
|
||||||
|
}}
|
||||||
|
</g:each>
|
||||||
|
</ul>
|
||||||
|
</g:each>
|
||||||
|
</ol>
|
||||||
|
</g:if>
|
||||||
|
<g:else>
|
||||||
|
There is no bundles!
|
||||||
|
</g:else>
|
||||||
|
<button class="btn btn-default" type="button">
|
||||||
|
Test bootstrap button
|
||||||
|
</button>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -1,24 +1,11 @@
|
|||||||
<%@ page contentType="text/html;charset=UTF-8" %>
|
<%@ page contentType="text/html;charset=UTF-8" %>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
<meta name="layout" content="main"/>
|
||||||
<title>bundles</title>
|
<title>bundles</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<g:if test="${bundles}">
|
|
||||||
<g:each in="${bundles}" var="bundle">
|
|
||||||
${bundle.name} <br />
|
|
||||||
<g:each in="${bundle.propertiesList}" var="properties">
|
|
||||||
-> ${properties.name} <br />
|
|
||||||
${properties.text.eachLine { line ->
|
|
||||||
print('----------> ' + line + '<br/>')
|
|
||||||
}}
|
|
||||||
</g:each>
|
|
||||||
</g:each>
|
|
||||||
</g:if>
|
|
||||||
<g:else>
|
|
||||||
There is no bundles!
|
|
||||||
</g:else>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user