+8
-10
app/views/articles/show.html.erb
+8
-10
app/views/articles/show.html.erb
···
11
11
<div class="pbody"><%== @article.body %></div>
12
12
13
13
<% if user_signed_in? %>
14
-
<ul>
15
-
<li><%= link_to "edit", edit_article_path(@article) %></li>
16
-
<li><%= link_to "destroy", article_path(@article), data: {
14
+
<p>
15
+
<%= link_to "edit", edit_article_path(@article) %> |
16
+
<%= link_to "destroy", article_path(@article), data: {
17
17
turbo_method: :delete,
18
18
turbo_confirm: "Are you sure?"
19
-
} %></li>
20
-
21
-
</ul>
19
+
} %>
20
+
</p>
22
21
<% else %>
23
22
<% end %>
24
23
25
24
<hr>
26
25
27
-
<ul>
28
-
<li><%= link_to "home", articles_path %></li>
29
-
<li><a href="/profiles/1">me</a></li>
30
-
</ul>
26
+
<p>
27
+
<%= link_to "home", articles_path %> | <a href="/profiles/1">me</a>
28
+
</p>
31
29
32
30
</div>