Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
TuckerJD committed Nov 14, 2014
2 parents d414e6a + 736da9f commit 949fb09
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/views/notes/_object_pane.html.erb
@@ -0,0 +1,10 @@
<div class="object_pane">
<h3> Notes </h3>
<ul>
<% object.notes.each do |note| -%>
<li> <%= note.text -%> </li>
<% end %>
</ul>

<%= content_tag(:em, 'No attached notes.') if !object.notes.any? -%>
</div>
1 change: 1 addition & 0 deletions app/views/shared/data/_show.html.erb
Expand Up @@ -18,6 +18,7 @@
<div class="attributes">
<%= render partial: '/shared/data/show/housekeeping', locals: {object: object} -%>
<%= render(partial: '/shared/data/show/soft_validation', locals: {object: object}) if object.class.respond_to?(:soft_validates?) -%>
<%= render(partial: '/notes/object_pane', locals: {object: object}) if object.respond_to?(:notes) %>
</div>
</div>

Expand Down

0 comments on commit 949fb09

Please sign in to comment.