-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add policy viewer routes in Postgres DB example
- Loading branch information
1 parent
6c94bcc
commit 8f8a909
Showing
5 changed files
with
157 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" /> | ||
<title>Policies</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
</head> | ||
<body class="bg-slate-100 md:flex md:justify-center"> | ||
<div class="w-full m-8"> | ||
<h1 class="text-4xl font-bold mb-8">Policies</h1> | ||
{{#each accepted}} | ||
<div class="bg-white shadow-md rounded px-8 pt-8 pb-8 mb-8"> | ||
<div> | ||
<a | ||
href="/policies/{{id}}" | ||
class="text-blue-600 text-xl visited:text-purple-600" | ||
>{{program}}</a | ||
> | ||
</div> | ||
<div>{{num_participants}} participants</div> | ||
<div>Own Role: <strong>Party {{party}}</strong></div> | ||
<div>Leader: <strong>Party {{leader}}</strong></div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
{{#with policy}} | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" /> | ||
<title>Policy {{program}}</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
</head> | ||
<body class="bg-slate-100 md:flex md:justify-center"> | ||
<div class="w-full m-8"> | ||
<h1 class="text-4xl font-bold mb-8"> | ||
<a href="/policies" class="text-blue-600 visited:text-purple-600" | ||
>Policies</a | ||
> | ||
> {{program}} | ||
</h1> | ||
<div class="bg-white shadow-md rounded px-8 pt-8 pb-8 mb-8"> | ||
<div>{{num_participants}} participants</div> | ||
<ol start="0" class="list-decimal mb-8"> | ||
{{#each participants}} | ||
<li class="ml-8"><pre>{{this}}</pre></li> | ||
{{/each}} | ||
</ol> | ||
<div>Own Role: <strong>Party {{party}}</strong></div> | ||
<div>Leader: <strong>Party {{leader}}</strong></div> | ||
<pre class="mt-8 text-slate-500"><code>{{code}}</code></pre> | ||
</div> | ||
</div> | ||
</body> | ||
{{/with}} | ||
</html> |