Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Academe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nathan Kibanoff
Academe
Commits
67580d3f
Commit
67580d3f
authored
Oct 12, 2017
by
Gab De Jesus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more data, formatted html to display all data of reviews
parent
6d0dedb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
5 deletions
+46
-5
db.sqlite3
db.sqlite3
+0
-0
index.html
reviews/templates/index.html
+46
-5
No files found.
db.sqlite3
View file @
67580d3f
No preview for this file type
reviews/templates/index.html
View file @
67580d3f
<center><h1>
Reviews
</h1></center>
{% for review in reviews %}
<h2>
{{ review.prof.first_name }} {{ review.prof.last_name }}
</h2>
<p>
{{ review.message }}
</p>
{% endfor %}
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>
Academe
</title>
<style>
table
{
font-family
:
arial
,
sans-serif
;
border-collapse
:
collapse
;
width
:
100%
;
}
td
,
th
{
border
:
1px
solid
#dddddd
;
text-align
:
left
;
padding
:
8px
;
}
tr
:nth-child
(
even
)
{
background-color
:
#dddddd
;
}
</style>
</head>
<body>
<center><h1>
Reviews
</h1></center>
<table
style=
"border: 1px solid black"
>
<tr>
<th>
Prof Name
</th>
<th>
Review
</th>
<th>
Rating
</th>
<th>
Created At
</th>
<th>
Updated At
</th>
</tr>
<!-- Create the table rows -->
{% for review in reviews %}
<tr>
<td>
{{ review.prof.first_name }} {{ review.prof.last_name }}
</td>
<td>
{{ review.message }}
</td>
<td>
{{ review.rating }}
</td>
<td>
{{ review.created_at }}
</td>
<td>
{{ review.updated_at }}
</td>
</tr>
{% endfor %}
</table>
</body>
</html>
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