<commit_before>- @title = "Tickets"

- content_for :milestone_sidebar do
  = render :partial => 'shared/milestone_sidebar', :locals => {:project => @project, :milestone => @project.current_milestone}

- content_for :tag_cloud_sidebar do
  = render :partial => 'shared/tag_cloud', :locals => {:tags => @project.tag_counts, :project => @project}

#block-tables.block

  #ticket_search.block
    - form_tag(project_tickets_url(@project), {:id => 'ticket_search_form', :method => 'GET'}) do
      %label{:for => 'q'}
        Find tickets :
      = text_field_tag :q

  .content
    .inner
      %table.table
        %thead
          %tr
            %th.first= link_to 'id', project_tickets_url(@project, sort_by('id').merge(:q => params[:q]))
            %th= link_to 'name', project_tickets_url(@project, sort_by('title').merge(:q => params[:q]))
            %th responsible
            %th status
            %th priority
            %th.last milestone
        %tbody
          - for ticket in @tickets
            %tr{:class => "#{cycle('odd','even')} ticket" }
              %td= link_to "##{ticket.num}", project_ticket_url(@project, ticket)
              %td= ticket.title
              %td= ticket.user_assigned ? ticket.user_assigned.login : ""
              %td= ticket.state.name
              %td= ticket.priority ? ticket.priority.name : ""
              %td= ticket.milestone ? ticket.milestone.name : ""

      .actions-bar
        = will_paginate @tickets
        .actions
          = link_to 'New', new_project_ticket_url(@project) if user_signed_in?<commit_msg>use params q search in tickets view<commit_after>- @title = "Tickets"

- content_for :milestone_sidebar do
  = render :partial => 'shared/milestone_sidebar', :locals => {:project => @project, :milestone => @project.current_milestone}

- content_for :tag_cloud_sidebar do
  = render :partial => 'shared/tag_cloud', :locals => {:tags => @project.tag_counts, :project => @project}

#block-tables.block

  #ticket_search.block
    - form_tag(project_tickets_url(@project), {:id => 'ticket_search_form', :method => 'GET'}) do
      %label{:for => 'q'}
        Find tickets :
      = text_field_tag :q, params[:q]

  .content
    .inner
      %table.table
        %thead
          %tr
            %th.first= link_to 'id', project_tickets_url(@project, sort_by('id').merge(:q => params[:q]))
            %th= link_to 'name', project_tickets_url(@project, sort_by('title').merge(:q => params[:q]))
            %th responsible
            %th status
            %th priority
            %th.last milestone
        %tbody
          - for ticket in @tickets
            %tr{:class => "#{cycle('odd','even')} ticket" }
              %td= link_to "##{ticket.num}", project_ticket_url(@project, ticket)
              %td= ticket.title
              %td= ticket.user_assigned ? ticket.user_assigned.login : ""
              %td= ticket.state.name
              %td= ticket.priority ? ticket.priority.name : ""
              %td= ticket.milestone ? ticket.milestone.name : ""

      .actions-bar
        = will_paginate @tickets
        .actions
          = link_to 'New', new_project_ticket_url(@project) if user_signed_in?
{'fraction_non_alphanumeric': 0.14707730986800754, 'fraction_numerical': 0.0, 'mean_word_length': 2.4901315789473686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '3724907', 'n_tokens_mistral': 1000, 'n_tokens_neox': 971, 'n_words': 204}