better UI copywriting about next schedule

pull/109/head
QLeelulu 2018-10-13 22:04:08 +08:00
parent 1d90ef8064
commit 9845661794
6 changed files with 34 additions and 34 deletions

View File

@ -265,11 +265,11 @@ func (j *Job) GetList(ctx *Context) {
for i := range jobList { for i := range jobList {
jobList[i].LatestStatus = m[jobList[i].ID] jobList[i].LatestStatus = m[jobList[i].ID]
nt := jobList[i].GetNextRunTime() nt := jobList[i].GetNextRunTime()
// if nt.IsZero() { if nt.IsZero() {
// jobList[i].NextRunTime = "Never run" jobList[i].NextRunTime = "NO!!"
// } else { } else {
jobList[i].NextRunTime = nt.Format("2006-01-02 15:04:05") jobList[i].NextRunTime = nt.Format("2006-01-02 15:04:05")
// } }
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -61,7 +61,7 @@
<div id="app"> <div id="app">
<div id="initloader"></div> <div id="initloader"></div>
</div> </div>
<script src="build.js?v=cb7b899"></script> <script src="build.js?v=1d90ef8"></script>
</body> </body>
</html> </html>

View File

@ -189,7 +189,7 @@ export default {
}, },
formatNextRunTime: function(nextRunTime){ formatNextRunTime: function(nextRunTime){
return this.$L('next will run on {nextTime}', nextRunTime); return this.$L('next schedule: {nextTime}', nextRunTime);
}, },
showExecuteJobModal: function(jobName, jobGroup, jobId){ showExecuteJobModal: function(jobName, jobGroup, jobId){

View File

@ -75,7 +75,7 @@ var language = {
'all groups': 'All groups', 'all groups': 'All groups',
'all nodes': 'All nodes', 'all nodes': 'All nodes',
'on {node} took {times}, {begin ~ end}': 'On {0} took {1}, {2}', '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', 'create job': 'Create job',
'update job': 'Update job', 'update job': 'Update job',
'output': 'Output', 'output': 'Output',

View File

@ -76,7 +76,7 @@ var language = {
'all groups': '所有分组', 'all groups': '所有分组',
'all nodes': '所有节点', 'all nodes': '所有节点',
'on {node} took {times}, {begin ~ end}': '于 {0} 耗时 {1}, {2}', 'on {node} took {times}, {begin ~ end}': '于 {0} 耗时 {1}, {2}',
'next will run on {nextTime}': '下次将运行于 {0}', 'next schedule: {nextTime}': '下个调度: {0}',
'create job': '新建任务', 'create job': '新建任务',
'update job': '更新任务', 'update job': '更新任务',
'output': '输出', 'output': '输出',