From 1ef99973b0e38f7107f7f3c844fc36eff6beb9a2 Mon Sep 17 00:00:00 2001 From: Alexandre Arias <apa13@inf.ufpr.br> Date: Tue, 10 Nov 2015 09:23:40 -0200 Subject: [PATCH] fix button name and lobject name Signed-off-by: Alexandre Arias <apa13@inf.ufpr.br> --- app/views/management/complaints/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/management/complaints/show.html.erb b/app/views/management/complaints/show.html.erb index 4cbc88e5d..240766be7 100644 --- a/app/views/management/complaints/show.html.erb +++ b/app/views/management/complaints/show.html.erb @@ -11,14 +11,14 @@ <% @complaints.each do |c| %> <div class="ls-box-filter"> - Denúncia de <b><%= c.user.name %></b> para o objeto <%= link_to c.object["title"], learning_object_path(c.object["@rid"]) %><BR> + Denúncia de <b><%= c.user.name %></b> para o objeto <%= link_to c.object["name"], learning_object_path(c.object["@rid"]) %><BR> <BR> <b>Mensagem:</b> <%= c.message %><BR> <BR> <b>Descrição:</b> <%= c.description == "" ? "--" : c.description %><BR> <div id="suspend", class="ls-btn ls-float-right"> - <%= link_to 'Excluir Denúncia', management_complaints_path(:object_rid => c.object["@rid"], :user_rid => c.user.rid), {method: :delete, data: { confirm: 'Tem certeza que deseja excluir?'}, title: 'Apagar usuário', class: 'ls-color-danger', role: 'option'} %> + <%= link_to 'Cancelar Denúncia', management_complaints_path(:object_rid => c.object["@rid"], :user_rid => c.user.rid), {method: :delete, data: { confirm: 'Tem certeza que deseja excluir?'}, title: 'Apagar usuário', class: 'ls-color-danger', role: 'option'} %> </div> <div id="suspend", class="ls-btn ls-float-right"> -- GitLab