Commit f80ead1832eab7988562412a84d766797f644b7e

Authored by Arthur Esposte
1 parent c7c3a74b

Add block title to software block

lib/softwares_block.rb
... ... @@ -81,7 +81,7 @@ class SoftwaresBlock < CommunitiesBlock
81 81 block = self
82 82  
83 83 proc do
84   - render :file => 'blocks/main_area_softwares', :locals => { :profiles=> block.profile_list() }
  84 + render :file => 'blocks/main_area_softwares', :locals => { :profiles=> block.profile_list(), :block => block }
85 85 end
86 86 else
87 87 super(arg)
... ...
views/blocks/main_area_softwares.html.erb
  1 +<%= block_title(block.title) %>
1 2 <% profiles.each do |profile| %>
2 3 <div class="software-block">
3 4 <div class="software-block-content">
... ...