[Checkins] SVN: Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/templates/activity.pt Add action targets
Charlie Clark
charlie at begeistert.org
Tue Dec 6 10:16:47 UTC 2011
Log message for revision 123591:
Add action targets
Display number of loads and stores in the chart.
Changed:
U Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/templates/activity.pt
-=-
Modified: Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/templates/activity.pt
===================================================================
--- Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/templates/activity.pt 2011-12-06 09:10:42 UTC (rev 123590)
+++ Sandbox/jens/zmi.core/trunk/src/zmi/core/browser/database/templates/activity.pt 2011-12-06 10:16:47 UTC (rev 123591)
@@ -40,6 +40,7 @@
span.bar {
display:block;
+ color: #FFF;
float: left;
width: 3em;
vertical-align: bottom;
@@ -70,7 +71,7 @@
<h2>Keep History (seconds)</h2>
- <form method="POST" action="./">
+ <form method="POST" action="./" tal:attributes="action request/URL">
<input type="text" name="length"
tal:attributes="value view/getHistoryLength" />
<input type="submit" name="set_history" value="Save changes" />
@@ -80,7 +81,7 @@
<span tal:content="activity/start_time"> </span> to<br />
<span tal:content="activity/end_time"></span>
- <form method="GET" action="./">
+ <form method="POST" action="./" tal:attributes="action request/URL">
<input type="submit" name="current_chart" value="Show current chart" />
</form>
@@ -90,9 +91,13 @@
<td></td>
<td valign="bottom" tal:repeat="result activity/divs">
<a href=""
- ttal:attributes="href string: ${request/URL}?${result/link}">
- <span class="bar red" tal:attributes="style string:height: ${result/store_len}"></span>
- <span class="bar blue" tal:attributes="style string:height: ${result/load_len}"></span>
+ tal:attributes="href string: ${request/URL}?${result/link}">
+ <span class="bar red"
+ tal:content="python: result['stores'] > 0 and result['stores'] or None"
+ tal:attributes="style string:height: ${result/store_len}"></span>
+ <span class="bar blue"
+ tal:content="python: result['loads'] > 0 and result['loads'] or None"
+ tal:attributes="style string:height: ${result/load_len}"></span>
</a>
</td>
</tr>
More information about the checkins
mailing list