Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item13619: Make RevCommentPlugin work with Foswiki 2.0
This change untangles the templates a bit from core templates. It means that a "revcomment" skin needs to be added to the SKIN setting. Should be ahead of the "natedit" skin. Need to follow up with more documentation. And the default skins should have the revcomment stuff removed at some point.
- Loading branch information
Showing
7 changed files
with
68 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*,v | ||
*,pfv | ||
*.gz | ||
/RevCommentPlugin.md5 | ||
/RevCommentPlugin.sha1 | ||
/RevCommentPlugin.tgz | ||
/RevCommentPlugin.txt | ||
/RevCommentPlugin.zip | ||
/RevCommentPlugin_installer | ||
/RevCommentPlugin_installer.pl |
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,7 +1,10 @@ | ||
data/System/RevComment.txt 0644 | ||
data/System/RevCommentPlugin.txt 0644 | ||
data/System/WebChangesWC.txt 0644 | ||
data/System/WebRssBaseWC.txt 0644 | ||
lib/Foswiki/Plugins/RevCommentPlugin.pm 0644 | ||
pub/System/RevCommentPlugin/ExampleHistory.png 0644 | ||
pub/System/RevCommentPlugin/ExampleWebChanges.png 0644 | ||
data/System/RevComment.txt 0775 | ||
data/System/RevCommentPlugin.txt 0775 | ||
data/System/WebChangesWC.txt 0775 | ||
data/System/WebRssBaseWC.txt 0775 | ||
lib/Foswiki/Plugins/RevCommentPlugin.pm 0775 | ||
pub/System/RevCommentPlugin/ExampleHistory.png 0775 | ||
pub/System/RevCommentPlugin/ExampleWebChanges.png 0775 | ||
templates/edit.revcomment.tmpl 0664 | ||
templates/edittoolbar.revcomment.tmpl 0664 | ||
templates/oopshistory.revcomment.tmpl 0664 |
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,3 @@ | ||
%TMPL:INCLUDE{"edit"}% | ||
%TMPL:DEF{"revCommentPluginOptions"}%<hr /><div class='foswikiFormStep revComment'><label for='comment'>Summary of changes</label> <input class='foswikiInputField' type='text' style='width:50%' name='comment' id='comment' /> %POPUPWINDOW{"%SYSTEMWEB%.RevComment" label="%MAKETEXT{"help"}%"}%</div>%TMPL:END% | ||
%TMPL:DEF{"topicinfo"}%%TMPL:P{context="RevCommentPluginEnabled" then="revCommentPluginOptions"}%<hr /><div class="patternTopicActions foswikiFormStep clear"><div class="patternActionButtons">%TMPL:P{"action_buttons"}%</div></div>%TMPL:P{"forcerevisioncheckbox"}%%TMPL:END% |
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,13 @@ | ||
%TMPL:INCLUDE{"edittoolbar"}% | ||
%{ ################################################################################ }% | ||
%TMPL:DEF{"bottomtopicactions"}%<div class="natEditBottomBar"> | ||
%IF{ "context RevCommentPluginEnabled" then="%TMPL:P{"revcomment"}%"}% | ||
<ul>%TMPL:P{"saveorrestorebutton"}%%TMPL:P{"checkpointbutton"}%%TMPL:P{"previewbutton"}%%TMPL:P{"formbutton"}%%TMPL:P{"changeform"}%%TMPL:P{"cancelbutton"}%%TMPL:P{"forcenewrevision"}%</ul> | ||
%CLEAR% | ||
</div> | ||
%TMPL:END% | ||
%TMPL:DEF{"revcomment"}% | ||
<div class='revComment'> | ||
<label for='comment'>Summary of changes</label> | ||
<input class='foswikiInputField' type='text' style='width:50%' name='comment' id='comment' /> | ||
%POPUPWINDOW{"%SYSTEMWEB%.RevComment" label="%MAKETEXT{"help"}%"}%</div>%TMPL:END% |
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,24 @@ | ||
%TMPL:INCLUDE{"oopshistory"}% | ||
%{ SMELL: historytable_rcp_disabled defined in oopshistory.tmp. It really ought to be renamed. }% | ||
%TMPL:DEF{"historytable"}%%TMPL:P{context="RevCommentPluginEnabled" then="historytable_rcp_enabled" else="historytable_rcp_disabled"}%%TMPL:END% | ||
%TMPL:DEF{"historytable_rcp_enabled"}%<table class="foswikiTable historySelectTable" summary="%MAKETEXT{"Topic history"}%"> | ||
<tr> | ||
<th colspan="3">%MAKETEXT{"Revision"}%</th> | ||
<th>%MAKETEXT{"Changed on"}%</th> | ||
<th>%MAKETEXT{"Last edited by"}%</th> | ||
<th>%MAKETEXT{"Comment"}%</th> | ||
</tr> | ||
%HISTORY{"<tr><td align="right"><a href=\"%SCRIPTURL{view}%/%WEB%/%TOPIC%?rev=$rev\">$rev</a></td><td style=\"background-color:#fffaf2; text-align:center;\"><input type=\"radio\" name=\"rev2\" value=\"$rev\" style=\"border:none; background-color:#fffaf2;\" /></td><td style=\"background-color:#f2f7fc; text-align:center;\"><input type=\"radio\" name=\"rev1\" value=\"$rev\" style=\"border:none; background-color:#f2f7fc;\" /></td><td style="white-space: nowrap;">$date</td><td>[[$wikiusername][$wikiname]]</td><td><div class="historyRevComment">%REVCOMMENT[$rev]%</div></td></tr>" rev1="%URLPARAM{"rev1"}%" rev2="%URLPARAM{"rev2"}%" nrev="%URLPARAM{"nrev"}%" header="" footer="</table>$n%TMPL:P{"historytable:navigation"}%%TMPL:END% | ||
|
||
%TMPL:DEF{"cssFoswikiDiffOptions"}%%TMPL:PREV%%ADDTOZONE{"head" id="cssFoswikiRcpDiffOptions" text="<style type='text/css' media='all'> | ||
.historyRevComment ul { | ||
list-style:none; | ||
padding:0; | ||
margin:0 0 0 1em; | ||
} | ||
.historyRevComment li { | ||
padding:0; | ||
margin:0; | ||
} | ||
</style>"}%%TMPL:END% | ||
|