Skip to content

Commit

Permalink
Fixed issue where the request column was not sortable in the web-ui a…
Browse files Browse the repository at this point in the history
…nd some minor styling
  • Loading branch information
Jahaja committed Nov 29, 2013
1 parent 118333c commit a29aa85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Other changes
* Locust will now make sure to spawn all the specified locusts in distributed mode, not just a multiple of the number of slaves.
* Fixed the broken Vagrant example.
* Fixed the broken events example (events.py).
* Fixed issue where the request column was not sortable in the web-ui.
* Minor styling of the statistics table in the web-ui.


0.6.2
Expand Down
4 changes: 4 additions & 0 deletions locust/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ a {
color: #6d6d6d;
border-bottom: 1px solid #292f2f;
}
.status tr.total td {
border-top: 1px solid #292f2f;
}
.status td, .status th {
text-align: right;
padding: 10px;
margin: 0;
}
Expand Down
4 changes: 2 additions & 2 deletions locust/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h2>Change the locust count</h2>
<tr>
<th class="stats_label" href="#" data-sortkey="method">Method</th>
<th class="stats_label" href="#" data-sortkey="name">Name</th>
<th class="stats_label" href="#" data-sortkey="num_reqs"># requests</th>
<th class="stats_label" href="#" data-sortkey="num_requests"># requests</th>
<th class="stats_label" href="#" data-sortkey="num_failures"># fails</th>
<th class="stats_label" href="#" data-sortkey="median_response_time">Median</th>
<th class="stats_label" href="#" data-sortkey="avg_response_time">Average</th>
Expand Down Expand Up @@ -176,7 +176,7 @@ <h1>Version</h1>
<script type="text/javascript" src="/static/jquery.tools.min.js"></script>
<script type="text/x-jqote-template" id="stats-template">
<![CDATA[
<tr class="<%=(alternate ? "dark" : "")%>">
<tr class="<%=(alternate ? "dark" : "")%> <%=(this.name == "Total" ? "total" : "")%>">
<td><%= (this.method ? this.method : "") %></td>
<td><%= this.name %></td>
<td class="numeric"><%= this.num_requests %></td>
Expand Down

0 comments on commit a29aa85

Please sign in to comment.