Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion en/homework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Remember the chapter about querysets? We created a view `post_list` that display

Time to do something similar, but for draft posts.

Let's add a link in `blog/templates/blog/base.html` in the header. We don't want to show our list of drafts to everybody, so we'll put it inside the `{% if user.is_authenticated %}` check, right after the button for adding new posts.
Let's add a link in the `<div class="page-header">` section of `blog/templates/blog/base.html`. We don't want to show our list of drafts to everybody, so we'll put it inside the `{% if user.is_authenticated %}` check, right after the button for adding new posts.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just say Let's add a link in the page-header section of instead.

Copy link
Member

@das-g das-g Sep 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just say Let's add a link in the page-header section of instead.

Would you like to commit this change to this PR's branch, @amakarudze?


```django
<a href="{% url 'post_draft_list' %}" class="top-menu"><span class="glyphicon glyphicon-edit"></span></a>
Expand Down