Browse Source

feat: improve the home page

tags/v0.1.8
colorfulberry 5 years ago
parent
commit
ccacd4a2f4
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      templates/repo/cloudbrain/index.tmpl

+ 9
- 9
templates/repo/cloudbrain/index.tmpl View File

@@ -259,7 +259,7 @@


<!-- 查看 --> <!-- 查看 -->
<div class="one wide column"> <div class="one wide column">
<span class="ui text center clipboard">
<span class="ui text clipboard">
<a class="title" href="{{$.Link}}/{{.JobID}}"> <a class="title" href="{{$.Link}}/{{.JobID}}">
<span class="fitted">查看</span> <span class="fitted">查看</span>
</a> </a>
@@ -268,40 +268,40 @@


<!-- 评分 --> <!-- 评分 -->
<div class="one wide column"> <div class="one wide column">
<span class="ui text center clipboard">
<div class="ui text center clipboard">
<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}}"> <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>
</div>
</div> </div>


<!-- 删除镜像 --> <!-- 删除镜像 -->
<div class="one wide column"> <div class="one wide column">
<span class="ui text center clipboard">
<div class="ui text center clipboard">
<form id="delForm-{{.JobID}}" action="{{if ne .Status "STOPPED"}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/del{{end}}" method="post"> <form id="delForm-{{.JobID}}" action="{{if ne .Status "STOPPED"}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/del{{end}}" method="post">
{{$.CsrfTokenHtml}} {{$.CsrfTokenHtml}}
<a class="fitted" onclick="assertDelete(this)" style="{{if ne .Status "STOPPED"}}color:#CCCCCC{{end}}; font-size:16px; font-weight:bold">删除</a> <a class="fitted" onclick="assertDelete(this)" style="{{if ne .Status "STOPPED"}}color:#CCCCCC{{end}}; font-size:16px; font-weight:bold">删除</a>
</form> </form>
</span>
</div>
</div> </div>


<!-- 调试 --> <!-- 调试 -->
<div class="one wide column"> <div class="one wide column">
<span class="ui text center clipboard">
<div class="ui text center clipboard">
<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}}"> <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>
</div>
</div> </div>


<!-- 停止 --> <!-- 停止 -->
<div class="one wide column"> <div class="one wide column">
<span class="ui text center clipboard">
<div class="ui text center clipboard">
<form id="stopForm-{{.JobID}}" action="{{if ne .Status "RUNNING"}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/stop{{end}}" method="post"> <form id="stopForm-{{.JobID}}" action="{{if ne .Status "RUNNING"}}javascript:void(0){{else}}{{$.Link}}/{{.JobID}}/stop{{end}}" method="post">
{{$.CsrfTokenHtml}} {{$.CsrfTokenHtml}}
<a class="fitted" onclick="document.getElementById('stopForm-{{.JobID}}').submit();" style="{{if ne .Status "RUNNING"}}color:#CCCCCC{{end}}; font-size:16px; font-weight:bold">停止</a> <a class="fitted" onclick="document.getElementById('stopForm-{{.JobID}}').submit();" style="{{if ne .Status "RUNNING"}}color:#CCCCCC{{end}}; font-size:16px; font-weight:bold">停止</a>
</form> </form>
</span>
</div>
</div> </div>


<!-- 接收结果 --> <!-- 接收结果 -->


Loading…
Cancel
Save