--- /dev/null
+$ ->
+ $('.milestone-issue-filter td[data-closed]').addClass('hide')
+
+ $('.milestone-issue-filter ul.nav li a').click ->
+ $('.milestone-issue-filter li').toggleClass('active')
+ $('.milestone-issue-filter td[data-closed]').toggleClass('hide')
+ false
.row
.span6
- %table
+ %table.milestone-issue-filter
%thead
- %th Open Issues
+ %th
+ %ul.nav.nav-pills
+ %li.active.open= link_to('Open Issues', '#')
+ %li.all=link_to('All Issues', '#')
- @issues.each do |issue|
%tr
- %td
+ %td{data: {closed: issue.closed}}
= link_to [@project, issue] do
%span.badge.badge-info ##{issue.id}
–
= link_to_gfm truncate(issue.title, length: 60), [@project, issue]
%br
- = paginate @issues, theme: "gitlab"
.span6
%table