Sha256: 375e78eae494ee1ba59e7e75ec4249f261e3330abbcc4a3cb1f0729c3296a897

Contents?: true

Size: 1.47 KB

Versions: 6

Compression:

Stored size: 1.47 KB

Contents

<div class="post">
  <h2><%= @author.nickname %></h2>
  <%= display_user_avatar(@author, 'thumb', 'alignright') %>

  <%= author_description @author %>

  <h2><%= t(".contact_information") %></h2>
  <ul>
    <%= display_profile_item @author.url, t(".web_site") %>
    <%= display_profile_item @author.msn, t(".msn") %>
    <%= display_profile_item @author.yahoo, t(".yahoo") %>
    <%= display_profile_item @author.jabber, t(".jabber") %>
    <%= display_profile_item @author.aim, t(".aim") %>
    <%= display_profile_item @author.twitter, t(".twitter") %>
  </ul>
</div>

<% if @articles.empty? %>
  <div class="post">
  <p><%= t(".this_author_has_not_published_any_article_yet")%></p>
</div>
<% else
currentmonth = 0
currentyear = 0
for article in @articles
  if (article.published_at.month != currentmonth || article.published_at.year != currentyear)
    currentmonth = article.published_at.month
    currentyear = article.published_at.year %>
  <h3 class="archivemonth"><%= l(article.published_at, format: :letters_month_with_year) %></h3>
  <% end %>
    <div class="archivepost">
      <%= article.published_at.mday %> -
      <%= link_to_permalink(article,h(article.title)) %>
      <% if !article.tags.empty? %> <%= t(".posted_in") %>
        <%= article.tags.collect {|c| link_to_permalink c,c.name }.join(", ") %>
    <% end %>
    </div>
  <% end %>
    <%= paginate @articles, :next_label => "#{t(".next_page")} &raquo;", :previous_label => "&laquo; #{t('.previous_page')}" %>
  <%  end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
publify_core-9.0.0.pre6 app/views/authors/show.html.erb
publify_core-9.0.0.pre5 app/views/authors/show.html.erb
publify_core-9.0.0.pre4 app/views/authors/show.html.erb
publify_core-9.0.0.pre3 app/views/authors/show.html.erb
publify_core-9.0.0.pre2 app/views/authors/show.html.erb
publify_core-9.0.0.pre1 app/views/authors/show.html.erb