Sha256: bfd69e484d8b8c825655b49b950e9c355dc8c2803b91d3ad0536eda5d2b6d047

Contents?: true

Size: 680 Bytes

Versions: 20

Compression:

Stored size: 680 Bytes

Contents

<%
# list.rhtml - a sample script for Ruby on Rails
#
# Copyright (C) 2005 Masao Mutoh
#
# This file is distributed under the same license as Ruby-GetText-Package.

# Views are bound a textdomain which is bound in application.rb or 
# blog_controller.rb.
# So you don't need to call bindtextdomain here.
%>

<h1><%= _("GetText Sample Blog on RoR") %></h1>
<p style="text-align:right">
<%= link_to _('New article'), :action => 'new' %>
</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 %>


Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gettext-1.8.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.7.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.6.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.5.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.4.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.3.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.2.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.1.1-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.1.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.0.0-mswin32 samples/rails/app/views/blog/list.rhtml
gettext-1.0.0 samples/rails/app/views/blog/list.rhtml
gettext-1.1.0 samples/rails/app/views/blog/list.rhtml
gettext-1.2.0 samples/rails/app/views/blog/list.rhtml
gettext-1.1.1 samples/rails/app/views/blog/list.rhtml
gettext-1.4.0 samples/rails/app/views/blog/list.rhtml
gettext-1.3.0 samples/rails/app/views/blog/list.rhtml
gettext-1.5.0 samples/rails/app/views/blog/list.rhtml
gettext-1.6.0 samples/rails/app/views/blog/list.rhtml
gettext-1.7.0 samples/rails/app/views/blog/list.rhtml
gettext-1.8.0 samples/rails/app/views/blog/list.rhtml