-
-
Save LTe/93496f14e5a6200cd654 to your computer and use it in GitHub Desktop.
_message.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%div{ :class => "message", :id => "message_#{message.id}" } | |
%div{ :class => "message_checkbox"} | |
= check_box_tag "message_checkbox_#{message.id}" | |
%div{ :class => "message_user_avatar", :id => "message_user_avatar_#{message.id}" } | |
%div{ :class => "message_and_body" } | |
%div{ :class => "message_topic", :id => "message_topic_#{message.id}" } | |
= link_to message.topic, message_path(message.id) | |
%div{ :class => "message_body", :id => "message_body_#{message.id}" } | |
= message.body | |
%div{ :class => "message_destroy", :id => "message_destroy_#{message.id}" } | |
= link_to "X", message_path(message.id), :method => :delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= link_to t(:new_message), new_message_path | |
= render :partial => "message", :collection => @messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for :message, :url => messages_path, :method => :post do |f| | |
= f.label :to, t(:to) | |
= f.text_field :to, :class => "text_field" | |
= f.label :topic, t(:topic) | |
= f.text_field :topic, :class => "text_field" | |
= f.label :body, t(:body) | |
= f.text_area :body, :class => "text_field" | |
= f.submit t(:send) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= render :partial => "message", :locals => { :message => @message } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@fiatlux If you want to chat send me a private message ;-)