diff --git a/app/assets/javascripts/weight_select.js b/app/assets/javascripts/weight_select.js index 7600c8cd362aab9fd380169ab4f62ca853346d52..7964023537cf78d107aeea8cfdf5b157f664b3de 100644 --- a/app/assets/javascripts/weight_select.js +++ b/app/assets/javascripts/weight_select.js @@ -30,9 +30,9 @@ $loading.fadeOut(); $selectbox.hide(); if (data.weight != null) { - $value.html(data.weight); + $value.html(`<strong>${data.weight}</strong>`); } else { - $value.html('None'); + $value.html('<span class="no-value">None</span>'); } return $sidebarCollapsedValue.html(data.weight); }); diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml index 4ae15b327a1963ae71c2f89ca077c2b31bf5e05d..e59916bdc244732326487e3a6a48f317cb89a2a4 100644 --- a/app/views/shared/issuable/_sidebar.html.haml +++ b/app/views/shared/issuable/_sidebar.html.haml @@ -162,11 +162,11 @@ = icon('spinner spin', class: 'block-loading') - if can?(current_user, :"admin_#{issuable.to_ability_name}", @project) = link_to 'Edit', '#', class: 'edit-link pull-right' - .value.bold.hide-collapsed + .value.hide-collapsed - if issuable.weight - = issuable.weight + %strong= issuable.weight - else - .light None + %span.no-value None .selectbox.hide-collapsed = weight_dropdown_tag(issuable, title: 'Change weight', data: { field_name: 'weight', issue_update: "#{issuable_json_path(issuable)}", ability_name: "#{issuable.to_ability_name}" }) do %ul