Skip to content

Commit

Permalink
Handle the case where user has no projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuu508 committed Jan 31, 2019
1 parent c4c657f commit 0cceeff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/accounts/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h2>My Projects</h2>
{% endfor %}
</table>
{% else %}
<p>You don't have any projects. Create one!</p>
<p>You do not have any projects. Create one!</p>
{% endif %}

<a
Expand Down
4 changes: 4 additions & 0 deletions templates/front/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ <h4>{{ project }}</h4>
</div>
</div>
</a>
{% empty %}
<div class="col-sm-12">
<p>You do not have any projects.</p>
</div>
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit 0cceeff

Please sign in to comment.