mirror of https://github.com/shunfei/cronsun
better UI copywriting about next schedule
parent
1d90ef8064
commit
9845661794
10
web/job.go
10
web/job.go
|
@ -265,11 +265,11 @@ func (j *Job) GetList(ctx *Context) {
|
|||
for i := range jobList {
|
||||
jobList[i].LatestStatus = m[jobList[i].ID]
|
||||
nt := jobList[i].GetNextRunTime()
|
||||
// if nt.IsZero() {
|
||||
// jobList[i].NextRunTime = "Never run"
|
||||
// } else {
|
||||
jobList[i].NextRunTime = nt.Format("2006-01-02 15:04:05")
|
||||
// }
|
||||
if nt.IsZero() {
|
||||
jobList[i].NextRunTime = "NO!!"
|
||||
} else {
|
||||
jobList[i].NextRunTime = nt.Format("2006-01-02 15:04:05")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -61,7 +61,7 @@
|
|||
<div id="app">
|
||||
<div id="initloader"></div>
|
||||
</div>
|
||||
<script src="build.js?v=cb7b899"></script>
|
||||
<script src="build.js?v=1d90ef8"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -189,7 +189,7 @@ export default {
|
|||
},
|
||||
|
||||
formatNextRunTime: function(nextRunTime){
|
||||
return this.$L('next will run on {nextTime}', nextRunTime);
|
||||
return this.$L('next schedule: {nextTime}', nextRunTime);
|
||||
},
|
||||
|
||||
showExecuteJobModal: function(jobName, jobGroup, jobId){
|
||||
|
|
|
@ -75,7 +75,7 @@ var language = {
|
|||
'all groups': 'All groups',
|
||||
'all nodes': 'All nodes',
|
||||
'on {node} took {times}, {begin ~ end}': 'On {0} took {1}, {2}',
|
||||
'next will run on {nextTime}': 'Next will run at {0}',
|
||||
'next schedule: {nextTime}': 'Next schedule: {0}',
|
||||
'create job': 'Create job',
|
||||
'update job': 'Update job',
|
||||
'output': 'Output',
|
||||
|
|
|
@ -76,7 +76,7 @@ var language = {
|
|||
'all groups': '所有分组',
|
||||
'all nodes': '所有节点',
|
||||
'on {node} took {times}, {begin ~ end}': '于 {0} 耗时 {1}, {2}',
|
||||
'next will run on {nextTime}': '下次将运行于 {0}',
|
||||
'next schedule: {nextTime}': '下个调度: {0}',
|
||||
'create job': '新建任务',
|
||||
'update job': '更新任务',
|
||||
'output': '输出',
|
||||
|
|
Loading…
Reference in New Issue