diff --git a/module/mr/js/create.js b/module/mr/js/create.js index c9f9cdef18..316ecb0368 100644 --- a/module/mr/js/create.js +++ b/module/mr/js/create.js @@ -162,6 +162,8 @@ $(function() } $.get(url, function(response) { + if(response == "" && confirm(mrLang.addForApp) == true) window.open(hosts[hostID].url); + $('#sourceProject').html('').append(response); if(repo.project) { diff --git a/module/mr/lang/de.php b/module/mr/lang/de.php index dde731f59d..75fd977b34 100644 --- a/module/mr/lang/de.php +++ b/module/mr/lang/de.php @@ -199,3 +199,4 @@ $lang->mr->unlinkedTasks = 'Task not linked'; $lang->mr->confirmUnlinkTask = "Are you sure to remove this task?"; $lang->mr->taskSummary = "There are %s tasks on this page"; $lang->mr->notDelbranch = "The source branch cannot be deleted when it is a protected branch"; +$lang->mr->addForApp = "There are no projects under this server, do you want to go to add?"; diff --git a/module/mr/lang/en.php b/module/mr/lang/en.php index dde731f59d..75fd977b34 100644 --- a/module/mr/lang/en.php +++ b/module/mr/lang/en.php @@ -199,3 +199,4 @@ $lang->mr->unlinkedTasks = 'Task not linked'; $lang->mr->confirmUnlinkTask = "Are you sure to remove this task?"; $lang->mr->taskSummary = "There are %s tasks on this page"; $lang->mr->notDelbranch = "The source branch cannot be deleted when it is a protected branch"; +$lang->mr->addForApp = "There are no projects under this server, do you want to go to add?"; diff --git a/module/mr/lang/fr.php b/module/mr/lang/fr.php index dde731f59d..75fd977b34 100644 --- a/module/mr/lang/fr.php +++ b/module/mr/lang/fr.php @@ -199,3 +199,4 @@ $lang->mr->unlinkedTasks = 'Task not linked'; $lang->mr->confirmUnlinkTask = "Are you sure to remove this task?"; $lang->mr->taskSummary = "There are %s tasks on this page"; $lang->mr->notDelbranch = "The source branch cannot be deleted when it is a protected branch"; +$lang->mr->addForApp = "There are no projects under this server, do you want to go to add?"; diff --git a/module/mr/lang/vi.php b/module/mr/lang/vi.php index dde731f59d..75fd977b34 100644 --- a/module/mr/lang/vi.php +++ b/module/mr/lang/vi.php @@ -199,3 +199,4 @@ $lang->mr->unlinkedTasks = 'Task not linked'; $lang->mr->confirmUnlinkTask = "Are you sure to remove this task?"; $lang->mr->taskSummary = "There are %s tasks on this page"; $lang->mr->notDelbranch = "The source branch cannot be deleted when it is a protected branch"; +$lang->mr->addForApp = "There are no projects under this server, do you want to go to add?"; diff --git a/module/mr/lang/zh-cn.php b/module/mr/lang/zh-cn.php index 4dbcbb1fca..4e4ed474e4 100644 --- a/module/mr/lang/zh-cn.php +++ b/module/mr/lang/zh-cn.php @@ -199,3 +199,4 @@ $lang->mr->unlinkedTasks = '未关联任务'; $lang->mr->confirmUnlinkTask = "您确认移除该任务吗?"; $lang->mr->taskSummary = "本页共 %s 个任务"; $lang->mr->notDelbranch = "源分支为受保护分支时不可删除"; +$lang->mr->addForApp = "该服务器下没有项目,是否前往添加?"; diff --git a/module/mr/view/create.html.php b/module/mr/view/create.html.php index d963aedb09..95d794eafb 100644 --- a/module/mr/view/create.html.php +++ b/module/mr/view/create.html.php @@ -13,6 +13,7 @@ +mr);?>