Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
research-questions
Commits
615f2f16
Commit
615f2f16
authored
Dec 03, 2013
by
Jean Michel Rouly
Browse files
View questions on index page.
parent
cebb8445
Changes
1
Hide whitespace changes
Inline
Side-by-side
researchquestions/templates/index.html
View file @
615f2f16
...
...
@@ -6,6 +6,30 @@ HNRS 110 • Homepage
{% block content %}
Hello, world.
{% for question in questions %}
<div
id=
"question{{ question.pk }}"
class=
"question-box"
>
<div
class=
"question-box-title"
>
<div
class=
"question-box-title-left"
>
{{question.user.first_name}} {{question.user.last_name}}
</div>
<div
class=
"question-box-title-right"
>
{{question.rating}}
</div>
</div>
<div
class=
"question-text"
id=
"question-text{{question.pk}}"
>
{{question.text}}
</div>
<div
class=
"question-box-footer"
>
Toggle Comments
</div>
</div>
{% endfor %}
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment