diff options
author | 2011-10-10 01:25:15 +0200 | |
---|---|---|
committer | 2011-10-10 01:25:15 +0200 | |
commit | b124a4f70004bb827bf270bcf21d35b49b1995e0 (patch) | |
tree | e857413b7e4665df210e12ea478c067d8db39881 | |
parent | Migrate plain text mailer in GLSAMailer to rails-3 (diff) | |
download | glsamaker-b124a4f70004bb827bf270bcf21d35b49b1995e0.tar.gz glsamaker-b124a4f70004bb827bf270bcf21d35b49b1995e0.tar.bz2 glsamaker-b124a4f70004bb827bf270bcf21d35b49b1995e0.zip |
edit view: Use to_s for all name references, cleanup
-rw-r--r-- | app/views/glsa/show.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/glsa/show.html.erb b/app/views/glsa/show.html.erb index 514473c..3781110 100644 --- a/app/views/glsa/show.html.erb +++ b/app/views/glsa/show.html.erb @@ -16,7 +16,7 @@ <%= link_to_function "#{image_tag 'icons/reference.png'} Import references".html_safe, "GLSAMaker.editing.references.import_dialog(#{@glsa.id})", {:class => 'button'} %> <%= link_to "#{image_tag 'icons/diff.png'} Compare revisions".html_safe, diff_glsa_path(@glsa, :old => @glsa.last_revision.revid - 1, :new => @glsa.last_revision.revid), {:class => 'button'} %> <%= link_to "#{image_tag 'icons/sent.png'} Release advisory".html_safe, prepare_release_glsa_path(@glsa), {:class => 'button'} if current_user.access >= 2 %> - <%= link_to ("#{image_tag 'icons/delete.png'} Delete".html_safe, glsa_path(@glsa), :method => :delete, :confirm => "Do you really want to delete this item?", :class => 'button') if current_user.is_el_jefe? %> + <%= link_to "#{image_tag 'icons/delete.png'} Delete".html_safe, glsa_path(@glsa), :method => :delete, :confirm => "Do you really want to delete this item?", :class => 'button' if current_user.is_el_jefe? %> </div> <div style="float: right; width: 40%;"> @@ -35,12 +35,12 @@ <% end %> <p> <span style="float: right; font-size: 90%;"><%= @glsa.created_at.to_s %></span> - Requester: <strong><%= @glsa.requester.name %></strong> + Requester: <strong><%= @glsa.requester.to_s %></strong> </p> <% if @glsa.submitter %> <p> <span style="float: right; font-size: 90%;"><%= @glsa.updated_at.to_s %></span> - Submitter: <strong><%= @glsa.submitter.name %></strong> + Submitter: <strong><%= @glsa.submitter.to_s %></strong> </p> <% end %> <p> |