##// END OF EJS Templates
Adds url and author_url plugin attributes (#2162)....
Adds url and author_url plugin attributes (#2162). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2041 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1948:0316fde06bb8
r2039:5362a85f2bd7
Show More
show.rhtml
62 lines | 3.0 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Add breadcrumb nav for the forums (#892)....
r1284 <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %>
Jean-Philippe Lang
Per project forums added....
r526 <div class="contextual">
Jean-Philippe Lang
Boards: new message form displayed with no additional request....
r752 <%= link_to_if_authorized l(:label_message_new),
{:controller => 'messages', :action => 'new', :board_id => @board},
:class => 'icon icon-add',
:onclick => 'Element.show("add-message"); return false;' %>
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 <%= watcher_tag(@board, User.current) %>
Jean-Philippe Lang
Per project forums added....
r526 </div>
Jean-Philippe Lang
Boards: new message form displayed with no additional request....
r752 <div id="add-message" style="display:none;">
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
Jean-Philippe Lang
Added preview for forum messages....
r1191 <% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
Jean-Philippe Lang
Boards: new message form displayed with no additional request....
r752 <%= render :partial => 'messages/form', :locals => {:f => f} %>
<p><%= submit_tag l(:button_create) %>
Jean-Philippe Lang
Added preview for forum messages....
r1191 <%= link_to_remote l(:label_preview),
{ :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
:method => 'post',
:update => 'preview',
:with => "Form.serialize('message-form')",
:complete => "Element.scrollTo('preview')"
}, :accesskey => accesskey(:preview) %> |
Jean-Philippe Lang
Boards: new message form displayed with no additional request....
r752 <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p>
<% end %>
Jean-Philippe Lang
Added preview for forum messages....
r1191 <div id="preview" class="wiki"></div>
Jean-Philippe Lang
Boards: new message form displayed with no additional request....
r752 </div>
Jean-Philippe Lang
Per project forums added....
r526 <h2><%=h @board.name %></h2>
Eric Davis
Added the board's description below the board's name....
r1948 <p class="subtitle"><%=h @board.description %></p>
Jean-Philippe Lang
Per project forums added....
r526
Jean-Philippe Lang
Application layout refactored....
r736 <% if @topics.any? %>
Jean-Philippe Lang
Forums enhancements:...
r913 <table class="list messages">
Jean-Philippe Lang
Per project forums added....
r526 <thead><tr>
<th><%= l(:field_subject) %></th>
<th><%= l(:field_author) %></th>
<%= sort_header_tag("#{Message.table_name}.created_on", :caption => l(:field_created_on)) %>
Eric Davis
Messages on a Board can now be sorted by the number of replies....
r1749 <%= sort_header_tag("#{Message.table_name}.replies_count", :caption => l(:label_reply_plural)) %>
Jean-Philippe Lang
Per project forums added....
r526 <%= sort_header_tag("#{Message.table_name}.updated_on", :caption => l(:label_message_last)) %>
</tr></thead>
<tbody>
<% @topics.each do |topic| %>
Jean-Philippe Lang
Forums enhancements:...
r913 <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
<td class="subject"><%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic }, :class => 'icon' %></td>
<td class="author" align="center"><%= topic.author %></td>
<td class="created_on" align="center"><%= format_time(topic.created_on) %></td>
<td class="replies" align="center"><%= topic.replies_count %></td>
<td class="last_message">
Jean-Philippe Lang
Per project forums added....
r526 <% if topic.last_reply %>
Jean-Philippe Lang
Forums enhancements:...
r913 <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
Jean-Philippe Lang
Per project forums added....
r526 <%= link_to_message topic.last_reply %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
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 @topic_pages, @topic_count %></p>
Jean-Philippe Lang
Application layout refactored....
r736 <% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>
Jean-Philippe Lang
Adds HTML titles to forums related views....
r1584
<% html_title h(@board.name) %>