summaryrefslogtreecommitdiff
path: root/app/views/issues/index.html.haml
blob: 78b677899d42331f7575cd81bf8cd92ef3c0c0d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
= render "issues/head"
.issues_content
  %h3.page_title
    Issues
    %span (<span class=issue_counter>#{@issues.total_count}</span>)
    .pull-right
      .span5
        - if can? current_user, :write_issue, @project
          = link_to new_project_issue_path(@project, issue: { assignee_id: params[:assignee_id], milestone_id: params[:milestone_id]}), class: "btn btn-primary pull-right", title: "New Issue", id: "new_issue_link" do
            %i.icon-plus
            New Issue
        = form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: 'pull-right'  do
          = hidden_field_tag :project_id, @project.id, { id: 'project_id' }
          = hidden_field_tag :status, params[:status]
          = search_field_tag :issue_search, nil, { placeholder: 'Search', class: 'issue_search input-xlarge append-right-10 search-text-input' }

  .clearfix

.row
  .span3
    = render 'filter', entity: 'issue'
  .span9.issues-holder
    = render "issues"

:javascript
  $(function(){
    issuesPage();
  })