Skip to content

Commit

Permalink
Merge pull request #102 from rawadabu/link-viewblog-button
Browse files Browse the repository at this point in the history
Linking the View Blog button
  • Loading branch information
Yarboa authored Jan 19, 2023
2 parents 60fe8e9 + 686f1e9 commit 82a8e4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projboard/templates/landing/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ <h2>{{article.title | truncatechars:30}}</h2>
{% else %} {{article.subject_id}} {% endif %}
</p>
<!-- LATER ONLY AUTHINTECATED USER CAN USE IT-->
<button class="btn" role="submit">View Blog</button>
<a
href="{% url 'show_article' user_nickname=article.user_id.nickname article_pk=article.pk %}"
>
<button class="btn" role="submit">View Blog</button>
</a>
</article>
<hr />
{% endfor %}
Expand Down

0 comments on commit 82a8e4d

Please sign in to comment.