From e9f0b2a36fd80e2492035a8e501e36e77693fc2a Mon Sep 17 00:00:00 2001 From: f Date: Tue, 6 Oct 2020 16:35:50 -0300 Subject: [PATCH] el orden es condicional --- app/views/posts/index.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index a11ff81a..1425a124 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -86,7 +86,8 @@ %td = post.date.value.strftime('%F') %br/ - = post&.order&.value + - if post.attribute? :order + = post.order.value %td - if @usuarie || policy(post).edit? = link_to t('posts.edit'),