⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 archives.rhtml

📁 用ruby on rails写的一个博客程序,还不错..ruby on rails的确是个好框架
💻 RHTML
字号:
<% if @articles.to_a.empty? -%><div class="post"><p><%= _("No articles found")%>...</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"><%= 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 -%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -