| @@ -159,12 +159,12 @@ function getTime(UpdatedUnix,currentTime){ | |||||
| var seconds= leave3; | var seconds= leave3; | ||||
| if(hours == 0 && minutes == 0){ | if(hours == 0 && minutes == 0){ | ||||
| return seconds + "秒前" | |||||
| return seconds + getRepoOrOrg(6,isZh); | |||||
| }else{ | }else{ | ||||
| if(hours > 0){ | if(hours > 0){ | ||||
| return hours + "小时前"; | |||||
| return hours + getRepoOrOrg(4,isZh); | |||||
| }else{ | }else{ | ||||
| return minutes + "分钟前"; | |||||
| return minutes + getRepoOrOrg(5,isZh); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -266,13 +266,19 @@ var actionNameEN={ | |||||
| var repoAndOrgZH={ | var repoAndOrgZH={ | ||||
| "1":"项目", | "1":"项目", | ||||
| "2":"成员", | "2":"成员", | ||||
| "3":"团队" | |||||
| "3":"团队", | |||||
| "4":"小时前", | |||||
| "5":"分钟前", | |||||
| "6":"秒前" | |||||
| }; | }; | ||||
| var repoAndOrgEN={ | var repoAndOrgEN={ | ||||
| "1":"repository", | "1":"repository", | ||||
| "2":"Members ", | "2":"Members ", | ||||
| "3":"Teams" | |||||
| "3":"Teams", | |||||
| "4":"hours ago", | |||||
| "5":"minutes ago", | |||||
| "6":"seconds ago" | |||||
| }; | }; | ||||