##// END OF EJS Templates
Fixed: pagination broken on news list with Opera....
Jean-Philippe Lang -
r786:a32d6a49c094
parent child
Show More
@@ -1,33 +1,33
1 <div class="contextual">
1 <div class="contextual">
2 <%= link_to_if_authorized l(:label_news_new),
2 <%= link_to_if_authorized l(:label_news_new),
3 {:controller => 'projects', :action => 'add_news', :id => @project},
3 {:controller => 'projects', :action => 'add_news', :id => @project},
4 :class => 'icon icon-add',
4 :class => 'icon icon-add',
5 :onclick => 'Element.show("add-news"); return false;' %>
5 :onclick => 'Element.show("add-news"); return false;' %>
6 </div>
6 </div>
7
7
8 <div id="add-news" style="display:none;">
8 <div id="add-news" style="display:none;">
9 <h2><%=l(:label_news_new)%></h2>
9 <h2><%=l(:label_news_new)%></h2>
10 <% labelled_tabular_form_for :news, @news, :url => { :action => "add_news", :id => @project } do |f| %>
10 <% labelled_tabular_form_for :news, @news, :url => { :action => "add_news", :id => @project } do |f| %>
11 <%= render :partial => 'news/form', :locals => { :f => f } %>
11 <%= render :partial => 'news/form', :locals => { :f => f } %>
12 <%= submit_tag l(:button_create) %>
12 <%= submit_tag l(:button_create) %>
13 <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news")' %>
13 <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news")' %>
14 <% end %>
14 <% end %>
15 </div>
15 </div>
16
16
17 <h2><%=l(:label_news_plural)%></h2>
17 <h2><%=l(:label_news_plural)%></h2>
18
18
19 <% if @newss.empty? %>
19 <% if @newss.empty? %>
20 <p class="nodata"><%= l(:label_no_data) %></p>
20 <p class="nodata"><%= l(:label_no_data) %></p>
21 <% else %>
21 <% else %>
22 <% @newss.each do |news| %>
22 <% @newss.each do |news| %>
23 <h3><%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
23 <h3><%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
24 <%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %></h3>
24 <%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %></h3>
25 <p><span class="author"><%= authoring news.created_on, news.author %></p>
25 <p class="author"><%= authoring news.created_on, news.author %></p>
26 <%= textilizable(news.description) %>
26 <%= textilizable(news.description) %>
27 <% end %>
27 <% end %>
28 <% end %>
28 <% end %>
29 <%= pagination_links_full @news_pages %>
29 <%= pagination_links_full @news_pages %>
30
30
31 <% content_for :header_tags do %>
31 <% content_for :header_tags do %>
32 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
32 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
33 <% end %>
33 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now