Commit aba380aadf72e4c2fb8673969e4ccb85d0c74b0d
1 parent
ae76efe9
Exists in
master
and in
1 other branch
Fixes download block display name
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/noosfero-spb/software_communities/views/blocks/download.html.erb
1 | 1 | <% if block.owner.software_info.nil? %> |
2 | 2 | <%= _("This community needs a software to use this block") %> |
3 | 3 | <% else %> |
4 | - <h3 class="block-title"> <%= _("Download") + block.owner.software_info.community.name %> </h3> | |
4 | + <h3 class="block-title"> <%= block.title.present? ? block.title : _("Download") +" "+ block.owner.software_info.community.name %> </h3> | |
5 | 5 | <ul class="download-list"> |
6 | 6 | <% block.download_records.sort_by(&:id).each do |download| %> |
7 | 7 | <li id="download-item-<%= download.id %>"> | ... | ... |