show.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
- <div class="post">
- <h2><%= @author.name %></h2>
- <ul>
- <%= display_profile_item @author.url, @author.show_url, _("Web site:") %>
- <%= display_profile_item @author.msn, @author.show_msn, _("MSN:") %>
- <%= display_profile_item @author.yahoo, @author.show_yahoo, _("Yahoo:") %>
- <%= display_profile_item @author.jabber, @author.show_jabber, _("Jabber:") %>
- <%= display_profile_item @author.aim, @author.show_aim, _("AIM:") %>
- <%= display_profile_item @author.twitter, @author.show_twitter, _("Twitter:") %>
- </ul>
- <h3><%= _("About %s", @author.name)%></h3>
- <%= @author.description%>
- </div>
- <% if @author.articles.to_a.empty? -%>
- <div class="post">
- <p><%= _("This author has not published any article yet")%>...</p>
- </div>
- <% else
- currentmonth = 0
- currentyear = 0
- for article in @author.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"><%= _(Date::MONTHNAMES[article.published_at.month]) %> <%= article.published_at.year %></h3>
- <% end -%>
- <div class="archivepost">
- <%= article.published_at.mday %> -
- <%= link_to_permalink(article,h(article.title)) %>
- <% if !article.categories.empty? %> <%= _("posted in") %>
- <%= article.categories.collect {|c| link_to_permalink c,c.name }.join(", ") -%>
- <% end -%>
- </div>
- <% end
- end -%>