{% load i18n %}

<%= name %> <% if(Ns.settings.votes && relationships && relationships.voting_allowed){ %> <%= relationships.counts.likes %> <%= relationships.counts.dislikes %> <% } %>

<% if(user) { %> <% if(relationships){ %><% } %><%= user %> <% if (Ns.settings.contacting) { %> {% trans 'contact' %} <% } %> <% } %> {% trans 'permalink' %} <% if(Ns.db.user.isAuthenticated() && can_edit){ %> {% trans 'edit' %} <% } %>

<% if(description){ %>
<%= _.nl2br(description) %>
<% } %> <% if(address){ %> <% } %> <% if(elev){ %> <% } %> <% _hstore_schema.forEach(function(field){ value = _hstore_data[field.name] %> <% if(typeof value !== 'undefined' && value !== ''){ %> <% } %> <% }); %> <% if(Ns.settings.ratings && relationships && relationships.rating_allowed){ %> <% } %>
{% trans 'Status' %}: <%= status %>
{% trans 'Layer' %}: <%= layer_name %>
{% trans 'Address' %}: <%= address %>
{% trans 'Elevation' %}: <%= elev %> {% trans 'meters' %}
<%= field.label %>: <% if (typeof value === 'boolean') { %> <% } else { %> <%= value %> <% } %>
{% trans 'Added' %}: <%= _.formatDate(added) %>
{% trans 'Updated' %}: <%= _.formatDate(updated) %>
{% trans 'Rating' %}: <% _.each(_.numberTo5Stars(relationships.counts.rating_avg / 2), function(value, i){ %> <% }) %> (<%= relationships.counts.rating_count %>)
<% if(Ns.settings.comments && relationships && relationships.comments_allowed){ %>

{% trans 'Comments' %}

<% if(Ns.db.user.isAuthenticated()){ %>
<% } else { %> <% } %> <% if(relationships.comments.length > 0){ %> <% relationships.comments.forEach(function(comment, i){ %>

<%= _.nl2br(comment.text) %>

<% }); %> <% } %>
<% } %>