Chris@1296: <%= board_breadcrumb(@board) %>
Chris@1296:
Chris@1296:
Chris@1296: <%= link_to_if_authorized l(:label_message_new),
Chris@1296: {:controller => 'messages', :action => 'new', :board_id => @board},
Chris@1296: :class => 'icon icon-add',
Chris@1296: :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' %>
Chris@1296: <%= watcher_tag(@board, User.current) %>
Chris@1296:
Chris@1296:
Chris@1296:
Chris@1296: <% if authorize_for('messages', 'new') %>
Chris@1296:
<%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %>
Chris@1296: <%= form_for @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@1296: <%= render :partial => 'messages/form', :locals => {:f => f} %>
Chris@1296:
<%= submit_tag l(:button_create) %>
Chris@1296: <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %> |
Chris@1296: <%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %>
Chris@1296: <% end %>
Chris@1296:
Chris@1296: <% end %>
Chris@1296:
Chris@1296:
Chris@1296: <%=h @board.name %>
Chris@1296: <%=h @board.description %>
Chris@1296:
Chris@1296: <% if @topics.any? %>
Chris@1296:
Chris@1296:
Chris@1296: <%= l(:field_subject) %> |
Chris@1296: <%= l(:field_author) %> |
Chris@1296: <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
Chris@1296: <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
Chris@1296: <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
Chris@1296:
Chris@1296:
Chris@1296: <% @topics.each do |topic| %>
Chris@1296:
Chris@1296: <%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %> |
Chris@1296: <%= link_to_user(topic.author) %> |
Chris@1296: <%= format_time(topic.created_on) %> |
Chris@1296: <%= topic.replies_count %> |
Chris@1296:
Chris@1296: <% if topic.last_reply %>
Chris@1296: <%= authoring topic.last_reply.created_on, topic.last_reply.author %>
Chris@1296: <%= link_to_message topic.last_reply %>
Chris@1296: <% end %>
Chris@1296: |
Chris@1296:
Chris@1296: <% end %>
Chris@1296:
Chris@1296:
Chris@1296:
Chris@1296: <% else %>
Chris@1296: <%= l(:label_no_data) %>
Chris@1296: <% end %>
Chris@1296:
Chris@1296: <% other_formats_links do |f| %>
Chris@1296: <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@1296: <% end %>
Chris@1296:
Chris@1296: <% html_title @board.name %>
Chris@1296:
Chris@1296: <% content_for :header_tags do %>
Chris@1296: <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
Chris@1296: <% end %>