Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed return type of listThemes and listSets tags, added UI for dis…
…playing theme+ui set info in tools
- Loading branch information
1 parent
55ab74a
commit af3cf1e
Showing
12 changed files
with
96 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,74 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Plugin Platform UI</title> | ||
<title>Grails Platform UI</title> | ||
<meta name="layout" content="platform/dev"/> | ||
<r:script> | ||
$(".collapse").collapse(); | ||
</r:script> | ||
</head> | ||
<body> | ||
<div class="hero-unit"> | ||
<h1>Grails Platform UI</h1> | ||
<p>Welcome the the Grails Plugin Platform UI test page</p> | ||
<p>Welcome the the Platform UI tools</p> | ||
</div> | ||
|
||
<p>Here's what you can do: | ||
|
||
<section> | ||
<h2>Tools</h2> | ||
<ul> | ||
<li><g:link mapping="platformUiNormal" controller="platformUi" action="themes">Theme previewer</g:link></li> | ||
<li><g:link mapping="platformUiNormal" controller="platformUi" action="uisets">UI Set previewer</g:link></li> | ||
<li><g:link mapping="platformUiNormal" controller="platformUi" action="themes">Open Theme previewer</g:link></li> | ||
<li><g:link mapping="platformUiNormal" controller="platformUi" action="uisets">Open UI Set previewer</g:link></li> | ||
</ul> | ||
</p> | ||
</section> | ||
|
||
<section> | ||
<h2>You have the following Themes installed:</h2> | ||
<div class="accordion" id="themeList"> | ||
<g:each in="${theme.listThemes()}" var="t" status="i"> | ||
<div class="accordion-group"> | ||
<div class="accordion-heading"> | ||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#themeList" href="#theme${i}"> | ||
${t.name.encodeAsHTML()} | ||
</a> | ||
</div> | ||
<div id="theme${i}" class="accordion-body collapse in"> | ||
<div class="accordion-inner"> | ||
Uses UI Set [${t.uiSet.encodeAsHTML()}], defined by plugin [${t.definingPlugin?.name.encodeAsHTML()}], layouts: | ||
<ul> | ||
<g:each in="${t.layoutPaths}" var="l"> | ||
<li> | ||
<strong>${l.key.encodeAsHTML()}</strong> » ${l.value.encodeAsHTML()} | ||
</li> | ||
</g:each> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</g:each> | ||
</div> | ||
|
||
<h2>You have the following UI Sets installed:</h2> | ||
<div class="accordion" id="uiSetList"> | ||
<g:each in="${ui.listSets()}" var="s" status="i"> | ||
<div class="accordion-group"> | ||
<div class="accordion-heading"> | ||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#uiSetList" href="#uiSet${i}"> | ||
${s.name.encodeAsHTML()} | ||
</a> | ||
</div> | ||
<div id="uiSet${i}" class="accordion-body collapse in"> | ||
<div class="accordion-inner"> | ||
Defined by plugin [${s.definingPlugin?.name.encodeAsHTML()}], layouts: | ||
<ul> | ||
<g:each in="${s.layoutPaths}" var="l"> | ||
<li><strong>${l.key.encodeAsHTML()}</strong> » ${l.value.encodeAsHTML()}</li> | ||
</g:each> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</g:each> | ||
</div> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
h1. theme:listThemes | ||
|
||
h2. Purpose | ||
|
||
Returns a list of the available Theme definitions. | ||
|
||
Useful if you want the user to be able to select the current theme, or inspect the loaded themes | ||
|
||
h2. Example | ||
|
||
{docx:xml} | ||
Change theme: <g:select from="${theme.listThemes().name}"/> | ||
{docx} | ||
|
||
h2. Attributes | ||
|
||
None. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters