Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show wiki page versions working within tabbed view on plugin pages.
git-svn-id: https://svn.codehaus.org/grails/trunk@8651 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
- Loading branch information
rhyolight
committed
Feb 20, 2009
1 parent
aeea49d
commit 677c0a8
Showing
19 changed files
with
169 additions
and
107 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
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,25 +1,33 @@ | ||
<div id="editLinks" style="margin-left:230px;"> | ||
|
||
<a class="actionIcon" onclick="Effect.Appear('uploadDialog')"> | ||
<img src="${createLinkTo(dir:'images/','icon-upload.png')}" width="15" height="15" alt="Icon Image Upload" class="inlineIcon" border="0" /> | ||
<img src="${createLinkTo(dir: 'images/', 'icon-upload.png')}" width="15" height="15" alt="Icon Image Upload" class="inlineIcon" border="0"/> | ||
</a> | ||
<a href="#" onclick="Effect.Appear('uploadDialog')">Upload Image</a> | ||
|
||
<a class="actionIcon" onclick="new Ajax.Updater('previewPane','${createLink(controller:'content',action:'previewWikiPage',id:content?.title)}',getAjaxOptions(function(){showPreview()}));return false"> | ||
<img src="${createLinkTo(dir:'images/','icon-preview.png')}" width="18" height="15" alt="Icon Edit" class="inlineIcon" border="0" /> | ||
<a class="actionIcon" onclick="new Ajax.Updater('previewPane', '${createLink(controller:'content',action:'previewWikiPage',id:content?.title)}', getAjaxOptions(function() { | ||
showPreview() | ||
})); | ||
return false"> | ||
<img src="${createLinkTo(dir: 'images/', 'icon-preview.png')}" width="18" height="15" alt="Icon Edit" class="inlineIcon" border="0"/> | ||
</a> | ||
<a href="#" onclick="new Ajax.Updater('previewPane','${createLink(controller:'content',action:'previewWikiPage',id:content?.title)}',getAjaxOptions(function(){showPreview()}));return false">Preview</a> | ||
<a href="#" onclick="new Ajax.Updater('previewPane', '${createLink(controller:'content',action:'previewWikiPage',id:content?.title)}', getAjaxOptions(function() { | ||
showPreview() | ||
})); | ||
return false">Preview</a> | ||
|
||
|
||
<a class="actionIcon" onclick="new Ajax.Updater('contentPane','${createLink(controller:'content',action:'saveWikiPage',id:content?.title)}',getAjaxOptions());return false"> | ||
<img src="${createLinkTo(dir:'images/','icon-save.png')}" width="15" height="15" alt="Icon Save" class="inlineIcon" border="0" /> | ||
</a> | ||
<a href="#" onclick="new Ajax.Updater('contentPane','${createLink(controller:'content',action:'saveWikiPage',id:content?.title)}',getAjaxOptions());return false">Save</a> | ||
|
||
<g:remoteLink class="actionIcon" update="contentPane" controller="content" id="${content?.title}" params="[xhr:true]"><img src="${createLinkTo(dir:'images/','icon-cancel.png')}" width="15" height="15" alt="Icon Cancel" class="inlineIcon" border="0" /></g:remoteLink> | ||
<a class="actionIcon" onclick="new Ajax.Updater('contentPane', '${createLink(controller:'content',action:'saveWikiPage',id:content?.title)}', getAjaxOptions()); | ||
return false"> | ||
<img src="${createLinkTo(dir: 'images/', 'icon-save.png')}" width="15" height="15" alt="Icon Save" class="inlineIcon" border="0"/> | ||
</a> | ||
<a href="#" onclick="new Ajax.Updater('contentPane', '${createLink(controller:'content',action:'saveWikiPage',id:content?.title)}', getAjaxOptions()); | ||
return false">Save</a> | ||
|
||
<g:remoteLink class="actionIcon" update="contentPane" controller="content" id="${content?.title}" params="[xhr:true]"><img src="${createLinkTo(dir: 'images/', 'icon-cancel.png')}" width="15" height="15" alt="Icon Cancel" class="inlineIcon" border="0"/></g:remoteLink> | ||
<g:remoteLink update="contentPane" controller="content" id="${content?.title}" params="[xhr:true]">Cancel</g:remoteLink> | ||
<g:remoteLink class="actionIcon" action="infoWikiPage" id="${content?.title}" update="contentPane"> | ||
<img border="0" src="${createLinkTo(dir:'images/','icon-info.png')}" width="15" height="15" alt="Icon Edit" class="inlineIcon" border="0" /> | ||
<img border="0" src="${createLinkTo(dir: 'images/', 'icon-info.png')}" width="15" height="15" alt="Icon Edit" class="inlineIcon" border="0"/> | ||
</g:remoteLink> | ||
<g:remoteLink action="infoWikiPage" id="${content?.title}" update="contentPane"> View Info</g:remoteLink> | ||
<g:remoteLink action="infoWikiPage" id="${content?.title}" update="contentPane">View Info</g:remoteLink> | ||
</div> |
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,18 +1,20 @@ | ||
<div id="viewLinks" style="margin-left:500px;"> | ||
|
||
<g:set var="updateElement" value="${update ?: 'contentPane'}"/> | ||
|
||
<g:if test="${content?.locked}"> | ||
LOCKED<br/> | ||
</g:if> | ||
<g:else> | ||
<g:remoteLink class="actionIcon" action="editWikiPage" id="${content?.title}" update="contentPane"> | ||
<g:remoteLink class="actionIcon" controller="content" action="editWikiPage" id="${content?.title}" update="${updateElement}"> | ||
<img border="0" src="${createLinkTo(dir:'images/','icon-edit.png')}" width="15" height="15" alt="Icon Edit" class="inlineIcon" border="0" /> | ||
</g:remoteLink> | ||
<g:remoteLink action="editWikiPage" id="${content?.title}" update="contentPane">Edit</g:remoteLink> | ||
<g:remoteLink class="actionIcon" controller="content" action="editWikiPage" id="${content?.title}" update="${updateElement}">Edit</g:remoteLink> | ||
</g:else> | ||
|
||
<g:remoteLink class="actionIcon" action="infoWikiPage" id="${content?.title}" update="contentPane"> | ||
<br/> | ||
<g:remoteLink class="actionIcon" controller="content" action="infoWikiPage" id="${content?.title}" params="[update:updateElement]" update="${updateElement}"> | ||
<img border="0" src="${createLinkTo(dir:'images/','icon-info.png')}" width="15" height="15" alt="Icon Edit" class="inlineIcon" border="0" /> | ||
</g:remoteLink> | ||
<g:remoteLink action="infoWikiPage" id="${content?.title}" update="contentPane">View Info</g:remoteLink> | ||
<g:remoteLink controller="content" action="infoWikiPage" id="${content?.title}" params="[update:updateElement]" update="${updateElement}">View Info</g:remoteLink> | ||
|
||
</div> |
Oops, something went wrong.