Skip to content

Instantly share code, notes, and snippets.

@bastianccm
Last active February 26, 2020 13:18
Show Gist options
  • Save bastianccm/909a168b0b1b13ef4135584418eedf62 to your computer and use it in GitHub Desktop.
Save bastianccm/909a168b0b1b13ef4135584418eedf62 to your computer and use it in GitHub Desktop.
{{ if .LatestQuestionList }}
<ul>
{{ range $question := .LatestQuestionList }}
<li><a href="{{ url "detail" "question_id" (print $question.ID) }}">{{ $question.QuestionText }}</a></li>
{{ end }}
</ul>
{{ else }}
<p>No polls available.</p>
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment