fix and improve i18n of "My Ordergroup"

This commit is contained in:
wvengen 2013-11-09 14:19:54 +01:00
parent 94a9603488
commit 891b9a21c0
2 changed files with 6 additions and 11 deletions

View file

@ -4,16 +4,14 @@
.span4
%h2= @ordergroup.name
.well
- unless @ordergroup.description.blank?
%p= @ordergroup.description
%p
%b= t '.description'
= @ordergroup.description
%p
%b= t '.funds'
%b= Ordergroup.human_attribute_name(:available_funds) + ':'
= number_to_currency(@ordergroup.get_available_funds())
%h2= t '.people'
%ul
- for membership in @ordergroup.memberships
%li= membership.user.nick
%p
%b= Ordergroup.human_attribute_name(:user_tokens) + ':'
= @ordergroup.memberships.map{|m| m.user.nick}.join(', ')
= link_to t('.invite'), new_invite_path(:id => @ordergroup), :remote => true, class: 'btn btn-primary'
.span8
%h2= t('.account_summary')

View file

@ -857,10 +857,7 @@ en:
no_ordergroups: You are unfortunately not a member of an ordergroup.
ordergroup:
account_summary: Account Statement
description: description
funds: ! 'Available credit:'
invite: Invite a new Person
people: People
search: Search ...
title: My ordergroup
ordergroup_cancelled: You cancelled membership of the group %{group}.