From ad98cab3bc4be070a7290b558fdb88c5db08f574 Mon Sep 17 00:00:00 2001 From: Arthur Del Esposte Date: Thu, 30 Oct 2014 19:37:59 +0000 Subject: [PATCH] Add repository link in Software Information block --- views/blocks/software_information.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/views/blocks/software_information.html.erb b/views/blocks/software_information.html.erb index 9d56951..f5e04b8 100644 --- a/views/blocks/software_information.html.erb +++ b/views/blocks/software_information.html.erb @@ -36,6 +36,14 @@ <%= link_to(_("#{block.owner.name} profile"), {:controller => 'profile', :action => "index", :profile => block.owner.identifier}) %> + <% unless block.owner.software_info.repository_link.blank? %> + + + <%= _("Main repository: ") %> + <%= link_to block.owner.software_info.repository_link, block.owner.software_info.repository_link %> + + + <% end %> -- libgit2 0.21.2