Browse Source

refactor: erblint

pull/1998/head
natdeanlewissoftwire 3 years ago
parent
commit
0cff1addde
  1. 32
      app/views/logs/_log_filters.html.erb

32
app/views/logs/_log_filters.html.erb

@ -54,24 +54,24 @@
<% end %> <% end %>
<%= render partial: "filters/radio_filter", <%= render partial: "filters/radio_filter",
locals: { locals: {
f:, f:,
options: { options: {
"all": { label: "Any user" }, "all": { label: "Any user" },
"you": { label: "You" }, "you": { label: "You" },
"specific_user": { "specific_user": {
label: "Specific user", label: "Specific user",
conditional_filter: { conditional_filter: {
type: "select", type: "select",
label: "User", label: "User",
category: "user", category: "user",
options: assigned_to_filter_options(current_user), options: assigned_to_filter_options(current_user),
},
}, },
}, },
label: "Assigned to", },
category: "assigned_to", label: "Assigned to",
} %> category: "assigned_to",
} %>
<% if current_user.support? || non_support_with_multiple_owning_orgs? %> <% if current_user.support? || non_support_with_multiple_owning_orgs? %>
<%= render partial: "filters/radio_filter", locals: { <%= render partial: "filters/radio_filter", locals: {

Loading…
Cancel
Save