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

13 lines
721 B
Plaintext
Raw Permalink Normal View History

2012-12-19 19:21:50 +00:00
<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">
2013-01-16 00:14:42 +00:00
<%= link_to mobile_announcement_content_path(:app => params[:app], :id => bulletin), :class => "ui-link-inherit" do %>
2012-12-19 19:21:50 +00:00
<%= 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 %>