File: index.html.erb

package info (click to toggle)
libgettext-rails-ruby 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,384 kB
  • ctags: 383
  • sloc: ruby: 1,042; makefile: 10
file content (18 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<h1><%= _("GetText Sample Blog on RoR") %></h1>

<p style="text-align:right">
<%= link_to _('New article'), new_article_path %>
</p>
<% if @articles.size == 0 %>
  <p><%= _("No articles were found.") %></p>
<% else %>
  <%
     @articles.each_with_index do |article, index|
  %>
       <%= show_article(article) %>
  <%
       break if index > 1
     end
  %>
<% end %>