Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

groupy branch: display your credit limit if it exists

  • Loading branch information...
commit 4bbfe61e3e4cdc6236d708c061b2f5fb5d0232de 1 parent 171a9d3
@herestomwiththeweather herestomwiththeweather authored
View
10 app/views/groups/_toolbox.html.erb
@@ -6,8 +6,14 @@
<li>
<%= link_to "Community Exchanges Graph", graphs_group_path(@group), :class => "show-follow" %>
</li>
- <%- unless @group.default_credit_limit.nil? %>
- <li>Default Credit Limit: <%= @group.default_credit_limit %></li>
+ <%- unless @membership.nil? %>
+ <%- unless @membership.account.credit_limit.nil? %>
+ <li><%= t('groups.show.your_credit_limit') %> <%= @membership.account.credit_limit %> <%= @group.unit %></li>
+ <%- end -%>
+ <%- else -%>
+ <%- unless @group.default_credit_limit.nil? %>
+ <li><%= t('groups.show.default_credit_limit') %> <%= @group.default_credit_limit %> <%= @group.unit %></li>
+ <%- end -%>
<%- end -%>
<%- end -%>
<%- unless @membership.nil? %>
View
2  config/locales/en.yml
@@ -150,6 +150,8 @@ en:
you_are_group_admin: "You are group's admin"
delete_it: "(delete it)"
mode: "Mode:"
+ your_credit_limit: "Your Credit Limit: "
+ default_credit_limit: "Default Credit Limit: "
your_activity: "Your Activity"
asset_name: "OpenTransact Asset Name:"
invite_contacts: "Invite contacts"
View
2  config/locales/es.yml
@@ -149,6 +149,8 @@ es:
you_are_group_admin: "Tu eres el administrador de este grupo"
delete_it: "(Borrarlo)"
mode: "Modo:"
+ your_credit_limit: "Su límite crediticio: "
+ default_credit_limit: "Límite crediticio: "
your_activity: "Tus actividades"
asset_name: "Nombre del OpenTransact activo:"
invite_contacts: "Invite a sus contactos"
Please sign in to comment.
Something went wrong with that request. Please try again.