##// END OF EJS Templates
Backported r2429, r2430, r248 to r2491 and r2522 from trunk (request and controller objects added to the hooks by default.)....
Backported r2429, r2430, r248 to r2491 and r2522 from trunk (request and controller objects added to the hooks by default.). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2558 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1660:93201e7386eb
r2490:36b5d4f6af04
Show More
index.rhtml
51 lines | 2.3 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
contextual links redesign...
r90 <div class="contextual">
Jean-Philippe Lang
Moved ProjectsController#list_news to NewsController#index....
r875 <%= link_to_if_authorized(l(:label_news_new),
Jean-Philippe Lang
ProjectsController#add_news moved to NewsController#new....
r1097 {:controller => 'news', :action => 'new', :project_id => @project},
Jean-Philippe Lang
The news list now shows the full news contents....
r739 :class => 'icon icon-add',
Jean-Philippe Lang
Moved ProjectsController#list_news to NewsController#index....
r875 :onclick => 'Element.show("add-news"); return false;') if @project %>
Jean-Philippe Lang
The news list now shows the full news contents....
r739 </div>
<div id="add-news" style="display:none;">
<h2><%=l(:label_news_new)%></h2>
Jean-Philippe Lang
ProjectsController#add_news moved to NewsController#new....
r1097 <% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'new', :project_id => @project },
:html => { :id => 'news-form' } do |f| %>
Jean-Philippe Lang
The news list now shows the full news contents....
r739 <%= render :partial => 'news/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
Jean-Philippe Lang
ProjectsController#add_news moved to NewsController#new....
r1097 <%= link_to_remote l(:label_preview),
Jean-Philippe Lang
Fixed: Wiki Linking Fails on News Item Preview (#1661)....
r1660 { :url => { :controller => 'news', :action => 'preview', :project_id => @project },
Jean-Philippe Lang
ProjectsController#add_news moved to NewsController#new....
r1097 :method => 'post',
:update => 'preview',
:with => "Form.serialize('news-form')"
}, :accesskey => accesskey(:preview) %> |
Jean-Philippe Lang
The news list now shows the full news contents....
r739 <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news")' %>
Jean-Philippe Lang
Moved ProjectsController#list_news to NewsController#index....
r875 <% end if @project %>
Jean-Philippe Lang
ProjectsController#add_news moved to NewsController#new....
r1097 <div id="preview" class="wiki"></div>
Jean-Philippe Lang
contextual links redesign...
r90 </div>
Jean-Philippe Lang
Localization plugin removed (replaced with GLoc)...
r12 <h2><%=l(:label_news_plural)%></h2>
Jean-Philippe Lang
Initial commit...
r2
Jean-Philippe Lang
The news list now shows the full news contents....
r739 <% if @newss.empty? %>
Jean-Philippe Lang
Application layout refactored....
r736 <p class="nodata"><%= l(:label_no_data) %></p>
Jean-Philippe Lang
The news list now shows the full news contents....
r739 <% else %>
<% @newss.each do |news| %>
Jean-Philippe Lang
Moved ProjectsController#list_news to NewsController#index....
r875 <h3><%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless news.project == @project %>
<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
Jean-Philippe Lang
The news list now shows the full news contents....
r739 <%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %></h3>
Jean-Philippe Lang
Fixed: pagination broken on news list with Opera....
r786 <p class="author"><%= authoring news.created_on, news.author %></p>
Jean-Philippe Lang
Added missing wiki div on news/index and news/show....
r1045 <div class="wiki">
Jean-Philippe Lang
The news list now shows the full news contents....
r739 <%= textilizable(news.description) %>
Jean-Philippe Lang
Added missing wiki div on news/index and news/show....
r1045 </div>
Jean-Philippe Lang
The news list now shows the full news contents....
r739 <% end %>
Jean-Philippe Lang
Application layout refactored....
r736 <% end %>
Jean-Philippe Lang
New setting added to specify how many objects should be displayed on most paginated lists....
r1013 <p class="pagination"><%= pagination_links_full @news_pages %></p>
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663
Jean-Philippe Lang
Display links to Atom feeds (closes #496, #750)....
r1171 <p class="other-formats">
<%= l(:label_export_to) %>
<span><%= link_to 'Atom', {:format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span>
</p>
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 <% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
<% end %>
Jean-Philippe Lang
More detailed html title on several views....
r951
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_news_plural)) -%>