Skip to content

Commit

Permalink
Changes the title of the page in the pet detail view
Browse files Browse the repository at this point in the history
  • Loading branch information
dirtycoder committed Feb 12, 2017
1 parent 69aae08 commit d4dc2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pets/meupet/templates/meupet/pet_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
{% endblock %}

{% block title %}{{ pet.name }} - {{ pet.get_status_display }}{% endblock %}
{% block page_title %}{{ pet.get_status_display }}: {{ pet.name|title }}, {{ pet.city|title }}{% endblock %}

{% block content %}
<div class="modal fade" id="delete_pet" tabindex="-1">
Expand Down
2 changes: 1 addition & 1 deletion pets/templates/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>Cadê meu Bicho | {% trans 'Missing and for adoption pets' %}</title>
<title>Cadê meu Bicho | {% block page_title %}{% trans 'Missing and for adoption pets' %}{% endblock %}</title>
{% compress css %}
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"/>
<link rel="stylesheet" href="{% static 'css/pets.css' %}"/>
Expand Down

0 comments on commit d4dc2cb

Please sign in to comment.