Fixed multi coop routing and changed config accessors.
This commit is contained in:
parent
2860a3ca44
commit
ec2e761e7f
28 changed files with 124 additions and 88 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#{data_to_js(@ordering_data)}
|
||||
setGroupBalance(#{@ordering_data[:available_funds]});
|
||||
setDecimalSeparator(",");
|
||||
setToleranceBehaviour(#{Foodsoft.config[:tolerance_is_costly]});
|
||||
setToleranceBehaviour(#{FoodsoftConfig[:tolerance_is_costly]});
|
||||
setStockit(#{@order.stockit?});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
%b= h category
|
||||
%td{:colspan => "9"}
|
||||
- order_articles.each do |order_article|
|
||||
- if Foodsoft.config[:tolerance_is_costly]
|
||||
- if FoodsoftConfig[:tolerance_is_costly]
|
||||
- article_total = @price[i] * (@tolerance[i] + @quantity[i])
|
||||
- else
|
||||
- article_total = @price[i] * @quantity[i]
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
#logo
|
||||
= link_to root_path do
|
||||
<span>food</span>soft
|
||||
%span{:style => "color:white; font-size:45%; letter-spacing: -1px;"}= Foodsoft.config[:name]
|
||||
%span{:style => "color:white; font-size:45%; letter-spacing: -1px;"}= FoodsoftConfig[:name]
|
||||
#nav= render :partial => 'layouts/main_tabnav'
|
||||
|
||||
#main
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
--
|
||||
FoodSoft: <%= root_url %>
|
||||
Foodcoop-Homepage: <%= Foodsoft.config[:homepage] %>
|
||||
Hilfe/Help: <%= Foodsoft.config[:help_url] %>
|
||||
Foodcoop-Homepage: <%= FoodsoftConfig[:homepage] %>
|
||||
Hilfe/Help: <%= FoodsoftConfig[:help_url] %>
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@
|
|||
= yield
|
||||
#meta
|
||||
Foodcoop
|
||||
= link_to_if Foodsoft.config[:homepage], Foodsoft.config[:name], Foodsoft.config[:homepage]
|
||||
= link_to_if FoodsoftConfig[:homepage], FoodsoftConfig[:name], FoodsoftConfig[:homepage]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
- title "Einladung in die #{Foodsoft.config[:name]}"
|
||||
- title "Einladung in die #{FoodsoftConfig[:name]}"
|
||||
%p
|
||||
Du bist eingeladen worden als Mitglied der Gruppe
|
||||
%b= @invite.group.name
|
||||
in der Foodcoop
|
||||
= Foodsoft.config[:name]
|
||||
= FoodsoftConfig[:name]
|
||||
mitzumachen.
|
||||
%p
|
||||
Wenn Du mitmachen möchtest, dann fülle bitte dieses Formular aus.
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ Es wurden <%= @transaction.amount %> für "<%= @transaction.note %>" abgebucht,
|
|||
|
||||
Bitte zahlt so bald wie möglich wieder Geld ein, um das Gruppenkonto auszugleichen.
|
||||
|
||||
Viele Grüße von <%= Foodsoft.config[:name] %>
|
||||
Viele Grüße von <%= FoodsoftConfig[:name] %>
|
||||
|
|
@ -11,4 +11,4 @@ Gesamtpreis: <%= @group_order.price %>
|
|||
|
||||
Bestellung online einsehen: <%= group_order_url(@group_order) %>
|
||||
|
||||
Viele Grüße von <%= Foodsoft.config[:name] %>
|
||||
Viele Grüße von <%= FoodsoftConfig[:name] %>
|
||||
|
|
@ -12,4 +12,4 @@ Aufgaben für die nächste Woche:
|
|||
|
||||
Meine Aufgaben: <%= user_tasks_url %>
|
||||
|
||||
Viele Grüße von <%= Foodsoft.config[:name] %>
|
||||
Viele Grüße von <%= FoodsoftConfig[:name] %>
|
||||
|
|
@ -21,18 +21,18 @@
|
|||
- title "Neue Nachricht"
|
||||
|
||||
= simple_form_for @message do |f|
|
||||
- if Foodsoft.config[:mailing_list].blank?
|
||||
- if FoodsoftConfig[:mailing_list].blank?
|
||||
= f.input :sent_to_all, :as => :boolean
|
||||
- else
|
||||
%b Nachrichten an alle
|
||||
verschickst Du bitte über den Verteiler:
|
||||
= mail_to Foodsoft.config[:mailing_list]
|
||||
= mail_to FoodsoftConfig[:mailing_list]
|
||||
%br/
|
||||
%small{:style => "color:grey"}
|
||||
Eventuell musst Du Dich dem Verteiler erst bekannt machen.
|
||||
%br/
|
||||
z.b. mit einer Mail an
|
||||
= mail_to Foodsoft.config[:mailing_list_subscribe]
|
||||
= mail_to FoodsoftConfig[:mailing_list_subscribe]
|
||||
|
||||
#recipients
|
||||
= f.input :recipient_tokens, :input_html => { 'data-pre' => User.find_all_by_id(@message.recipients_ids).map { |u| u.token_attributes }.to_json }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Get ActiveRecord objects
|
||||
contact = Foodsoft.config[:contact].symbolize_keys
|
||||
contact = FoodsoftConfig[:contact].symbolize_keys
|
||||
|
||||
# Define header and footer
|
||||
#pdf.header [pdf.margin_box.left,pdf.margin_box.top+30] do
|
||||
|
|
@ -12,7 +12,7 @@ end
|
|||
|
||||
# From paragraph
|
||||
pdf.bounding_box [pdf.margin_box.right-200,pdf.margin_box.top], :width => 200 do
|
||||
pdf.text Foodsoft.config[:name], :align => :right
|
||||
pdf.text FoodsoftConfig[:name], :align => :right
|
||||
pdf.move_down 5
|
||||
pdf.text contact[:street], :align => :right
|
||||
pdf.move_down 5
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
%li
|
||||
= image_tag 'b_user.png' , :size => '7x10', :border => 0, :alt => "Profil"
|
||||
= link_to h(@current_user.nick), my_profile_path, { :title => "Profil bearbeiten" }
|
||||
- if Foodsoft.config[:homepage]
|
||||
%li= link_to Foodsoft.config[:name], Foodsoft.config[:homepage], { :title => "Go to your FoodCoop-Hompage" }
|
||||
- if FoodsoftConfig[:homepage]
|
||||
%li= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage], { :title => "Go to your FoodCoop-Hompage" }
|
||||
%li= link_to "Hilfe", 'http://dev.foodcoops.net/wiki/FoodsoftDoku'
|
||||
%li= link_to "Feedback", new_feedback_path, :title => "Fehler gefunden? Vorschlag? Idee? Kritik?"
|
||||
%li= link_to "Abmelden", logout_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue