<% if @map.contributors.count == 0 %>
<% elsif @map.contributors.count == 1 %>
<% elsif @map.contributors.count == 2 %>
<% elsif @map.contributors.count > 2 %>
<% end %>
<%= @map.contributors.count %>
<% contributorList = ''
@map.contributors.each_with_index do |c, index|
comma = (index+1) == @map.contributors.count ? '' : ', '
contributorList += c.name + comma
end
if @map.contributors.count == 0
contributorList = 'No one has added anything yet.'
end %>
<% @map.contributors.each_with_index do |c, index| %>
-
<%= @map.contributors[index].name %>
<% end %>
<%= @map.topics.count %>
<%= @map.synapses.count %>
<% if @map.user == user %>
As the creator, you can change the permission of this map, but the permissions of the topics and synapses on it must be changed independently.
<% end %>
<% if (authenticated? && @map.authorize_to_edit(user)) || (!authenticated? && @map.desc != "" && @map.desc != nil )%>
<%= best_in_place @map, :desc, :activator => "#mapInfoDesc", :type => :textarea, :nil => "Click to add description...", :classes => 'best_in_place_desc' %>
<% end %>