kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
4.2 KiB
99 lines
4.2 KiB
<%#-- copyright
|
|
OpenProject is a project management system.
|
|
Copyright (C) 2012-2013 the OpenProject Foundation (OPF)
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 3.
|
|
|
|
OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
|
Copyright (C) 2006-2013 Jean-Philippe Lang
|
|
Copyright (C) 2010-2013 the ChiliProject Team
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
See doc/COPYRIGHT.rdoc for more details.
|
|
|
|
++#%>
|
|
|
|
<div class="contextual">
|
|
<%= link_to_if_authorized l(:label_message_new),
|
|
{:controller => '/messages', :action => 'new', :board_id => @board},
|
|
:class => 'icon icon-add',
|
|
:onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %>
|
|
<%= watcher_link(@board, User.current) %>
|
|
</div>
|
|
|
|
<div id="add-message" style="display:none;">
|
|
<% if authorize_for('messages', 'new') %>
|
|
<h2><%= link_to h(@board.name), :controller => '/boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2>
|
|
<%= form_for Message.new,
|
|
:url => board_topics_path(@board),
|
|
:html => { :multipart => true,
|
|
:id => 'message-form'} do |f| %>
|
|
<%= render :partial => 'messages/form', :locals => {:f => f} %>
|
|
<p><%= submit_tag l(:button_create) %>
|
|
<%= link_to l(:label_preview),
|
|
preview_board_topics_path(@board, @message),
|
|
:class => 'preview',
|
|
:id => 'message-form-preview' %>
|
|
<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p>
|
|
<% end %>
|
|
<div id="preview" class="wiki"></div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<h2><%=h @board.name %></h2>
|
|
<p class="subtitle"><%=h @board.description %></p>
|
|
|
|
<% if @topics.any? %>
|
|
<table class="list messages">
|
|
<thead><tr>
|
|
<th><%= Message.human_attribute_name(:subject) %></th>
|
|
<th><%= Message.human_attribute_name(:author) %></th>
|
|
<%= sort_header_tag('created_on', :caption => Message.human_attribute_name(:created_on)) %>
|
|
<%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
|
|
<%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
|
|
</tr></thead>
|
|
<tbody>
|
|
<% @topics.each do |topic| %>
|
|
<tr class="message <%= cycle 'odd', 'even' %>">
|
|
<td class="subject"><%= image_tag('webalys/locked.png', :alt => l(:label_board_locked)) if topic.locked? %><%= image_tag 'bullet_go.png', :alt => l(:label_board_sticky) if topic.sticky? %><%= link_to h(topic.subject), { :controller => '/messages', :action => 'show', :board_id => @board, :id => topic } %></td>
|
|
<td class="author" align="center"><%= link_to_user(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">
|
|
<% if topic.last_reply %>
|
|
<%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
|
|
<%= link_to_message topic.last_reply %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<%= pagination_links_full @topics %>
|
|
<% else %>
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
<% end %>
|
|
|
|
<%= other_formats_links do |f| %>
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
|
<% end %>
|
|
|
|
<% html_title h(@board.name) %>
|
|
|
|
<% content_for :header_tags do %>
|
|
<%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
|
|
<% end %>
|
|
|