Commit 3b74fc18 authored by Felix Macho's avatar Felix Macho
Browse files

Add Button Functionality to refer back to the page before

parent e76b09a7
......@@ -44,6 +44,7 @@ section.container {
display: flex;
justify-content: flex-end;
align-items: center;
height: 100%;
.fab{
grid-area: close;
width: 2em;
......
......@@ -14,7 +14,7 @@
<section class="container">
<h2>Create Post</h2>
<div class="close">
<%= link_to image_tag(image_url("times-circle-solid.svg"), :class => "fab submit"), new_post_path%>
<%= link_to image_tag(image_url("times-circle-solid.svg"), :class => "fab submit"), 'javascript:history.back()'%>
</div>
<div class=inner-container>
<%= form_with(model: post, local: true) do |form| %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment