@@ -70,7 +70,7 @@ After editing the line, your HTML file should now look like this:
70
70
<html >
71
71
<head >
72
72
<title >Django Girls blog</title >
73
- <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/bootstrap@4.5. 3/dist/css/bootstrap.min.css" integrity =" sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2 " crossorigin =" anonymous" >
73
+ <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/bootstrap@5.1. 3/dist/css/bootstrap.min.css" integrity =" sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3 " crossorigin =" anonymous" >
74
74
<link href =' //fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext' rel =' stylesheet' type =' text/css' >
75
75
<link rel =" stylesheet" href =" {% static 'css/blog.css' %}" >
76
76
</head >
@@ -163,7 +163,7 @@ OK, so let's see how the HTML in `post_edit.html` should look:
163
163
<h2 >New post</h2 >
164
164
<form method =" POST" class =" post-form" >{% csrf_token %}
165
165
{{ form.as_p }}
166
- <button type =" submit" class =" save btn btn-default " >Save</button >
166
+ <button type =" submit" class =" save btn btn-secondary " >Save</button >
167
167
</form >
168
168
{% endblock %}
169
169
```
@@ -290,7 +290,7 @@ Open `blog/templates/blog/post_detail.html` in the code editor and add the follo
290
290
{% filename %}blog/templates/blog/post_detail.html{% endfilename %}
291
291
``` html
292
292
<aside class =" actions" >
293
- <a class =" btn btn-default " href =" {% url 'post_edit' pk=post.pk %}" >
293
+ <a class =" btn btn-secondary " href =" {% url 'post_edit' pk=post.pk %}" >
294
294
{% include './icons/pencil-fill.svg' %}
295
295
</a >
296
296
</aside >
@@ -305,7 +305,7 @@ so that the template will look like this:
305
305
{% block content %}
306
306
<article class =" post" >
307
307
<aside class =" actions" >
308
- <a class =" btn btn-default " href =" {% url 'post_edit' pk=post.pk %}" >
308
+ <a class =" btn btn-secondary " href =" {% url 'post_edit' pk=post.pk %}" >
309
309
{% include './icons/pencil-fill.svg' %}
310
310
</a >
311
311
</aside >
@@ -408,7 +408,7 @@ Open `blog/templates/blog/post_detail.html` in the code editor and find this lin
408
408
409
409
{% filename %}blog/templates/blog/post_detail.html{% endfilename %}
410
410
``` html
411
- <a class =" btn btn-default " href =" {% url 'post_edit' pk=post.pk %}" >
411
+ <a class =" btn btn-secondary " href =" {% url 'post_edit' pk=post.pk %}" >
412
412
{% include './icons/pencil-fill.svg' %}
413
413
</a >
414
414
```
@@ -418,7 +418,7 @@ Change it to this:
418
418
{% filename %}blog/templates/blog/post_detail.html{% endfilename %}
419
419
``` html
420
420
{% if user.is_authenticated %}
421
- <a class =" btn btn-default " href =" {% url 'post_edit' pk=post.pk %}" >
421
+ <a class =" btn btn-secondary " href =" {% url 'post_edit' pk=post.pk %}" >
422
422
{% include './icons/pencil-fill.svg' %}
423
423
</a >
424
424
{% endif %}
0 commit comments