Orbit/app/views/mobile/announcement.mobile.erb

13 lines
692 B
Plaintext

<ul data-role="listview" class="list">
<% @bulletins.each do |bulletin| %>
<li data-corners="false" data-shadow="false" data-iconshadow="true" data-wrapperels="div" data-icon="arrow-r" data-iconpos="right" data-theme="c">
<%= link_to mobile_announcement_content_path(bulletin), :class => "ui-link-inherit" do %>
<%= image_tag bulletin.image.url, :class => "ui-li-thumb" %>
<h3><%= bulletin.title %></h3>
<p class="ui-li-aside ui-li-desc"><%= display_date(bulletin.postdate) %></p>
<div class="ui-li-desc"><%= bulletin.subtitle %></div>
<% end %>
</li>
<% end %>
</ul>
<%= paginate @bulletins, :param_name => :page_main, :window => 2 %>