Sha256: 2e1e941ed8b7a6b67c9e2b4791fffbfc9c881d3700d63197044f76fb296a1893

Contents?: true

Size: 314 Bytes

Versions: 5

Compression:

Stored size: 314 Bytes

Contents

<%
   if current_user == @order.user
     @title = t(".your_order")
   else
   # TODO: interpolate user name
   # (means name method has to be implemented for user model)
     @title = t(".for_user_title", :name => @order.user.trolley_user_display_name)
   end
-%>

<h1><%= @title -%></h1>

<%= render @order -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trollied-0.1.4 app/views/orders/show.html.erb
trollied-0.1.3 app/views/orders/show.html.erb
trollied-0.1.2 app/views/orders/show.html.erb
trollied-0.1.1 app/views/orders/show.html.erb
trollied-0.1.0 app/views/orders/show.html.erb