Commit 8d28f94e authored by Arinde Eniola's avatar Arinde Eniola

finish up the design and add info to the changelog

parent 02dcc418
...@@ -31,6 +31,7 @@ v 8.6.5 (unreleased) ...@@ -31,6 +31,7 @@ v 8.6.5 (unreleased)
v 8.6.4 v 8.6.4
- Don't attempt to fetch any tags from a forked repo (Stan Hu) - Don't attempt to fetch any tags from a forked repo (Stan Hu)
- Redesign the Labels page
v 8.6.3 v 8.6.3
- Mentions on confidential issues doesn't create todos for non-members. !3374 - Mentions on confidential issues doesn't create todos for non-members. !3374
......
...@@ -3,8 +3,10 @@ class @Subscription ...@@ -3,8 +3,10 @@ class @Subscription
$container = $(container) $container = $(container)
@url = $container.attr('data-url') @url = $container.attr('data-url')
@subscribe_button = $container.find('.subscribe-button') @subscribe_button = $container.find('.subscribe-button')
@subscribe_icon = $container.find('.subscribe-icon')
@subscription_status = $container.find('.subscription-status') @subscription_status = $container.find('.subscription-status')
@subscribe_button.unbind('click').click(@toggleSubscription) @subscribe_button.unbind('click').click(@toggleSubscription)
@subscribe_icon.unbind('click').click(@toggleSubscription)
toggleSubscription: (event) => toggleSubscription: (event) =>
btn = $(event.currentTarget) btn = $(event.currentTarget)
...@@ -16,6 +18,7 @@ class @Subscription ...@@ -16,6 +18,7 @@ class @Subscription
btn.prop('disabled', false) btn.prop('disabled', false)
status = if current_status == 'subscribed' then 'unsubscribed' else 'subscribed' status = if current_status == 'subscribed' then 'unsubscribed' else 'subscribed'
@subscription_status.attr('data-status', status) @subscription_status.attr('data-status', status)
@subscribe_icon.attr('data-original-title', status)
action = if status == 'subscribed' then 'Unsubscribe' else 'Subscribe' action = if status == 'subscribed' then 'Unsubscribe' else 'Subscribe'
btn.find('span').text(action) btn.find('span').text(action)
@subscription_status.find('>div').toggleClass('hidden') @subscription_status.find('>div').toggleClass('hidden')
...@@ -49,9 +49,11 @@ ...@@ -49,9 +49,11 @@
} }
.label-row { .label-row {
.label-name { .label-name {
display: inline-block; display: inline-block;
width: 21%; width: 200px;
vertical-align: top;
@media (max-width: $screen-xs-min) { @media (max-width: $screen-xs-min) {
display: block; display: block;
...@@ -93,15 +95,16 @@ ...@@ -93,15 +95,16 @@
} }
} }
.pull-right { .pull-info-right {
float: right;
@media (max-width: $screen-xs-min) { @media (max-width: $screen-xs-min) {
float: none !important; float: none;
} }
.action-buttons { .action-buttons {
border-color: transparent; border-color: transparent;
margin: 7px; padding: 6px
} }
i { i {
......
%li{id: dom_id(label)} %li{id: dom_id(label)}
= render "shared/label_row", label: label = render "shared/label_row", label: label
.pull-right .pull-info-right
%span.append-right-20 %span.append-right-20
= link_to_label(label, type: :merge_request) do = link_to_label(label, type: :merge_request) do
= pluralize label.open_merge_requests_count, 'merge request' = pluralize label.open_merge_requests_count, 'merge request'
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
.label-subscription{data: {url: toggle_subscription_namespace_project_label_path(@project.namespace, @project, label)}} .label-subscription{data: {url: toggle_subscription_namespace_project_label_path(@project.namespace, @project, label)}}
.subscription-status{data: {status: label_subscription_status(label)}} .subscription-status{data: {status: label_subscription_status(label)}}
%a.subscribe-button.action-buttons{data: {toggle: "tooltip", original_title: label_subscription_toggle_button_text(label)}} %a.subscribe-icon.btn.action-buttons{data: {toggle: "tooltip", original_title: label_subscription_status(label)}}
%i.fa.fa-rss %i.fa.fa-rss
- if can? current_user, :admin_label, @project - if can? current_user, :admin_label, @project
= link_to edit_namespace_project_label_path(@project.namespace, @project, label), class: 'action-buttons', data: {toggle: "tooltip", original_title: "Edit"} do = link_to edit_namespace_project_label_path(@project.namespace, @project, label), class: 'btn action-buttons', data: {toggle: "tooltip", original_title: "Edit"} do
%i.fa.fa-pencil-square-o %i.fa.fa-pencil-square-o
= link_to namespace_project_label_path(@project.namespace, @project, label), class: 'action-buttons remove-row', method: :delete, remote: true, data: {confirm: "Remove this label? Are you sure?", toggle: "tooltip", original_title: "Delete"} do = link_to namespace_project_label_path(@project.namespace, @project, label), class: 'btn action-buttons remove-row', method: :delete, remote: true, data: {confirm: "Remove this label? Are you sure?", toggle: "tooltip", original_title: "Delete"} do
%i.fa.fa-trash-o %i.fa.fa-trash-o
- if current_user - if current_user
......
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