Extract message system to plugin.

This commit is contained in:
Robert Waltemath 2014-03-07 09:51:24 +01:00 committed by wvengen
parent fe0b17cdb0
commit 7556c753d0
45 changed files with 298 additions and 45 deletions

View file

@ -748,10 +748,11 @@ en:
role_suppliers: Suppliers
show_google_maps: Show it on Google maps
sort_by: Sort by %{text}
write_message: Write message
deliveries:
new_invoice: New invoice
show_invoice: Show invoice
messages:
write_message: Write message
orders:
old_price: Old price
option_choose: Choose supplier/stock
@ -896,11 +897,6 @@ en:
feedback:
header: '%{user} wrote at %{date}:'
subject: Feedback from %{email}
foodsoft_message:
footer: |
Reply: %{reply_url}
See message online: %{msg_url}
Messaging options: %{profile_url}
invite:
subject: Invitation to the Foodcoop
text: |
@ -1007,6 +1003,12 @@ en:
sent_on: 'Sent:'
subject: 'Subject:'
title: Show message
messages_mailer:
foodsoft_message:
footer: |
Reply: %{reply_url}
See message online: %{msg_url}
Messaging options: %{profile_url}
model:
delivery:
each_stock_article_must_be_unique: Each stock article must not be listed more than once.

View file

@ -17,7 +17,6 @@ SimpleNavigation::Configuration.run do |navigation|
subnav.item :members, I18n.t('navigation.members'), foodcoop_users_path, id: nil
subnav.item :workgroups, I18n.t('navigation.workgroups'), foodcoop_workgroups_path, id: nil
subnav.item :ordergroups, I18n.t('navigation.ordergroups'), foodcoop_ordergroups_path, id: nil
subnav.item :messages, I18n.t('navigation.messages'), messages_path, id: nil
subnav.item :tasks, I18n.t('navigation.tasks'), tasks_path, id: nil
end

View file

@ -73,8 +73,6 @@ Foodsoft::Application.routes.draw do
end
end
resources :messages, :only => [:index, :show, :new, :create]
namespace :foodcoop do
root :to => 'users#index'