Skip to content

Commit 92e202b

Browse files
committed
Removed outdated glyphicons
1 parent 59e69a8 commit 92e202b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

en/homework/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Time to do something similar, but for draft posts.
2121
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 {% raw %}`{% if user.is_authenticated %}`{% endraw %} check, right after the button for adding new posts.
2222

2323
```django
24-
<a href="{% url 'post_draft_list' %}" class="top-menu"><span class="glyphicon glyphicon-edit"></span></a>
24+
<a href="{% url 'post_draft_list' %}" class="top-menu">Drafts</span></a>
2525
```
2626

2727
Next: urls! In `blog/urls.py` we add:
@@ -85,7 +85,7 @@ into these:
8585
</div>
8686
{% else %}
8787
<form method="POST" action="{% url 'post_publish' pk=post.pk %}" class="post-form">{% csrf_token %}
88-
<button type="submit" class="post btn btn-info" name="publish">Publish</button>
88+
<button type="submit" class="post btn btn-secondary" name="publish">Publish</button>
8989
</form>
9090
{% endif %}
9191
```
@@ -139,7 +139,7 @@ Let's open `blog/templates/blog/post_detail.html` once again and add these lines
139139
```django
140140
<form method="POST" action="{% url 'post_remove' pk=post.pk %}" class="post-form">{% csrf_token %}
141141
<button type="submit" class="post btn btn-danger" name="delete">
142-
<span class="glyphicon glyphicon-remove"></span>
142+
Delete
143143
</button>
144144
</form>
145145
```

0 commit comments

Comments
 (0)