Commit 6c777ff8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve milestone show page

parent 676a9a7e
$ -> $ ->
$('.milestone-issue-filter tr[data-closed]').addClass('hide') $('.milestone-issue-filter li[data-closed]').addClass('hide')
$('.milestone-issue-filter ul.nav li a').click -> $('.milestone-issue-filter ul.nav li a').click ->
$('.milestone-issue-filter li').toggleClass('active') $('.milestone-issue-filter li').toggleClass('active')
$('.milestone-issue-filter tr[data-closed]').toggleClass('hide') $('.milestone-issue-filter li[data-closed]').toggleClass('hide')
false false
$('.milestone-merge-requests-filter tr[data-closed]').addClass('hide') $('.milestone-merge-requests-filter li[data-closed]').addClass('hide')
$('.milestone-merge-requests-filter ul.nav li a').click -> $('.milestone-merge-requests-filter ul.nav li a').click ->
$('.milestone-merge-requests-filter li').toggleClass('active') $('.milestone-merge-requests-filter li').toggleClass('active')
$('.milestone-merge-requests-filter tr[data-closed]').toggleClass('hide') $('.milestone-merge-requests-filter li[data-closed]').toggleClass('hide')
false false
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
/** PILLS & TABS**/ /** PILLS & TABS**/
.nav-pills { .nav-pills {
.active a { .active a {
background: $primary_color;
} }
> li > a { > li > a {
......
...@@ -38,9 +38,8 @@ ...@@ -38,9 +38,8 @@
= gfm escape_once(@milestone.title) = gfm escape_once(@milestone.title)
.ui-box-body .ui-box-body
%h5 %p
Progress: Progress:
%small
#{@milestone.closed_items_count} closed #{@milestone.closed_items_count} closed
– –
#{@milestone.open_items_count} open #{@milestone.open_items_count} open
...@@ -50,39 +49,35 @@ ...@@ -50,39 +49,35 @@
- if @milestone.description.present? - if @milestone.description.present?
.bottom_box_content .ui-box-bottom
= preserve do = preserve do
= markdown @milestone.description = markdown @milestone.description
.row .row
.span6 .span6
%table.milestone-issue-filter .ui-box.milestone-issue-filter
%thead .title
%tr
%th
%ul.nav.nav-pills %ul.nav.nav-pills
%li.active= link_to('Open Issues', '#') %li.active= link_to('Open Issues', '#')
%li=link_to('All Issues', '#') %li=link_to('All Issues', '#')
%ul.well-list
- @issues.each do |issue| - @issues.each do |issue|
%tr{data: {closed: issue.closed}} %li{data: {closed: issue.closed}}
%td
= link_to [@project, issue] do = link_to [@project, issue] do
%span.badge.badge-info ##{issue.id} %span.badge.badge-info ##{issue.id}
– –
= link_to_gfm truncate(issue.title, length: 60), [@project, issue] = link_to_gfm truncate(issue.title, length: 60), [@project, issue]
.span6 .span6
%table.milestone-merge-requests-filter .ui-box.milestone-merge-requests-filter
%thead .title
%tr
%th
%ul.nav.nav-pills %ul.nav.nav-pills
%li.active= link_to('Open Merge Requests', '#') %li.active= link_to('Open Merge Requests', '#')
%li=link_to('All Merge Requests', '#') %li=link_to('All Merge Requests', '#')
%ul.well-list
- @merge_requests.each do |merge_request| - @merge_requests.each do |merge_request|
%tr{data: {closed: merge_request.closed}} %li{data: {closed: merge_request.closed}}
%td
= link_to [@project, merge_request] do = link_to [@project, merge_request] do
%span.badge.badge-info ##{merge_request.id} %span.badge.badge-info ##{merge_request.id}
– –
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment