From 76f563016ac2d0fab24ed08654b802eeda7a76ad Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Mon, 12 Jun 2017 14:11:12 +0200 Subject: [PATCH] Hide button after rfc is solved and add check mark to title --- app/views/request_for_comments/show.html.erb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index 9803b581..b28c1eb9 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -1,5 +1,10 @@
-

<%= link_to(@request_for_comment.exercise.title, [:implement, @request_for_comment.exercise]) %>

+

+ <% if (@request_for_comment.solved?) %> + + <% end %> + <%= link_to(@request_for_comment.exercise.title, [:implement, @request_for_comment.exercise]) %> +

<% user = @request_for_comment.user @@ -37,10 +42,6 @@ <%= t('request_for_comments.cancel_thank_you_note') %>

- <% elsif (@request_for_comment.solved?) %> - - <% else %> - <% end %>