| @@ -169,6 +169,11 @@ | |||||
| .dis { | .dis { | ||||
| margin-bottom: 20px; | margin-bottom: 20px; | ||||
| } | } | ||||
| .disabled { | |||||
| cursor: pointer; | |||||
| pointer-events: none; | |||||
| } | |||||
| </style> | </style> | ||||
| <!-- 弹窗 --> | <!-- 弹窗 --> | ||||
| @@ -261,9 +266,10 @@ | |||||
| </span> | </span> | ||||
| </div> | </div> | ||||
| <!-- 评分 --> | |||||
| <div class="one wide column"> | <div class="one wide column"> | ||||
| <span class="ui text center clipboard"> | <span class="ui text center clipboard"> | ||||
| <a class="title" target="_new" href="{{if and (ne .Status "WAITING") (eq .JobType "BENCHMARK")}}{{$.Link}}/{{.JobID}}/benchmark{{else}}javascript:void(0){{end}}" style="{{if and (ne .Status "WAITING") (eq .JobType "BENCHMARK")}}{{else}}color:#CCCCCC{{end}}"> | |||||
| <a class="title" onclick="stop(this)" href="{{if and (ne .Status "WAITING") (eq .JobType "BENCHMARK")}}{{$.Link}}/{{.JobID}}/benchmark{{else}}javascript:void(0);{{end}}" style="{{if and (ne .Status "WAITING") (eq .JobType "BENCHMARK")}}{{else}}color:#CCCCCC{{end}}"> | |||||
| <span class="fitted">评分</span> | <span class="fitted">评分</span> | ||||
| </a> | </a> | ||||
| </span> | </span> | ||||
| @@ -282,7 +288,7 @@ | |||||
| <!-- 调试 --> | <!-- 调试 --> | ||||
| <div class="one wide column"> | <div class="one wide column"> | ||||
| <span class="ui text center clipboard"> | <span class="ui text center clipboard"> | ||||
| <a class="title" target="_new" href="{{if not .CanDebug}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/debug{{end}}" style="{{if not .CanDebug}}color:#CCCCCC{{end}}"> | |||||
| <a class="title" onclick="stop(this)" href="{{if not .CanDebug}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/debug{{end}}" style="{{if not .CanDebug}}color:#CCCCCC{{end}}"> | |||||
| <span class="fitted">调试</span> | <span class="fitted">调试</span> | ||||
| </a> | </a> | ||||
| </span> | </span> | ||||
| @@ -380,6 +386,15 @@ | |||||
| {{template "base/footer" .}} | {{template "base/footer" .}} | ||||
| <script> | <script> | ||||
| // 调试和评分新开窗口 | |||||
| function stop(obj) { | |||||
| if (obj.style.color != "rgb(204, 204, 204)") { | |||||
| obj.target = '_blank' | |||||
| } else { | |||||
| return | |||||
| } | |||||
| } | |||||
| // 删除时用户确认 | // 删除时用户确认 | ||||
| function assertDelete(obj) { | function assertDelete(obj) { | ||||
| if (obj.style.color == "rgb(204, 204, 204)") { | if (obj.style.color == "rgb(204, 204, 204)") { | ||||