diff --git a/app/views/invitations/show.html.erb b/app/views/invitations/show.html.erb index 14c675b..e9ddf21 100644 --- a/app/views/invitations/show.html.erb +++ b/app/views/invitations/show.html.erb @@ -1,39 +1,35 @@ -
<%= @invitation.project_description %>
+Categoria: <%= @invitation.project_category %>
+ <% if @invitation.message.present? %> +Mensagem: <%= @invitation.message %>
+ <% end %> + <% if @invitation.expiration_date.present? %> +Expira dia: <%= I18n.l(@invitation.expiration_date) %>
+ <% end %> -<%= @invitation.project_description %>
-Categoria: <%= @invitation.project_category %>
- - <% if @invitation.pending? %> -Expira dia: <%= I18n.l(@invitation.expiration_date) %>
- -Mensagem: <%= @invitation.message %>
- <% end %> - -<%= 'Aceito' if @invitation.accepted? %>
-<%= 'Expirado' if @invitation.expired? %>
-<%= 'Recusado' if @invitation.declined? %>
-<%= 'Cancelado' if @invitation.cancelled? %>
-<%= 'Processando' if @invitation.processing? %>
+ <% if @invitation.pending? %> +<%= 'Aceito' if @invitation.accepted? %>
+<%= 'Expirado' if @invitation.expired? %>
+<%= 'Recusado' if @invitation.declined? %>
+<%= 'Cancelado' if @invitation.cancelled? %>
+<%= 'Processando' if @invitation.processing? %>
+