<commit_before>{% extends 'jinja_master/master.html' %}
{% do g.register_app_css('css/tracker.css') %}

{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Search{% endblock %}

{% block header %}Search {{c.app.config.options.mount_point}}: {{q}}{% endblock %}

{% block head %}
  <link rel="alternate" type="application/rss+xml" title="RSS" href="feed.rss"/>
  <link rel="alternate" type="application/atom+xml" title="Atom" href="feed.atom"/>
{% endblock %}

{% block actions %}
{% if allow_edit and count != 0 %}
  <a href="{{tg.url(c.app.url+'edit/', dict(q=q, limit=limit, sort=sort))}}" class="btn ico-l"><b class="ui-icon ui-icon-pencil"></b> <span>Bulk Edit</span></a>
{% endif %}
{% endblock %}

{% if q and h.has_artifact_access('save_searches')() %}
  {% block edit_box %}
    <div class="editbox" style="display:none">
      {{c.bin_form.display(
        value=dict(summary=q,terms=q,sort=sort),
        action=c.project.url()+'admin/'+c.app.config.options.mount_point+'/bins/save_bin'
      )}}
    </div>
  {% endblock %}
{% endif %}

{% block content %}
<form method="GET" action=".">
  {{c.auto_resize_textarea.display(name='q', value=q,
    attrs={'style':'height:1em; width: 425px; float: left; margin-right: .5em'})}}
  <input type="submit" value="Search"/>
</form>
{% if q and h.has_artifact_access('save_searches')() %}
  <input type="button" value="Save Search" id="save_search"/>
{% endif %}
<div style="clear:both"></div>
{{c.ticket_search_results.display(solr_error=solr_error,
  count=count,
  limit=limit,
  query=q,
  tickets=tickets,
  sortable_custom_fields=sortable_custom_fields,
  page=page,
  sort=sort)}}
{% endblock %}

{% block extra_js %}
  {% if q and h.has_artifact_access('save_searches')() %}
    <script type="text/javascript">
      $('#save_search').click(function(){<commit_msg>[#1062] Changed search box from autoexpand to plain text box<commit_after>{% extends 'jinja_master/master.html' %}
{% do g.register_app_css('css/tracker.css') %}

{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Search{% endblock %}

{% block header %}Search {{c.app.config.options.mount_point}}: {{q}}{% endblock %}

{% block head %}
  <link rel="alternate" type="application/rss+xml" title="RSS" href="feed.rss"/>
  <link rel="alternate" type="application/atom+xml" title="Atom" href="feed.atom"/>
{% endblock %}

{% block actions %}
{% if allow_edit and count != 0 %}
  <a href="{{tg.url(c.app.url+'edit/', dict(q=q, limit=limit, sort=sort))}}" class="btn ico-l"><b class="ui-icon ui-icon-pencil"></b> <span>Bulk Edit</span></a>
{% endif %}
{% endblock %}

{% if q and h.has_artifact_access('save_searches')() %}
  {% block edit_box %}
    <div class="editbox" style="display:none">
      {{c.bin_form.display(
        value=dict(summary=q,terms=q,sort=sort),
        action=c.project.url()+'admin/'+c.app.config.options.mount_point+'/bins/save_bin'
      )}}
    </div>
  {% endblock %}
{% endif %}

{% block content %}
<form method="GET" action=".">
  <input type="text" name="q" value="{{q}}" style="width: 525px; float: left; margin-right: .5em">
  <input type="submit" value="Search"/>
</form>
{% if q and h.has_artifact_access('save_searches')() %}
  <input type="button" value="Save Search" id="save_search"/>
{% endif %}
<div style="clear:both"></div>
{{c.ticket_search_results.display(solr_error=solr_error,
  count=count,
  limit=limit,
  query=q,
  tickets=tickets,
  sortable_custom_fields=sortable_custom_fields,
  page=page,
  sort=sort)}}
{% endblock %}

{% block extra_js %}
  {% if q and h.has_artifact_access('save_searches')() %}
    <script type="text/javascript">
      $('#save_search').click(function(){
{'fraction_non_alphanumeric': 0.21511470985155196, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 5.006482982171799, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3628569', 'n_tokens_mistral': 1435, 'n_tokens_neox': 1326, 'n_words': 235}