cirandas.net

ref: master

plugins/escambo/views/snippets/_cms_learning_plugin_learning.html.erb


<% profile = knowledge.profile %>

<%= _('Learning') %>
<%= _('%{profile} knows %{learning}') % { :profile => link_to(profile.name, profile.url), :learning => link_to(knowledge.name, knowledge.url), } %>

<%= knowledge.summary %>

<%= render :partial => 'snippets/local', :locals => {:profile => profile} %>
<% if profile != @active_organization %> <%= render :partial => 'exchange_plugin_shared/start_exchange', :locals => {:profile => profile, :object_id => knowledge.id, :object_type => "CmsLearningPlugin::Learning"} %> <% else %> <%= link_to _("Edit"), {:controller => :cms, :action => :edit, :profile => profile.identifier, :id => knowledge.id}, :class => 'exchange' %> <%= link_to _("Remove"), {:controller => :cms, :action => :destroy, :profile => profile.identifier, :id => knowledge.id}, :class => 'exchange', :confirm => _("Are you sure that you want to remove this knowledge?") %> <% end %>