Commits

Jacob Moen committed 85df89d

Moved creole wiki help content out to a partial view.

Comments (0)

Files changed (2)

protected/modules/wiki/views/default/_creole.php

+        <div class="wiki-controls" style="width:400px;font-size:10px;">
+            <h3>WikiCreole Cheat Sheet</h3>
+            <table cellpadding="0" cellspacing="0">
+                <tbody>
+                    <tr>
+                        <td>//italics//</td>
+                        <td class="arrow">&#8594;</td>
+                        <td><em>italics</em></td>
+                    </tr>
+                    <tr>
+                        <td>**bold**</td>
+                        <td class="arrow">&#8594;</td>
+                        <td><strong>bold</strong></td>
+                    </tr>
+                    <tr>
+                        <td>* Bullet list<br>* Second item<br>** Sub item</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>&#8226; Bullet list<br>&#8226; Second item<br>..&#8226; Sub item</td>
+                    </tr>
+                    <tr>
+                        <td># Numbered list<br># Second item<br>## Sub item</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>1. Numbered list<br>2. Second item<br>2.1 Sub item</td>
+                    </tr>
+                    <tr>
+                        <td>Link to [[wiki page]]</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>Link to <a href="http://www.wikicreole.org/attach/CheatSheet/URL">wiki page</a></td>
+                    </tr>
+                    <tr>
+                        <td>[[URL|link name]]</td>
+                        <td class="arrow">&#8594;</td>
+                        <td><a href="http://www.wikicreole.org/attach/CheatSheet/URL">link name</a></td>
+                    </tr>
+                    <tr>
+                        <td>== Large heading<br>=== Medium heading<br>==== Small heading</td>
+                        <td class="arrow">&#8594;</td>
+                        <td><span style="font-size: 130%; font-weight: bold;"> Large heading</span><br>
+                            <span style="font-size: 115%; font-weight: bold;">Medium heading</span><br>
+                            <span style="font-size: 100%; font-weight: bold;">Small heading</span></td>
+                    </tr>
+                    <tr>
+                        <td>No<br> linebreak!<br><br>Use empty line</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>No line break!<br><br>Use empty line</td>
+                    </tr>
+                    <tr>
+                        <td>Forced\\linebreak<br></td>
+                        <td class="arrow">&#8594;</td>
+                        <td>Forced<br>line break</td>
+                    </tr>
+                    <tr>
+                        <td>Horizontal line:<br>----</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>Horizontal line: <hr></td>
+                    </tr>
+                    <tr>
+                        <td>{{Image.jpg|title}}</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>Image with title</td>
+                    </tr>
+                    <tr>
+                        <td>|=|=table|=header|<br>|a|table|row|<br>|b|table|row|</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>Table</td>
+                    </tr>
+                    <tr>
+                        <td>{{{<br>== [[Nowiki]]:<br> //**don't** format//<br>}}}</td>
+                        <td class="arrow">&#8594;</td>
+                        <td>== [[Nowiki]]:<br> //**don't** format//</td>
+                    </tr>
+                </tbody>
+            </table>
+            <b style="font-size: 70%;">www.wikicreole.org</b>
+        </div>

protected/modules/wiki/views/default/edit.php

             'closeOnEscape' => true,
         ),
     )); ?>
-        <div class="wiki-controls" style="width:400px;font-size:10px;">
-            <h3>WikiCreole Cheat Sheet</h3>
-            <table cellpadding="0" cellspacing="0">
-                <tbody>
-                    <tr>
-                        <td>//italics//</td>
-                        <td class="arrow">&#8594;</td>
-                        <td><em>italics</em></td>
-                    </tr>
-                    <tr>
-                        <td>**bold**</td>
-                        <td class="arrow">&#8594;</td>
-                        <td><strong>bold</strong></td>
-                    </tr>
-                    <tr>
-                        <td>* Bullet list<br>* Second item<br>** Sub item</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>&#8226; Bullet list<br>&#8226; Second item<br>..&#8226; Sub item</td>
-                    </tr>
-                    <tr>
-                        <td># Numbered list<br># Second item<br>## Sub item</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>1. Numbered list<br>2. Second item<br>2.1 Sub item</td>
-                    </tr>
-                    <tr>
-                        <td>Link to [[wiki page]]</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>Link to <a href="http://www.wikicreole.org/attach/CheatSheet/URL">wiki page</a></td>
-                    </tr>
-                    <tr>
-                        <td>[[URL|link name]]</td>
-                        <td class="arrow">&#8594;</td>
-                        <td><a href="http://www.wikicreole.org/attach/CheatSheet/URL">link name</a></td>
-                    </tr>
-                    <tr>
-                        <td>== Large heading<br>=== Medium heading<br>==== Small heading</td>
-                        <td class="arrow">&#8594;</td>
-                        <td><span style="font-size: 130%; font-weight: bold;"> Large heading</span><br>
-                            <span style="font-size: 115%; font-weight: bold;">Medium heading</span><br>
-                            <span style="font-size: 100%; font-weight: bold;">Small heading</span></td>
-                    </tr>
-                    <tr>
-                        <td>No<br> linebreak!<br><br>Use empty line</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>No line break!<br><br>Use empty line</td>
-                    </tr>
-                    <tr>
-                        <td>Forced\\linebreak<br></td>
-                        <td class="arrow">&#8594;</td>
-                        <td>Forced<br>line break</td>
-                    </tr>
-                    <tr>
-                        <td>Horizontal line:<br>----</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>Horizontal line: <hr></td>
-                    </tr>
-                    <tr>
-                        <td>{{Image.jpg|title}}</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>Image with title</td>
-                    </tr>
-                    <tr>
-                        <td>|=|=table|=header|<br>|a|table|row|<br>|b|table|row|</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>Table</td>
-                    </tr>
-                    <tr>
-                        <td>{{{<br>== [[Nowiki]]:<br> //**don't** format//<br>}}}</td>
-                        <td class="arrow">&#8594;</td>
-                        <td>== [[Nowiki]]:<br> //**don't** format//</td>
-                    </tr>
-                </tbody>
-            </table>
-            <b style="font-size: 70%;">www.wikicreole.org</b>
-        </div>
+        <?php $this->renderPartial('_creole'); ?>
     <?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?>
 </div>