Skip to content

Commit

Permalink
invisible tag
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthecao committed Dec 8, 2024
1 parent 7b46975 commit bd8c8d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/posts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def index
@newmessages = @unresponded_chats.map do |chat|
Message.find(chat.last_message_id)
end.flatten
@lastpost= Post.last
end

def show
Expand Down
6 changes: 6 additions & 0 deletions app/views/posts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
font-weight: bold;
}

.invisible {
display: none;
}
.meta-text {
font-size: 14px;
color: #666;
Expand Down Expand Up @@ -280,6 +283,9 @@
<%= render 'posts/form' %>
</div>

<div class ="invisible">
<%=@lastpost.id%>
</div>
<div class="filter-section">
<%= form_tag posts_path, method: :get, class: "filter-form" do %>
<%= select_tag :filter,
Expand Down

0 comments on commit bd8c8d5

Please sign in to comment.