There should be a way to associate bugs with analysis tasks
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / index.html
index 039c76f..a52b635 100755 (executable)
                     {{input action="searchCommit" placeholder="Name or email" value=commitSearchKeyword}}
                 </form>
 
-                <div {{bind-attr class=":bugs-pane showingAnalysisPane::hidden"}}>
+                <div {{bind-attr class=":analysis-pane showingAnalysisPane::hidden"}}>
                     <table>
                         <tbody>
                             <tr>
         {{/if}}
         <div class="rangeBarsContainerInlineStyle">
             {{#each rangeBars}}
-                {{#link-to linkRoute linkId}}
+                {{#link-to linkRoute linkId title=label}}
                     <span class="rangeBar" {{bind-attr style=inlineStyle}}></span>
                 {{/link-to}}
             {{/each}}
             {{partial "navbar"}}
         </header>
 
-        <h2 id="analysis-task-title">{{name}}</h2>
+        <h2 id="analysis-task-title">{{label}}</h2>
         {{#if platform.label}}
             <h3 id="analysis-task-testname">{{metric.fullName}} - {{platform.label}}</h3>
+        {{/if}}
 
+        {{#if chartData}}
             <section class="analysis-chart-pane chart-pane">
                 <div class="svg-container">
                     {{interactive-chart
                         markedPoints=markedPoints}}
                 </div>
                 <div class="details">
+                    <table class="analysis-bugs">
+                        <tbody>
+                            {{#each bugTrackers}}
+                                <tr>
+                                    <th>{{label}}</th>
+                                    <td>
+                                        <form {{action "associateBug" this editedBugNumber on="submit"}}>
+                                            {{input type=text value=editedBugNumber}}
+                                        </form>
+                                    </td>
+                                </tr>
+                            {{/each}}
+                        </tbody>
+                    </table>
                     <table>
                         <tbody>
                             {{#each analysisPoints}}
             </section>
 
             {{#each testGroups}}
-                <section class="test-groups">
+                <section class="analysis-group">
                     <table>
                         <caption>{{name}}</caption>
                         <thead>
                 </section>
             {{/each}}
 
-            <form class="test-groups">
+            <form class="analysis-group">
                 <table>
                     <caption><input name="name" placeholder="Test group name" required></caption>
                     <thead>