Geplantes Gitlab Update: Donnerstag, Morgens vor 9 Uhr

Commit f52686ad authored by simon's avatar simon
Browse files

Add some rails_best_practices suggestions

parent 936667cb
# frozen_string_literal: true
# various helper methods for comments
module CommentsHelper
end
# frozen_string_literal: true
# various helper methods for conversations
module ConversationHelper
end
# frozen_string_literal: true
# various helper methods for conversations messages
module ConversationMessagesHelper
end
<div class="conversation-messages-wrapper">
<h1>
<%= image_tag(@conversation.partner(current_user).avatar.variant(resize_to_fill: [400,400]), class: "avatar message-avatar") %>
<%= @conversation.partner(current_user).username %></h1>
<%= @conversation.partner(current_user).username %>
</h1>
<div class="messages-body-wrapper">
<div class="messages-body">
<%= render 'messages' %>
......
<div class="mobile-menu">
<div class="container">
<div class="phone">
<div class="content">
<nav role="navigation">
<div id="menuToggle">
<input type="checkbox" />
<span></span>
<span></span>
<span></span>
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Info</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</body>
</html>
......@@ -20,7 +20,6 @@
<%= form.label :content_text %>
<%= form.text_field :content_text, id: "post-textarea" %>
</div>
<div class="actions">
<%= form.submit %>
</div>
......
......@@ -15,17 +15,14 @@
<h2>Create Post</h2>
<div class=inner-container>
<%= form_with(model: post, local: true) do |form| %>
<div class="field_title">
<%= form.label :title %>
<%= form.text_field :title %>
</div>
<div class="field_content_text">
<%= form.label :content_text, "Content:" %>
<%= form.text_area :content_text, class: "post-textarea" %>
</div>
<div class="content">
<div class="field_content_image">
<%= form.label :content_image, "Image:" %>
......@@ -40,12 +37,9 @@
<%= form.label :tag_list, "Tags" %>
<%= form.text_field :tag_list %>
</div>
<div class="actions">
<%= form.submit 'Create Post', :class => 'submit' %>
</div>
<% end %>
</div>
</section>
......
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