Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
fixing show note formatting"
Browse files Browse the repository at this point in the history
;
  • Loading branch information
kellishaver committed Oct 19, 2008
1 parent 00f7a2f commit ef3780c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
12 changes: 1 addition & 11 deletions app/views/notes/show.html.erb
Expand Up @@ -2,20 +2,10 @@
<% title "View Note: " + @note.name %>
<h1><%= yield(:title) %></h1>
<% if owner? %>
<p>
<%= link_to image_tag("/images/edit_note_btn.png", :alt => "Edit Note"), edit_project_note_path(project_param, @note) %>
<%= link_to image_tag("/images/delete_note_btn.png", :alt => "Delete Note"), [current_project, @note], :confirm => 'Are you sure?', :method => :delete %>
</p>
<% end %>
<p>
<strong>Project:</strong>
<%=h @note.project.name %>
</p>
<p>
<strong>Name:</strong>
<%=h @note.name %>
</p>
<%= simple_format @note.content %>
<div class="big_desc" style="margin:0; padding:0; border:none;"><%= simple_format @note.content %></div>
</div>
<div id="sidebar">
<h3><%= link_to "&#187; Back to Project Home", project_path(project_param) %></h3>
Expand Down
1 change: 1 addition & 0 deletions app/views/palettes/edit.html.erb
Expand Up @@ -2,6 +2,7 @@
<% title "Edit Palette: " + @palette.name %>
<h1><%= yield(:title) %></h1>
<%= render :partial => 'form' %>
<p class="clear"><br /><br /><%= link_to image_tag("/images/delete_palette_btn.png", :alt => "Delete Palette"), [current_project, @palette], :confirm => 'Are you sure?', :method => :delete %></p>
</div>
<div id="sidebar">
<h3><%= link_to "&#187; Back to Project Home", project_path(project_param) %></h3>
Expand Down
2 changes: 1 addition & 1 deletion app/views/photos/manage.html.erb
Expand Up @@ -9,7 +9,7 @@
<li class="<%= cycle('normal', 'alt') %>">
<%= image_tag photo.image.url(:tiny), :class => "tinythumb" %>
<span class="info"><%= link_to photo.name, photo.image.url %> <span class="date"><%= photo.created_at.strftime("%b, %d %Y at %I:%M %p") %></span></span>
<%= link_to image_tag("/images/delete_photo_btn.png", :alt => "Delete Note"), [current_project, photo], :confirm => 'Are you sure?', :method => :delete, :class => "del_btn" %>
<%= link_to image_tag("/images/delete_photo_btn.png", :alt => "Delete Photo"), [current_project, photo], :confirm => 'Are you sure?', :method => :delete, :class => "del_btn" %>
</li>
<% end %>
<div class="clear"><br /></div>
Expand Down

0 comments on commit ef3780c

Please sign in to comment.