Soc/app/views/microposts/index.html.erb

19 lines
415 B
Plaintext
Raw Normal View History

2024-03-06 20:31:14 +00:00
<section class="content">
<h2><%= t(".microposts") %></h2>
2024-03-06 20:31:14 +00:00
<%= link_to t(".new"), new_micropost_path if logged_in? %>
2024-03-06 20:31:14 +00:00
<%= t(".intro_html") %>
2023-10-05 18:22:31 +00:00
2024-03-06 20:31:14 +00:00
<% if @microposts.empty? %>
<p><%= t(".empty") %></p>
<% else %>
<ul id="microposts">
<% @microposts.each do |micropost| %>
<li><%= render micropost %></li>
<% end %>
</ul>
<%= paginate @microposts %>
<% end %>
</section>