cirandas.net

ref: master

plugins/exchange/views/exchange_plugin_myprofile/_proposal_knowledges.html.erb


<% knowledges = profile.knowledges - proposal.knowledges %>

<%= _('Knowledges') %>

<% if knowledges.blank? %> <%= _("%s has no knowledges registered.") % profile.name %> <% else %>
    <% knowledges.each do |k| %>
  • <%= k.name %>
    <%= link_to_remote "", :url => {:controller => :exchange_plugin_element, :action => :create, :actor => actor, :object_id => k.id, :object_type => "CmsLearningPlugin::Learning", :element => {:proposal_id => proposal.id, :object_id => k.id, :object_type => "CmsLearningPlugin::Learning", :profile_id => profile.id}} %>
  • <% end %>
<% end %>