From 7c171b15f26f30ce9f788d8aa79c9d4d5a6aebd1 Mon Sep 17 00:00:00 2001 From: Topher Date: Sun, 3 Oct 2010 17:56:00 -0700 Subject: [PATCH] added raw2 --- app/views/repositories/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/index.html.erb b/app/views/repositories/index.html.erb index c42df88..45ea9a4 100644 --- a/app/views/repositories/index.html.erb +++ b/app/views/repositories/index.html.erb @@ -18,7 +18,7 @@ <% end %> <%= image_tag('watchers.png', :border =>"0", :width => "20", :title => "Watchers") %> <%=h repository.watchers %> <%= image_tag('forkstrans.png', :border =>"0", :height => "20", :title => "Forks") %> <%=h repository.forks %> - <%= '- updated at ' + link_to(raw(repository.commits.last.created_at.to_s), repository.commits.last.url) + ' by ' + link_to(raw(repository.commits.last.authorname), 'http://github.com/' + h(repository.commits.last.authorname)) + ' - "' + repository.commits.last.message + '"' rescue "" %> + <%= '- updated at ' + link_to(repository.commits.last.created_at.to_s, raw(repository.commits.last.url)) + ' by ' + link_to(repository.commits.last.authorname, raw('http://github.com/' + h(repository.commits.last.authorname)) + ' - "' + repository.commits.last.message + '"') rescue "" %> <%= link_to_function(' more...') do |page| # page['commits_' + repository.id.to_s].toggle :slide page.visual_effect :toggle_blind, 'commits_' + repository.id.to_s @@ -33,7 +33,7 @@ <% repository.commits.each do |commit| %> - <%= '> Updated at ' + link_to(raw(commit.created_at.to_s), commit.url) + ' by ' + link_to(raw(commit.authorname), 'http://github.com/' + h(commit.authorname)) + ' - "' + commit.message + '"' rescue "" %> + <%= '> Updated at ' + link_to(commit.created_at.to_s, raw(commit.url)) + ' by ' + link_to(commit.authorname, raw('http://github.com/' + h(commit.authorname))) + ' - "' + commit.message + '"' rescue "" %> <% end %>