Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fix to library.hbs to make each title a link to its library page #34

Open
shannonjensen opened this issue Dec 15, 2017 · 1 comment

Comments

@shannonjensen
Copy link

instead of:

{{#each books}}
  <ul>
    <li>{{ title }} - {{ author }}</li>
  </ul>
{{/each}}

you could do something like:

{{#each books}}
  <ul>
    <li><a href='/library/{{id}}'>{{ title }}</a> - {{ author }}</li>
  </ul>
{{/each}}
@lexadecimals
Copy link
Collaborator

Thanks, Shannon, I think we've already written the code for this but not yet pushed it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants