浏览代码

[jobbrowser] Fix broken link to jobsub

bc Wong 13 年之前
父节点
当前提交
a6bdc884cc
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      apps/jobbrowser/src/jobbrowser/templates/jobs.mako

+ 5 - 3
apps/jobbrowser/src/jobbrowser/templates/jobs.mako

@@ -109,9 +109,11 @@ ${commonheader("Job Browser", "jobbrowser")}
 	<h1>Welcome to the Job Browser</h1>
 	<div>
 		<p>There aren't any jobs running. Let's fix that.</p>
-		<a href="/jobsub/list/">Launch the Job Designer</a>
-		% if "beeswax" in appmanager.DESKTOP_APPS:
-		or <a href="/beeswax/">Launch Beeswax</a>
+		% if appmanager.get_desktop_module('jobsub') is not None:
+		<a href="/jobsub/">Launch the Job Designer</a><br/>
+		% endif
+		% if appmanager.get_desktop_module('beeswax') is not None:
+		<a href="/beeswax/">Launch Beeswax</a><br/>
 		% endif
 	</div>
 	% endif