Sha256: 542cc2bfbccfb057f2190a797088e52df650cd409db917ac15f86b0a87fcdcc3
Contents?: true
Size: 1.95 KB
Versions: 7
Compression:
Stored size: 1.95 KB
Contents
<% content_for :page_title, "#{person_name_or_stub(@person)} // Curate" %> <% content_for :page_header do %> <hgroup> <h1><%= @person.name %></h1> <% unless @person.title.blank? %> <h3><%= @person.title %></h3> <% end %> </hgroup> <% end %> <div class="row"> <div class="span3"> <div class="profile-picture"> <%= render partial: 'profile_image', locals: {person: @person} %> </div> <dl class="<%= dom_class(@person) %>"> <%# This is where I tell Jeremy I'm sorry. %> <% @person.terms_for_display.reject{|name| name == :name}.each do |attribute_name| %> <% if @person.send(attribute_name).present? %> <dt><%="#{derived_label_for( @person, attribute_name) }:" %></dt> <% [@person.send(attribute_name)].flatten.compact.each do |value| %> <dd><%= value %></dd> <% end %> <% end %> <% end %> </dl> <% if can? :edit, @person %> <div class="form-action"> <%= link_to "Update Personal Information", edit_user_registration_path, class: 'btn btn-primary' %> </div> <% end %> </div> <div id="person_profile" class="span9"> <% if profile_has_contents?(@person) %> <% if @person.profile.title == @person.name %> <h3><%= "Selected Works of #{@person.name}" %></h3> <% else %> <h3><%= @person.profile.title %></h3> <% end %> <p><%= @person.profile.description %> </p> <div id="documents" class="clear"> <%= list_items_in_collection(@person.profile) %> </div> <% elsif current_user.respond_to?(:person) && @person == current_user.person %> <p class="center no-documents"> <em>You have not added any content to your profile.</em> </p> <% end %> <% if can_edit_profile_collection?(@person) %> <div class="form-action"> <%= link_to 'Add a Section to my Profile', new_collection_path(add_to_profile: true), class: 'btn btn-primary' %> </div> <% end %> </div> </div>
Version data entries
7 entries across 7 versions & 1 rubygems