From f80ead1832eab7988562412a84d766797f644b7e Mon Sep 17 00:00:00 2001 From: Arthur Del Esposte Date: Sat, 6 Dec 2014 18:01:53 +0000 Subject: [PATCH] Add block title to software block --- lib/softwares_block.rb | 2 +- views/blocks/main_area_softwares.html.erb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/softwares_block.rb b/lib/softwares_block.rb index 9855c6f..d3e62d8 100644 --- a/lib/softwares_block.rb +++ b/lib/softwares_block.rb @@ -81,7 +81,7 @@ class SoftwaresBlock < CommunitiesBlock block = self proc do - render :file => 'blocks/main_area_softwares', :locals => { :profiles=> block.profile_list() } + render :file => 'blocks/main_area_softwares', :locals => { :profiles=> block.profile_list(), :block => block } end else super(arg) diff --git a/views/blocks/main_area_softwares.html.erb b/views/blocks/main_area_softwares.html.erb index 343a9c3..f2c9d45 100644 --- a/views/blocks/main_area_softwares.html.erb +++ b/views/blocks/main_area_softwares.html.erb @@ -1,3 +1,4 @@ +<%= block_title(block.title) %> <% profiles.each do |profile| %>
-- libgit2 0.21.2