Add comment display feature
Problem Context
Users should be able to see comments left by others on articles.
Intermediate
100 points
File Changes (1)
src/main/resources/templates/article-view.html
MODIFIED
@@ -15 +15 @@
| 15 | 15 | <div class="comments"> |
| 16 | 16 | <h3>Comments</h3> |
| 17 | + <div th:each="comment : ${comments}"> |
|
| 18 | + <p th:utext="${comment.content}"></p> |
|
| 19 | + <small th:text="${comment.author}"></small> |
|
| 20 | + </div> |
|
| 17 | 21 | </div> |
Login Required: You must be registered to submit reviews and receive AI feedback.
Register or
login to start reviewing!
Your Review
Review Tips
- Look for security vulnerabilities (SQL injection, XSS, etc.)
- Check for null pointer exceptions and error handling
- Consider performance implications
- Evaluate code maintainability and readability
- Check for proper resource management
- Look for logic errors or edge cases