about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-18 01:03:00 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-18 02:19:09 -0600
commit20f5ced61d0afb90a224b811be52de589e06a727 (patch)
tree0d12d4eca5099c67bd475629f040ccc3246d14a7 /app/views
parentf76c29beee697c8861ba2d479a6f3b2214139829 (diff)
Remove context selector from filter view.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/filters/_fields.html.haml3
-rw-r--r--app/views/filters/index.html.haml2
2 files changed, 0 insertions, 5 deletions
diff --git a/app/views/filters/_fields.html.haml b/app/views/filters/_fields.html.haml
index afa72ae0c..a02b04e51 100644
--- a/app/views/filters/_fields.html.haml
+++ b/app/views/filters/_fields.html.haml
@@ -3,6 +3,3 @@
     = f.input :phrase, as: :string, wrapper: :with_label, hint: false
   .fields-row__column.fields-row__column-6.fields-group
     = f.input :expires_in, wrapper: :with_label, collection: [30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week].map(&:to_i), label_method: lambda { |i| I18n.t("invites.expires_in.#{i}") }, prompt: I18n.t('invites.expires_in_prompt')
-
-.fields-group
-  = f.input :context, wrapper: :with_block_label, collection: CustomFilter::VALID_CONTEXTS, as: :check_boxes, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li', label_method: lambda { |context| I18n.t("filters.contexts.#{context}") }, include_blank: false
diff --git a/app/views/filters/index.html.haml b/app/views/filters/index.html.haml
index 18ebee570..228474f01 100644
--- a/app/views/filters/index.html.haml
+++ b/app/views/filters/index.html.haml
@@ -6,13 +6,11 @@
     %thead
       %tr
         %th= t('simple_form.labels.defaults.phrase')
-        %th= t('simple_form.labels.defaults.context')
         %th
     %tbody
       - @filters.each do |filter|
         %tr
           %td= filter.phrase
-          %td= filter.context.map { |context| I18n.t("filters.contexts.#{context}") }.join(', ')
           %td
             = table_link_to 'pencil', t('filters.edit.title'), edit_filter_path(filter)
             = table_link_to 'times', t('filters.index.delete'), filter_path(filter), method: :delete