Skip to content

Commit

Permalink
Add example how to link to Jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaibu committed Oct 8, 2021
1 parent 5cb87be commit 796ddca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Guide/jobs.markdown
Expand Up @@ -163,6 +163,20 @@ instance FrontController WebApplication where

This will mount a jobs dashboard under `/jobs/`.

If you would like to link to Jobs page you could add for example on `Layout.hs`

```haskell
import IHP.Job.Dashboard

navbar :: Html
navbar = [hsx|
<nav>
<!-- ... -->
<a href={ListJobsAction}>Jobs</a>
</nav>
|]
```

### Authentication

The second type parameter to [`JobsDashboardController`](https://ihp.digitallyinduced.com/api-docs/IHP-Job-Dashboard-Types.html#t:JobsDashboardController) is a type that defines how users should be authenticated when visiting any of the jobs pages.
Expand Down

0 comments on commit 796ddca

Please sign in to comment.