Sha256: 1b2a498bb290cb49595b7d670b063503257eaab19e31e4796c6e3318d2f46b70

Contents?: true

Size: 589 Bytes

Versions: 10

Compression:

Stored size: 589 Bytes

Contents

<%= content_for :html_title, "#{@author.first_name} #{@author.last_name}" %>
<%= content_for :meta_description, @author.bio %>

<!-- Author name -->
<h2><%= @author.first_name %> <%= @author.last_name %></h2>

<!-- Author profile -->
<% if @author.profile_image %>
  <img src="<%= @author.profile_image %>" />
<% end %>

<p>Title: <%= @author.title %></p>
<p>Bio: <%= @author.bio %></p>

<!-- Recent posts -->
<h4>Recent posts</h4>

<ul>
  <% @author.recent_posts.each do |post| %>
    <li><%= render :partial => 'buttercms/posts/post', :locals => {:post => post} %></li>
  <% end %>
</ul>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
buttercms-rails-1.2.4 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.2.3 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.2.2 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.2.1 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.2.0 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.1.2 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.1.1 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.1.0 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.0.5 lib/generators/templates/app/views/buttercms/authors/show.html.erb
buttercms-rails-1.0.4 lib/generators/templates/app/views/buttercms/authors/show.html.erb