x_11_file_import_via_plugin #65
10 changed files with 14 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
class Foodcoop::UsersController < ApplicationController
|
class Foodcoop::UsersController < ApplicationController
|
||||||
|
before_action -> { require_config_disabled :disable_members_overview }
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@users = User.undeleted.sort_by_param(params['sort'])
|
@users = User.undeleted.sort_by_param(params['sort'])
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,6 @@
|
||||||
= config_input form, :distribution_strategy, as: :select, collection: distribution_strategy_options,
|
= config_input form, :distribution_strategy, as: :select, collection: distribution_strategy_options,
|
||||||
include_blank: false, input_html: {class: 'input-xxlarge'}, label_method: ->(s){ t("config.keys.distribution_strategy_options.#{s}") }
|
include_blank: false, input_html: {class: 'input-xxlarge'}, label_method: ->(s){ t("config.keys.distribution_strategy_options.#{s}") }
|
||||||
= config_input form, :disable_invite, as: :boolean
|
= config_input form, :disable_invite, as: :boolean
|
||||||
|
= config_input form, :disable_members_overview, as: :boolean
|
||||||
= config_input form, :help_url, as: :url, input_html: {class: 'input-xlarge'}
|
= config_input form, :help_url, as: :url, input_html: {class: 'input-xlarge'}
|
||||||
= config_input form, :webstats_tracking_code, as: :text, input_html: {class: 'input-xxlarge', rows: 3}
|
= config_input form, :webstats_tracking_code, as: :text, input_html: {class: 'input-xxlarge', rows: 3}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
%h3= t '.title'
|
%h3= t '.title'
|
||||||
%ul.nav.nav-list
|
%ul.nav.nav-list
|
||||||
%li.nav-header= t '.foodcoop'
|
%li.nav-header= t '.foodcoop'
|
||||||
|
- unless FoodsoftConfig[:disable_members_overview]
|
||||||
%li= link_to t('.members'), foodcoop_users_path
|
%li= link_to t('.members'), foodcoop_users_path
|
||||||
%li= link_to t('.tasks'), user_tasks_path
|
%li= link_to t('.tasks'), user_tasks_path
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,9 @@ default: &defaults
|
||||||
#use_wiki: true
|
#use_wiki: true
|
||||||
#use_messages: true
|
#use_messages: true
|
||||||
|
|
||||||
|
# When enabled only administrators can access the member list.
|
||||||
|
#disable_members_overview: true
|
||||||
|
|
||||||
# Base font size for generated PDF documents
|
# Base font size for generated PDF documents
|
||||||
#pdf_font_size: 12
|
#pdf_font_size: 12
|
||||||
# Page size for generated PDF documents
|
# Page size for generated PDF documents
|
||||||
|
|
|
@ -655,6 +655,7 @@ de:
|
||||||
default_role_pickups: Abholtage
|
default_role_pickups: Abholtage
|
||||||
default_role_suppliers: Lieferanten
|
default_role_suppliers: Lieferanten
|
||||||
disable_invite: Einladungen deaktivieren
|
disable_invite: Einladungen deaktivieren
|
||||||
|
disable_members_overview: Mitgliederliste deaktivieren
|
||||||
email_from: Absenderadresse
|
email_from: Absenderadresse
|
||||||
email_replyto: Antwortadresse
|
email_replyto: Antwortadresse
|
||||||
email_sender: Senderadresse
|
email_sender: Senderadresse
|
||||||
|
|
|
@ -656,6 +656,7 @@ en:
|
||||||
default_role_pickups: Pickup days
|
default_role_pickups: Pickup days
|
||||||
default_role_suppliers: Suppliers
|
default_role_suppliers: Suppliers
|
||||||
disable_invite: Disable invites
|
disable_invite: Disable invites
|
||||||
|
disable_members_overview: Disable members list
|
||||||
email_from: From address
|
email_from: From address
|
||||||
email_replyto: Reply-to address
|
email_replyto: Reply-to address
|
||||||
email_sender: Sender address
|
email_sender: Sender address
|
||||||
|
|
|
@ -580,6 +580,7 @@ es:
|
||||||
custom_css: CSS adicional
|
custom_css: CSS adicional
|
||||||
default_locale: Idioma por defecto
|
default_locale: Idioma por defecto
|
||||||
disable_invite: Desactivar invitaciones
|
disable_invite: Desactivar invitaciones
|
||||||
|
disable_members_overview: Desactivar la lista de miembros
|
||||||
email_from: Dirección de email de origen
|
email_from: Dirección de email de origen
|
||||||
email_replyto: Dirección reply-to
|
email_replyto: Dirección reply-to
|
||||||
email_sender: Dirección del remitente
|
email_sender: Dirección del remitente
|
||||||
|
|
|
@ -418,6 +418,7 @@ fr:
|
||||||
zip_code: Code postal
|
zip_code: Code postal
|
||||||
currency_unit: Monnaie
|
currency_unit: Monnaie
|
||||||
name: Nom
|
name: Nom
|
||||||
|
disable_members_overview: Désactiver la liste des membres
|
||||||
distribution_strategy: Stratégie de distribution
|
distribution_strategy: Stratégie de distribution
|
||||||
distribution_strategy_options:
|
distribution_strategy_options:
|
||||||
first_order_first_serve: Distribuez d'abord à ceux qui ont commandé en premier
|
first_order_first_serve: Distribuez d'abord à ceux qui ont commandé en premier
|
||||||
|
|
|
@ -626,6 +626,7 @@ nl:
|
||||||
default_role_pickups: Ophaaldagen
|
default_role_pickups: Ophaaldagen
|
||||||
default_role_suppliers: Leveranciers
|
default_role_suppliers: Leveranciers
|
||||||
disable_invite: Uitnodigingen deactiveren
|
disable_invite: Uitnodigingen deactiveren
|
||||||
|
disable_members_overview: Ledenlijst deactiveren
|
||||||
email_from: From adres
|
email_from: From adres
|
||||||
email_replyto: Reply-to adres
|
email_replyto: Reply-to adres
|
||||||
email_sender: Sender adres
|
email_sender: Sender adres
|
||||||
|
|
|
@ -12,7 +12,7 @@ SimpleNavigation::Configuration.run do |navigation|
|
||||||
primary.item :dashboard_nav_item, I18n.t('navigation.dashboard'), root_path(anchor: '')
|
primary.item :dashboard_nav_item, I18n.t('navigation.dashboard'), root_path(anchor: '')
|
||||||
|
|
||||||
primary.item :foodcoop, I18n.t('navigation.foodcoop'), '#' do |subnav|
|
primary.item :foodcoop, I18n.t('navigation.foodcoop'), '#' do |subnav|
|
||||||
subnav.item :members, I18n.t('navigation.members'), foodcoop_users_path
|
subnav.item :members, I18n.t('navigation.members'), foodcoop_users_path, unless: Proc.new { FoodsoftConfig[:disable_members_overview] }
|
||||||
subnav.item :workgroups, I18n.t('navigation.workgroups'), foodcoop_workgroups_path
|
subnav.item :workgroups, I18n.t('navigation.workgroups'), foodcoop_workgroups_path
|
||||||
subnav.item :ordergroups, I18n.t('navigation.ordergroups'), foodcoop_ordergroups_path
|
subnav.item :ordergroups, I18n.t('navigation.ordergroups'), foodcoop_ordergroups_path
|
||||||
subnav.item :tasks, I18n.t('navigation.tasks'), tasks_path
|
subnav.item :tasks, I18n.t('navigation.tasks'), tasks_path
|
||||||
|
|
Loading…
Reference in a new issue