Sha256: 10472b72b5828510e8a6998dbbbb6ec2a84f14750d3d78297c7e3bd76c9062fb
Contents?: true
Size: 1.54 KB
Versions: 1
Compression:
Stored size: 1.54 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="span12"> <dl class="attribute-list <%= 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> <div class="row"> <div id="person_profile" class="span12"> <% if profile_has_contents?(@person) %> <h3><%= "Selected Works of #{@person.name}" %> </h3> <p><%= @person.profile.description %> </p> <div id="documents" class="clear"> <%= list_items_in_collection(@person.profile) %> </div> <% 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curate-0.5.0 | app/views/curate/people/show.html.erb |