<commit_before>{# vim: set ts=2 et sts=2 sw=2: #}
{% extends "questions/base.html" %}
{% from "layout/errorlist.html" import errorlist %}
{% set title = _('Ask a Question') %}
{% set classes = 'new-question' %}

{% block content %}
<div id="ask-question">
<h1>{{ _('Ask a New Question') }}</h1>
<div class="inner-wrap">

  {% if current_product %}
    <div class="selected">
      <label>{{ _('Firefox Product') }}:</label>
      <span>{{ current_product.name }}</span>
      <a href="{{ url('questions.new_question') }}">{{ _('change') }}</a>
    </div>
  {% else %}
    <h2>{{ _('What Firefox product would you like to post a question about?') }}</h2>
    <ul class="select-one">
      {% for product in products %}
        <li>
          <a href="{{ url('questions.new_question')|urlparams(product=product.key) }}">{{ product.name }}</a>
        </li>
      {% endfor %}
    </ul>
  {% endif %}

  {% if current_product and current_category %}
    <div class="selected">
      <label>Category:</label>
      <span>{{ current_category.name }}</span>
      <a href="{{ url('questions.new_question')|urlparams(product=current_product.key) }}">{{ _('change') }}</a>
    </div>
  {% elif current_product %}
    <h2>{{ _('Which of these categories best describes your problem?') }}</h2>
    <ul class="select-one">
      {% for category in current_product.categories %}
        <li>
          <a href="{{ url('questions.new_question')|urlparams(product=current_product.key, category=category.key) }}">{{ category.name }}</a>
        </li>
      {% endfor %}
    </ul>
  {% endif %}<commit_msg>s/"What Firefox"/"Which Firefox"/ (bug 574559)<commit_after>{# vim: set ts=2 et sts=2 sw=2: #}
{% extends "questions/base.html" %}
{% from "layout/errorlist.html" import errorlist %}
{% set title = _('Ask a Question') %}
{% set classes = 'new-question' %}

{% block content %}
<div id="ask-question">
<h1>{{ _('Ask a New Question') }}</h1>
<div class="inner-wrap">

  {% if current_product %}
    <div class="selected">
      <label>{{ _('Firefox Product') }}:</label>
      <span>{{ current_product.name }}</span>
      <a href="{{ url('questions.new_question') }}">{{ _('change') }}</a>
    </div>
  {% else %}
    <h2>{{ _('Which Firefox product would you like to post a question about?') }}</h2>
    <ul class="select-one">
      {% for product in products %}
        <li>
          <a href="{{ url('questions.new_question')|urlparams(product=product.key) }}">{{ product.name }}</a>
        </li>
      {% endfor %}
    </ul>
  {% endif %}

  {% if current_product and current_category %}
    <div class="selected">
      <label>Category:</label>
      <span>{{ current_category.name }}</span>
      <a href="{{ url('questions.new_question')|urlparams(product=current_product.key) }}">{{ _('change') }}</a>
    </div>
  {% elif current_product %}
    <h2>{{ _('Which of these categories best describes your problem?') }}</h2>
    <ul class="select-one">
      {% for category in current_product.categories %}
        <li>
          <a href="{{ url('questions.new_question')|urlparams(product=current_product.key, category=category.key) }}">{{ category.name }}</a>
        </li>
      {% endfor %}
    </ul>
  {% endif %}
{'fraction_non_alphanumeric': 0.21375233354075918, 'fraction_numerical': 0.0074673304293715, 'mean_word_length': 3.3328840970350404, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4934530', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1027, 'n_words': 254}