@(entity:com.huskycode.disco.types.Entity, content:String, dependsOn:List[com.huskycode.disco.types.Entity], dependsBy:List[com.huskycode.disco.types.Entity])

<html>
<head>
  <title>View</title>
  <link rel="stylesheet" href="@routes.Assets.at("stylesheets/prettify.css")"/>
  <script src="@routes.Assets.at("javascripts/prettify.js")" type="text/javascript"></script>
  <script src="@routes.Assets.at("javascripts/lang-sql.js")" type="text/javascript"></script>
</head>
<body onload="prettyPrint()">
<h1>@entity.name</h1>
<h2>@entity.reader</h2>
<div>Depends on</div>
<ul>
@dependsOn.map { en =>
	<li>@(en.name) (@(en.reader))</li>
}
</ul>
<div>Is a dependency of</div>
<ul>
@dependsBy.map { en =>
	<li>@(en.name)  (@(en.reader))</li>
}
</ul>
<div>Content</div>
<pre id="content" class="prettyprint linenums:1">@Html(content)</pre>
</body>
</html>


@(entity:com.huskycode.disco.types.Entity, content:String, dependsOn:List[com.huskycode.disco.types.Entity], dependsBy:List[com.huskycode.disco.types.Entity])

<html>
<head>
  <title>View</title>
  <link rel="stylesheet" href="@routes.Assets.at("stylesheets/prettify.css")"/>
  <script src="@routes.Assets.at("javascripts/prettify.js")" type="text/javascript"></script>
  <script src="@routes.Assets.at("javascripts/lang-sql.js")" type="text/javascript"></script>
</head>
<body onload="prettyPrint()">
<h1>@entity.name</h1>
<h2>@entity.reader</h2>
<div>Depends on</div>
<ul>
@dependsOn.map { e =>
	<li><a href="@routes.Application.view(e.reader.toString,java.net.URLEncoder.encode(e.name,"UTF-8"))">@e.name</a></li>
}
</ul>
<div>Is a dependency of</div>
<ul>
@dependsBy.map { e =>
	<li><a href="@routes.Application.view(e.reader.toString,java.net.URLEncoder.encode(e.name,"UTF-8"))">@e.name</a></li>
}
</ul>
<div>Content</div>
<pre id="content" class="prettyprint linenums:1">@Html(content)</pre>
</body>
</html>


Add link from view page
Add link from view page
