Added main layout.

Added twitter-bootstrap plugin.
Minor changes.
This commit is contained in:
Prominence 2016-06-23 18:31:07 +03:00
parent fe06a6d5d3
commit e36e2bdff5
10 changed files with 57 additions and 25 deletions

View File

@ -32,7 +32,7 @@ grails.project.dependency.resolution = {
mavenCentral()
// uncomment the below to enable remote dependency resolution
// from public Maven repositories
//mavenRepo "http://repository.codehaus.org"
mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
}
@ -48,5 +48,11 @@ grails.project.dependency.resolution = {
}
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'
}
}

View File

@ -23,3 +23,5 @@ log4j = {
grails.views.gsp.encoding = "UTF-8"
grails.converters.encoding = "UTF-8"
grails.plugins.twitterbootstrap.fixtaglib = true

View File

@ -4,7 +4,10 @@ class TranslationsOverviewController {
def bundleService
def index() { }
def index() {
render view: 'index', model: [bundles: bundleService.getBundles()]
}
def showBundles() {

View File

@ -1 +1 @@
test.message = Test message here
plugin.translations.overview.page.title = Translations overview

View File

@ -1 +1 @@
test.message = Test message here
plugin.translations.overview.page.title = Translations overview

View File

@ -1 +1 @@
test.message = Test message here
plugin.translations.overview.page.title = Translations overview

View File

@ -1 +1 @@
test.message = Тестовое сообщение
plugin.translations.overview.page.title = Обзор переводов

View 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>

View File

@ -1,11 +1,32 @@
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Test</title>
<meta name="layout" content="main"/>
<title><g:message code="plugin.translations.overview.page.title" /></title>
<r:require modules="bootstrap"/>
</head>
<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>
</html>

View File

@ -1,24 +1,11 @@
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main"/>
<title>bundles</title>
</head>
<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>
</html>