From 9336ad5450aebb5049fa49691b8e13ab0644b2b1 Mon Sep 17 00:00:00 2001 From: Beastie MAC Date: Tue, 17 Dec 2019 14:29:55 +0200 Subject: [PATCH] Fixed style show policy --- app/views/policies/show.html.erb | 34 ++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/app/views/policies/show.html.erb b/app/views/policies/show.html.erb index 3aa1a91..abf6917 100644 --- a/app/views/policies/show.html.erb +++ b/app/views/policies/show.html.erb @@ -5,16 +5,34 @@
- <%= link_to 'Редагувати', edit_policy_path(@policy), class: "pull-right" %> - -

<%= @policy.name %>

- <%= link_to 'Історія редагувань', policy_path(@policy, history: 1), class: "pull-right" %> -

<%= @policy.description %>

- +
+
+

<%= @policy.name %>

+

<%= @policy.description %>

+
+
+ +
+
-
- <% if params[:history]=="1" %>

Історія редагувань