_posts.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
- <div class='dashboard ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
- <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
- <span class='ui-icon ui-icon-note'> </span>
- <%= _("Latest Posts") %>
- </h3>
- <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
- <ul>
- <% if @recent_posts.size == 0 %>
- <li> <%= link_to _("No posts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?</li>
- <% else %>
- <% for post in @recent_posts -%>
- <li>
- <%= link_to_permalink post, post.title %> (<%= link_to_permalink(post, post.published_comments.size) %>)
- </li>
- <% end %>
- <% end %>
- </ul>
- </div>
- </div>