Skip to content

Commit cd28755

Browse files
author
Richard Jones
committed
include "clear this message" link in the "ok" message bar
1 parent b98c179 commit cd28755

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Feature:
77
- login may now be for a single session (and this is the default)
88
- trackers may hide exceptions from web users (they will be mailed to the
99
tracker admin) (hiding is the default)
10+
- include "clear this message" link in the "ok" message bar
1011

1112
Fixed:
1213
- fixes in scripts/import_sf.py

doc/upgrading.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,28 @@ and ``issue.index.html`` pages to change ``dispname`` to ``@dispname``.
4040
A side-effect of this change is that the renderWith method used in the
4141
``home.html`` page may now take a dispname argument.
4242

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>
64+
4365

4466
Migrating from 0.8.x to 1.0
4567
===========================

templates/classic/html/page.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,13 @@ <h2><span metal:define-slot="body_title">body title</span></h2>
129129
</td>
130130
<td>
131131
<p tal:condition="options/error_message | nothing" class="error-message"
132-
tal:repeat="m options/error_message" tal:content="structure m">error</p>
133-
<p tal:condition="options/ok_message | nothing" class="ok-message"
134-
tal:repeat="m options/ok_message" tal:content="structure m">error</p>
132+
tal:repeat="m options/error_message" tal:content="structure m" />
133+
<p tal:condition="options/ok_message | nothing" class="ok-message">
134+
<span tal:repeat="m options/ok_message"
135+
tal:content="structure string:$m <br/ > " />
136+
<a class="form-small" tal:attributes="href string:issue${context/id}"
137+
i18n:translate="">clear this message</a>
138+
</p>
135139
</td>
136140
</tr>
137141
<tr>

0 commit comments

Comments
 (0)