Mercurial > p > roundup > code
comparison doc/upgrading.txt @ 3552:4cf7f9b7cb37
include "clear this message" link in the "ok" message bar
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 09 Feb 2006 04:45:43 +0000 |
| parents | 55bcd5673097 |
| children | 5e70726a86dd |
comparison
equal
deleted
inserted
replaced
| 3551:3c70ab03c917 | 3552:4cf7f9b7cb37 |
|---|---|
| 37 display name feature, you will need to edit your tracker's ``page.html`` | 37 display name feature, you will need to edit your tracker's ``page.html`` |
| 38 and ``issue.index.html`` pages to change ``dispname`` to ``@dispname``. | 38 and ``issue.index.html`` pages to change ``dispname`` to ``@dispname``. |
| 39 | 39 |
| 40 A side-effect of this change is that the renderWith method used in the | 40 A side-effect of this change is that the renderWith method used in the |
| 41 ``home.html`` page may now take a dispname argument. | 41 ``home.html`` page may now take a dispname argument. |
| 42 | |
| 43 1.1 "Clear this message" | |
| 44 ------------------------ | |
| 45 | |
| 46 In 1.1, the standard ``page.html`` template includes a "clear this message" | |
| 47 link in the green "ok" message bar that appears after a successful edit | |
| 48 (or other) action. | |
| 49 | |
| 50 To include this in your tracker, change the following in your ``page.html`` | |
| 51 template:: | |
| 52 | |
| 53 <p tal:condition="options/ok_message | nothing" class="ok-message" | |
| 54 tal:repeat="m options/ok_message" tal:content="structure m">error</p> | |
| 55 | |
| 56 to be:: | |
| 57 | |
| 58 <p tal:condition="options/ok_message | nothing" class="ok-message"> | |
| 59 <span tal:repeat="m options/ok_message" | |
| 60 tal:content="structure string:$m <br/ > " /> | |
| 61 <a class="form-small" tal:attributes="href string:issue${context/id}" | |
| 62 i18n:translate="">clear this message</a> | |
| 63 </p> | |
| 42 | 64 |
| 43 | 65 |
| 44 Migrating from 0.8.x to 1.0 | 66 Migrating from 0.8.x to 1.0 |
| 45 =========================== | 67 =========================== |
| 46 | 68 |
