Changeset 85247 in webkit


Ignore:
Timestamp:
Apr 28, 2011 3:22:20 PM (13 years ago)
Author:
eric@webkit.org
Message:

2011-04-28 Eric Seidel <eric@webkit.org>

Reviewed by Adam Barth.

EWS Bubbles should show commit-queue position when patch is in the commit-queue
https://bugs.webkit.org/show_bug.cgi?id=59744

This was actually just a 2 line change to statusbubble.py.
I also cleaned up statusbubble.html a little while I was there
(the links are now actual <a> tags and have hover).

  • QueueStatusServer/handlers/statusbubble.py:
  • QueueStatusServer/templates/statusbubble.html:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85246 r85247  
     12011-04-28  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        EWS Bubbles should show commit-queue position when patch is in the commit-queue
     6        https://bugs.webkit.org/show_bug.cgi?id=59744
     7
     8        This was actually just a 2 line change to statusbubble.py.
     9        I also cleaned up statusbubble.html a little while I was there
     10        (the links are now actual <a> tags and have hover).
     11
     12        * QueueStatusServer/handlers/statusbubble.py:
     13        * QueueStatusServer/templates/statusbubble.html:
     14
    1152011-04-28  Dirk Pranke  <dpranke@chromium.org>
    216
  • trunk/Tools/QueueStatusServer/handlers/statusbubble.py

    r70025 r85247  
    3838
    3939class StatusBubble(webapp.RequestHandler):
    40     _queues_to_display = [queue for queue in Queue.all() if queue.is_ews()]
    41 
    4240    def _build_bubble(self, queue, attachment):
    4341        queue_status = attachment.status_for_queue(queue)
     
    5351    def get(self, attachment_id):
    5452        attachment = Attachment(int(attachment_id))
    55         bubbles = [self._build_bubble(queue, attachment) for queue in self._queues_to_display]
     53        # Show all queue positions, even the commit-queue.
     54        bubbles = [self._build_bubble(queue, attachment) for queue in Queue.all() if queue.is_ews() or attachment.position_in_queue(queue)]
    5655        template_values = {
    5756            "bubbles": bubbles,
  • trunk/Tools/QueueStatusServer/templates/statusbubble.html

    r74158 r85247  
    2424    font-size: 11px;
    2525    cursor: pointer;
     26    text-decoration: none;
     27    color: black;
     28}
     29.status:hover {
     30    border-color: #666;
    2631}
    2732.none {
    2833    cursor: auto;
     34}
     35.none:hover {
     36    border-color: #AAA;
    2937}
    3038.pass {
     
    4957</style>
    5058<script>
    51 function statusDetail(patch_id) {
    52   top.location = "/patch/" + patch_id
    53 }
    5459window.addEventListener("message", function(e) {
    5560  if (e.data == 'containerMetrics') {
     
    6469<div id="bubbleContainer">
    6570  {% for bubble in bubbles %}
    66   <div class="status {{ bubble.state }}"{% if bubble.status %}
    67       onclick="statusDetail({{ bubble.attachment_id }})"
    68       title="{{ bubble.status.date|timesince }} ago"{% endif %}>
     71  <a class="status {{ bubble.state }}"
     72  {% if bubble.status %}
     73      href="http://queues.webkit.org/patch/{{ bubble.attachment_id }}"
     74      title="{{ bubble.status.date|timesince }} ago"
     75  {% endif %}
     76  >
    6977    {{ bubble.name }}
    7078    {% if bubble.queue_position %}
    7179    <span class="queue_position">#{{ bubble.queue_position }}</span>
    7280    {% endif %}
    73   </div>
     81  </a>
    7482  {% endfor %}
    7583</div>
Note: See TracChangeset for help on using the changeset viewer.