UI to associate bugs with an analysis task is crappy
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / index.html
index 8c1fac1441d5955ca269ee56671acd80a6f023ca..30f9d1cff55f7cb941d85836994654de7c1a1b89 100755 (executable)
@@ -86,7 +86,7 @@
                                 {{#if chartData}}
                                     <div class="dashboard-status">
                                         {{#if latestStatus}}
                                 {{#if chartData}}
                                     <div class="dashboard-status">
                                         {{#if latestStatus}}
-                                            {{latestStatus.currentValue}} {{chartData.unit}}
+                                            {{latestStatus.currentValue}}{{chartData.unit}}
                                             {{#if latestStatus.label}}
                                                 <span {{bind-attr class=":status-label latestStatus.className"}}>{{latestStatus.label}}</span>
                                             {{/if}}
                                             {{#if latestStatus.label}}
                                                 <span {{bind-attr class=":status-label latestStatus.className"}}>{{latestStatus.label}}</span>
                                             {{/if}}
                     <tr>
                         <th>{{label}}</th>
                         <td>
                     <tr>
                         <th>{{label}}</th>
                         <td>
-                            {{#each bugs}}
-                                <a {{bind-attr href=bugUrl}} target="_blank">{{bugNumber}}</a>
-                            {{/each}}
+                        [{{bugUrl}}]
+                        <a {{bind-attr href=bugUrl}} target="_blank">{{bugNumber}}</a>
                         </td>
                     </tr>
                 {{/if}}
                         </td>
                     </tr>
                 {{/if}}
     <script type="text/x-handlebars" data-template-name="analysisStatusForm">
         <table class="analysis-bugs">
             <tbody>
     <script type="text/x-handlebars" data-template-name="analysisStatusForm">
         <table class="analysis-bugs">
             <tbody>
-                {{#each bugTrackers}}
+                {{#each model.bugs}}
                     <tr>
                     <tr>
-                        <th><label {{bind-attr for=elementId}}>{{label}}</label></th>
+                        <th>{{bugTracker.name}}</th>
                         <td>
                         <td>
-                            <form {{action "associateBug" this editedBugNumber on="submit"}}>
-                                {{input id=elementId type=text value=editedBugNumber}}
-                            </form>
+                            <a {{bind-attr href=url}} target="_blank">{{number}}</a>
+                            <a href="javascript:false" {{action "deleteBug" this}}>{{partial "close-button"}}</a>
                         </td>
                     </tr>
                 {{/each}}
                         </td>
                     </tr>
                 {{/each}}
+                {{#if bugTrackers}}
+                    <tr>
+                        <td>
+                            {{view Ember.Select content=bugTrackers optionValuePath="content" optionLabelPath="content.name" value=chosenBugTracker}}
+                        </td>
+                        <td>
+                            {{input id=elementId type=text value=editedBugNumber}}
+                            <button {{action "addBug" chosenBugTracker editedBugNumber}}>Add</button>
+                        </td>
+                    </tr>
+                {{/if}}
             </tbody>
             <tbody>
                 <tr>
             </tbody>
             <tbody>
                 <tr>