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.
72 lines
3.3 KiB
72 lines
3.3 KiB
18 years ago
|
<div class="contextual">
|
||
17 years ago
|
<%= link_to_if_authorized l(:label_message_new),
|
||
|
{:controller => 'messages', :action => 'new', :board_id => @board},
|
||
|
:class => 'icon icon-add',
|
||
16 years ago
|
:onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %>
|
||
14 years ago
|
<%= watcher_link(@board, User.current) %>
|
||
18 years ago
|
</div>
|
||
|
|
||
17 years ago
|
<div id="add-message" style="display:none;">
|
||
16 years ago
|
<% if authorize_for('messages', 'new') %>
|
||
17 years ago
|
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2>
|
||
17 years ago
|
<% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
||
17 years ago
|
<%= render :partial => 'messages/form', :locals => {:f => f} %>
|
||
|
<p><%= submit_tag l(:button_create) %>
|
||
14 years ago
|
<%= link_to_remote l(:label_preview),
|
||
17 years ago
|
{ :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
|
||
|
:method => 'post',
|
||
|
:update => 'preview',
|
||
|
:with => "Form.serialize('message-form')",
|
||
|
:complete => "Element.scrollTo('preview')"
|
||
|
}, :accesskey => accesskey(:preview) %> |
|
||
17 years ago
|
<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p>
|
||
|
<% end %>
|
||
17 years ago
|
<div id="preview" class="wiki"></div>
|
||
16 years ago
|
<% end %>
|
||
17 years ago
|
</div>
|
||
|
|
||
18 years ago
|
<h2><%=h @board.name %></h2>
|
||
16 years ago
|
<p class="subtitle"><%=h @board.description %></p>
|
||
18 years ago
|
|
||
17 years ago
|
<% if @topics.any? %>
|
||
17 years ago
|
<table class="list messages">
|
||
18 years ago
|
<thead><tr>
|
||
|
<th><%= l(:field_subject) %></th>
|
||
|
<th><%= l(:field_author) %></th>
|
||
16 years ago
|
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
|
||
|
<%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
|
||
|
<%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
|
||
14 years ago
|
</tr></thead>
|
||
18 years ago
|
<tbody>
|
||
|
<% @topics.each do |topic| %>
|
||
13 years ago
|
<tr class="message <%= cycle 'odd', 'even' %>">
|
||
|
<td class="subject"><%= image_tag('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>
|
||
13 years ago
|
<td class="author" align="center"><%= link_to_user(topic.author) %></td>
|
||
17 years ago
|
<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">
|
||
18 years ago
|
<% if topic.last_reply %>
|
||
17 years ago
|
<%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
|
||
18 years ago
|
<%= link_to_message topic.last_reply %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
17 years ago
|
<p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
|
||
17 years ago
|
<% else %>
|
||
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||
|
<% end %>
|
||
17 years ago
|
|
||
16 years ago
|
<% other_formats_links do |f| %>
|
||
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
||
|
<% end %>
|
||
|
|
||
17 years ago
|
<% html_title h(@board.name) %>
|
||
16 years ago
|
|
||
|
<% content_for :header_tags do %>
|
||
|
<%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
|
||
14 years ago
|
<%= stylesheet_link_tag 'scm' %>
|
||
16 years ago
|
<% end %>
|