{% extends "base.html" %}
{% load compressed %}
{% load i18n %}

{% block jsconsts %}
{{block.super}}
{%  if request.user.is_authenticated %}
  var gUserURL = "{% url user request.user %}";
  var gOpenAnIssue = {{user.get_profile.open_an_issue|lower}};
{%  endif %}
{% endblock %}

{% block ie6_csshacks %}
   #review-banner .banner { position: absolute; }
{% endblock %}

{% block css %}
{% compressed_css "reviews" %}
{% endblock %}

{% block scripts-post %}
{% compressed_js "reviews" %}
{% endblock %}

{% block bodytag %}
{{block.super}}

{%  block review_banner %}
<div id="review-banner"{% if not review %} style="display: none;"{% endif %}>
 <div class="banner">
  <h1>{% trans "You have a pending review." %}</h1>
  <input id="review-banner-edit" type="button" value="{% trans "Edit Review" %}" />
  <input id="review-banner-publish" type="button" value="{% trans "Publish" %}" />
  <input id="review-banner-discard" type="button" value="{% trans "Discard" %}" />
 </div>
</div>
{%  endblock %}

{%  include "reviews/comments_dlg.html" %}
{% endblock %}

{% extends "base.html" %}
{% load compressed %}
{% load i18n %}

{% block jsconsts %}
{{block.super}}
{%  if request.user.is_authenticated %}
  var gUserURL = "{% url user request.user %}";
  var gOpenAnIssue = {% if request.user.get_profile.open_an_issue %}true{% else %}false{% endif %};
{%  endif %}
{% endblock %}

{% block ie6_csshacks %}
   #review-banner .banner { position: absolute; }
{% endblock %}

{% block css %}
{% compressed_css "reviews" %}
{% endblock %}

{% block scripts-post %}
{% compressed_js "reviews" %}
{% endblock %}

{% block bodytag %}
{{block.super}}

{%  block review_banner %}
<div id="review-banner"{% if not review %} style="display: none;"{% endif %}>
 <div class="banner">
  <h1>{% trans "You have a pending review." %}</h1>
  <input id="review-banner-edit" type="button" value="{% trans "Edit Review" %}" />
  <input id="review-banner-publish" type="button" value="{% trans "Publish" %}" />
  <input id="review-banner-discard" type="button" value="{% trans "Discard" %}" />
 </div>
</div>
{%  endblock %}

{%  include "reviews/comments_dlg.html" %}
{% endblock %}

Work around a page breakage with open_an_issue.
Work around a page breakage with open_an_issue.

Some users have hit an odd problem where the open_an_issue profile field
was returning None. This indicates possibly that there was an error
fetching the field.

The only thing I can think of is that 'user', in this case, doesn't mean
what we think it means. Really, we should be using request.user and not
user anyway. It's been changed to use that. It's also now using a
conditional to output true/false instead of the hacky call to lower().
