| @@ -0,0 +1,12 @@ | |||||
| {{if .NotStopTaskCount}} | |||||
| <div class="ui message" style="background-color: rgba(242, 113, 28, 0.05);border: 1px solid rgba(242, 113, 28, 1);border-radius: 5px;"> | |||||
| <i class="close icon"></i> | |||||
| <div style="display: flex;align-items: center;"> | |||||
| <i class="ri-information-line" style="font-size: 35px;color: rgba(242, 113, 28, 1);;"></i> | |||||
| <div style="text-align: left;margin-left: 1rem;"> | |||||
| <div style="font-weight: 600;line-height: 2;">您已经有 <span style="color:rgba(242, 113, 28, 1);">同类任务</span> 正在等待或运行中,请等待任务结束再创建</div> | |||||
| <div style="color:#939393">可以在 “<a href="#" >个人中心 > 云脑任务</a>” 查看您所有的云脑任务</div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| {{end}} | |||||
| @@ -28,6 +28,7 @@ | |||||
| <div class="ui negative message" id="messageInfo" style="display:none;"> | <div class="ui negative message" id="messageInfo" style="display:none;"> | ||||
| <p></p> | <p></p> | ||||
| </div> | </div> | ||||
| {{template "custom/alert_cb" .}} | |||||
| <form id="form_id" class="ui form" action="{{.Link}}" method="post"> | <form id="form_id" class="ui form" action="{{.Link}}" method="post"> | ||||
| {{.CsrfTokenHtml}} | {{.CsrfTokenHtml}} | ||||
| <input type="hidden" name='isBranches' value="{{.Branches}}"> | <input type="hidden" name='isBranches' value="{{.Branches}}"> | ||||
| @@ -15,6 +15,8 @@ | |||||
| <div class="ui negative message" id="messageInfo"> | <div class="ui negative message" id="messageInfo"> | ||||
| <p></p> | <p></p> | ||||
| </div> | </div> | ||||
| {{template "custom/alert_cb" .}} | |||||
| <form class="ui form" id="form_id" action="{{.Link}}" method="post"> | <form class="ui form" id="form_id" action="{{.Link}}" method="post"> | ||||
| {{.CsrfTokenHtml}} | {{.CsrfTokenHtml}} | ||||
| <h3 class="ui top attached header"> | <h3 class="ui top attached header"> | ||||
| @@ -178,8 +180,18 @@ | |||||
| document.getElementById("mask").style.display = "none" | document.getElementById("mask").style.display = "none" | ||||
| } | } | ||||
| } | } | ||||
| $('select.dropdown') | |||||
| .dropdown(); | |||||
| $(function() { | |||||
| $("#cloudbrain_job_type").change(function() { | |||||
| if ($(this).val() == 'BENCHMARK') { | |||||
| $(".cloudbrain_benchmark").show(); | |||||
| } else { | |||||
| $(".cloudbrain_benchmark").hide(); | |||||
| } | |||||
| }) | |||||
| }) | |||||
| $(document).ready(function(){ | $(document).ready(function(){ | ||||
| $(document).keydown(function(event){ | $(document).keydown(function(event){ | ||||
| if(event.keyCode==13){ | if(event.keyCode==13){ | ||||
| @@ -575,3 +575,6 @@ function AdaminSearchControll() { | |||||
| } | } | ||||
| userSearchControll(); | userSearchControll(); | ||||
| AdaminSearchControll(); | AdaminSearchControll(); | ||||
| $(".message .close").on("click", function () { | |||||
| $(this).closest(".message").transition("fade"); | |||||
| }); | |||||
| @@ -1,8 +1,8 @@ | |||||
| .form { | .form { | ||||
| .help { | .help { | ||||
| color: #999999; | color: #999999; | ||||
| padding-top: .6em; | |||||
| padding-top: 0.6em; | |||||
| display: inline-block; | display: inline-block; | ||||
| } | } | ||||
| } | } | ||||
| @@ -109,7 +109,7 @@ | |||||
| @media screen and (max-height: 575px) { | @media screen and (max-height: 575px) { | ||||
| #rc-imageselect, | #rc-imageselect, | ||||
| .g-recaptcha { | .g-recaptcha { | ||||
| transform: scale(.77); | |||||
| transform: scale(0.77); | |||||
| transform-origin: 0 0; | transform-origin: 0 0; | ||||
| } | } | ||||
| } | } | ||||
| @@ -141,7 +141,7 @@ | |||||
| } | } | ||||
| } | } | ||||
| input[type=number] { | |||||
| input[type="number"] { | |||||
| -moz-appearance: textfield; | -moz-appearance: textfield; | ||||
| } | } | ||||
| @@ -157,6 +157,13 @@ | |||||
| &.new.repo, | &.new.repo, | ||||
| &.new.migrate, | &.new.migrate, | ||||
| &.new.fork { | &.new.fork { | ||||
| .ui.message { | |||||
| @media only screen and (min-width: 768px) { | |||||
| width: 800px !important; | |||||
| } | |||||
| margin: 0 auto; | |||||
| margin-bottom: 1rem; | |||||
| } | |||||
| #create-page-form; | #create-page-form; | ||||
| form { | form { | ||||