Commit 71b2713c authored by Mike Greiling's avatar Mike Greiling

fix font weight and color for issue weight sidebar section

parent d893b691
......@@ -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);
});
......
......@@ -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
......
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