<commit_before><!-- extend site layout -->
{% extends "templates/site.html" %}

{% block title %}: {% trans %}Ask Sabrina{% endtrans %}{% endblock %}

{% block head %}
<link type="text/css" rel="stylesheet" media="all" href="/static/css/libs/wysihtml5.stylesheet.css" />
{% endblock %}

{% block body %}
  
  <div class="grid5col1">
    <div id="sabrina" class="{{g.sabrina.outfit}} {{g.sabrina.face}} {{g.sabrina.hat}}"></div>
  </div>

  <div class="grid5col4">
    <div class="title">
      {% trans %}What would you like to know?{% endtrans %}
    </div>
    {{ search_form.search(size=80, id='search', class='ask', placeholder="Search here...") }}
    <div class="hide"><h3>{% trans %}Search Results{% endtrans %}</h3></div>
    
    <div id="order_toggle">
      <legend id="order">{% trans %}Order by{% endtrans %}</legend>
      <input type="radio" name="order" value="votes" id="votes" onclick="change_order(this.value)" checked="checked">
      <label for="votes">{% trans %}Top Voted{% endtrans %}</label>
      <input type="radio" name="order" value="newest" id="newest" onclick="change_order(this.value)">
      <label for="newest">{% trans %}Newest{% endtrans %}</label>
    </div>
      
    <div id="recent">

      <div class="question_feed"></div>

      <a {% if g.user.is_authenticated() %}href="/ask/ask/"{%else%}onclick="login()"{%endif%} class="help">
        <div>
          <h2>{% trans %}Cannot find your answer here?{% endtrans %}</h2>
          {% trans %}Submit your question to Escritorio!{% endtrans %}
        </div>
      </a>
      
    </div>
  </div>

{% endblock %}

{% block js %}

  <!-- wysihtml5 parser rules -->
  <script src="/static/js/libs/wysihtml5-parser_rules-advanced.js"></script>
  <!-- wysihtml5 library -->
  <script src="/static/js/libs/wysihtml5-0.3.0.min.js"></script>

  <script src="/static/js/utils/utils.infinite_scroll.js"></script>
  <script>

  var order = d3.select('input[name="order"]:checked').attr("value"),
      search_term = null;
      
  leon("$order")
  leon("#search")

  function change_order(new_order){
    order = new_order;
    var url = window.location.href + "?order=" + order;
    if(search_term){
      url += "&q=" + search_term;
    }
    d3.select(".question_feed").html('')
      .call(is.url(url).offset(0).remove(true))
  }
<commit_msg>Removed old wysiwyg html editor<commit_after><!-- extend site layout -->
{% extends "templates/site.html" %}

{% block title %}: {% trans %}Ask Sabrina{% endtrans %}{% endblock %}

{% block head %}

{% endblock %}

{% block body %}
  
  <div class="grid5col1">
    <div id="sabrina" class="{{g.sabrina.outfit}} {{g.sabrina.face}} {{g.sabrina.hat}}"></div>
  </div>

  <div class="grid5col4">
    <div class="title">
      {% trans %}What would you like to know?{% endtrans %}
    </div>
    {{ search_form.search(size=80, id='search', class='ask', placeholder="Search here...") }}
    <div class="hide"><h3>{% trans %}Search Results{% endtrans %}</h3></div>
    
    <div id="order_toggle">
      <legend id="order">{% trans %}Order by{% endtrans %}</legend>
      <input type="radio" name="order" value="votes" id="votes" onclick="change_order(this.value)" checked="checked">
      <label for="votes">{% trans %}Top Voted{% endtrans %}</label>
      <input type="radio" name="order" value="newest" id="newest" onclick="change_order(this.value)">
      <label for="newest">{% trans %}Newest{% endtrans %}</label>
    </div>
      
    <div id="recent">

      <div class="question_feed"></div>

      <a {% if g.user.is_authenticated() %}href="/ask/ask/"{%else%}onclick="login()"{%endif%} class="help">
        <div>
          <h2>{% trans %}Cannot find your answer here?{% endtrans %}</h2>
          {% trans %}Submit your question to Escritorio!{% endtrans %}
        </div>
      </a>
      
    </div>
  </div>

{% endblock %}

{% block js %}

  <script src="/static/js/utils/utils.infinite_scroll.js"></script>
  <script>

  var order = d3.select('input[name="order"]:checked').attr("value"),
      search_term = null;
      
  leon("$order")
  leon("#search")

  function change_order(new_order){
    order = new_order;
    var url = window.location.href + "?order=" + order;
    if(search_term){
      url += "&q=" + search_term;
    }
    d3.select(".question_feed").html('')
      .call(is.url(url).offset(0).remove(true))
  }

{'fraction_non_alphanumeric': 0.21549747822099954, 'fraction_numerical': 0.007794589637780834, 'mean_word_length': 3.3981854838709675, 'pattern_counts': {'":': 0, '<': 82, '<?xml version=': 0, '>': 82, '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': '4602126', 'n_tokens_mistral': 1610, 'n_tokens_neox': 1482, 'n_words': 310}