mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 19:20:13 +01:00
render :partial => filename, :object => @object can be written shorter since rails 2.0 like render :partial => @object or render :partial => @collection Also form_for is smart bout put and post for update and creation. it helps watching older railcasts episodes :-)
16 lines
698 B
Text
16 lines
698 B
Text
<% note = note_details -%>
|
|
<div class="note_boby"><%= format_note(note.body) %></div>
|
|
|
|
<div class="note_footer">
|
|
|
|
<%= link_to_delete_note(note, image_tag( "blank.png",:title => t('notes.delete_item_title'), :class=>"delete_item")) %>
|
|
<%= link_to_edit_note(note, image_tag( "blank.png", :title => t('notes.edit_item_title'), :class=>"edit_item") ) %>
|
|
|
|
| <%= link_to("In: " + note.project.name, note.project, :class=>"footer_link" ) %> |
|
|
|
|
<%= Note.human_attribute_name('created_at') %>: <%= format_date(note.created_at) %>
|
|
|
|
<% if note.updated_at? -%>
|
|
| <%= Note.human_attribute_name('updated_at') %>: <%= format_date(note.updated_at) %>
|
|
<% end -%>
|
|
</div>
|