Changeset 85247 in webkit
- Timestamp:
- Apr 28, 2011 3:22:20 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r85246 r85247 1 2011-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 1 15 2011-04-28 Dirk Pranke <dpranke@chromium.org> 2 16 -
trunk/Tools/QueueStatusServer/handlers/statusbubble.py
r70025 r85247 38 38 39 39 class StatusBubble(webapp.RequestHandler): 40 _queues_to_display = [queue for queue in Queue.all() if queue.is_ews()]41 42 40 def _build_bubble(self, queue, attachment): 43 41 queue_status = attachment.status_for_queue(queue) … … 53 51 def get(self, attachment_id): 54 52 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)] 56 55 template_values = { 57 56 "bubbles": bubbles, -
trunk/Tools/QueueStatusServer/templates/statusbubble.html
r74158 r85247 24 24 font-size: 11px; 25 25 cursor: pointer; 26 text-decoration: none; 27 color: black; 28 } 29 .status:hover { 30 border-color: #666; 26 31 } 27 32 .none { 28 33 cursor: auto; 34 } 35 .none:hover { 36 border-color: #AAA; 29 37 } 30 38 .pass { … … 49 57 </style> 50 58 <script> 51 function statusDetail(patch_id) {52 top.location = "/patch/" + patch_id53 }54 59 window.addEventListener("message", function(e) { 55 60 if (e.data == 'containerMetrics') { … … 64 69 <div id="bubbleContainer"> 65 70 {% 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 > 69 77 {{ bubble.name }} 70 78 {% if bubble.queue_position %} 71 79 <span class="queue_position">#{{ bubble.queue_position }}</span> 72 80 {% endif %} 73 </ div>81 </a> 74 82 {% endfor %} 75 83 </div>
Note: See TracChangeset
for help on using the changeset viewer.