OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/my/_block_container.html.erb

12 lines
452 B

<% unless blocks.nil? || blocks.empty? %>
<% blocks.each do |block_name| %>
<% next unless MyController.available_blocks.keys.include? block_name %>
<% if edit %>
<%= render partial: "my/block", locals: { block_name: block_name, user: @user } %>
<% else %>
<div class="widget-box">
<%= render partial: "my/blocks/#{block_name}", locals: { edit: false, user: @user } %>
</div>
<% end %>
<% end %>
<% end %>