Skip to content
This repository has been archived by the owner on Mar 2, 2019. It is now read-only.

Commit

Permalink
If a UserProfile does not exist for a user, it will make the theme no…
Browse files Browse the repository at this point in the history
…t work at all. I'm a bit torn about this -- there's other things that will break too in the absence of this, however it's the best that we can make of the situation.
  • Loading branch information
micolous committed May 3, 2012
1 parent 4ae3489 commit b582995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tollgate/frontend/templates/frontend/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script language="javascript" type="text/javascript" src="{{ STATIC_URL }}tollgate/flot/jquery.flot.min.js"></script>
<script language="javascript" type="text/javascript" src="{{ STATIC_URL }}tollgate/underscore.min.js"></script>

{% if user.is_authenticated %}
{% if user.is_authenticated and user.get_profile.theme %}
<link rel="stylesheet" href="{{ STATIC_URL }}tollgate/{{ user.get_profile.theme }}.css" media="screen" type="text/css" />
{% else %}
<link rel="stylesheet" href="{{ STATIC_URL }}tollgate/cake.css" media="screen" type="text/css" />
Expand Down

0 comments on commit b582995

Please sign in to comment.