cirandas.net

ref: dockerize

app/views/profile/index.html.erb


<%= h profile.name %>

<% if @action %> <%= render :partial => 'private_profile' %> <% else %> <% unless profile.description.blank? %>
<%= raw profile.description %>
<% end %> <% end %> <% if @profile.public? || (logged_in? && current_person.follows?(@profile)) %>
<% plugins_tabs = @plugins.dispatch(:profile_tabs).map { |tab| {:title => tab[:title], :id => tab[:id], :content => instance_exec(&tab[:content]), :start => tab[:start]} }%> <% tabs = plugins_tabs.select { |tab| tab[:start] } %> <% if @profile.organization? kind = 'organization-profile' elsif @profile.person? kind = 'person-profile' else kind = 'profile' end %> <% if logged_in? %> <% tabs << {:title => _('Wall'), :id => 'profile-wall', :content => (render :partial => 'profile_wall')} if AccessLevels.can_access?(@profile.wall_access, user, @profile) %> <% tabs << {:title => _('Network'), :id => 'profile-network', :content => (render :partial => 'profile_network')} if @profile == user %> <% end %> <% tabs << {:title => _('Profile'), :id => kind, :content => (render :partial => kind.gsub('-', '_'))} %> <% tabs += plugins_tabs.select { |tab| !tab[:start] } %> <%= render_tabs(tabs) %>
<% end %>