annotate .svn/pristine/ce/ce01f810d3a29f63f33f44d575176d9d1fd50f81.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <%= board_breadcrumb(@board) %>
Chris@1464 2
Chris@1464 3 <div class="contextual">
Chris@1464 4 <%= link_to l(:label_message_new),
Chris@1464 5 new_board_message_path(@board),
Chris@1464 6 :class => 'icon icon-add',
Chris@1464 7 :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.allowed_to?(:add_messages, @board.project) %>
Chris@1464 8 <%= watcher_link(@board, User.current) %>
Chris@1464 9 </div>
Chris@1464 10
Chris@1464 11 <div id="add-message" style="display:none;">
Chris@1464 12 <% if User.current.allowed_to?(:add_messages, @board.project) %>
Chris@1464 13 <h2><%= link_to h(@board.name), project_board_path(@project, @board) %> &#187; <%= l(:label_message_new) %></h2>
Chris@1464 14 <%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@1464 15 <%= render :partial => 'messages/form', :locals => {:f => f} %>
Chris@1464 16 <p><%= submit_tag l(:button_create) %>
Chris@1464 17 <%= preview_link(preview_board_message_path(@board), 'message-form') %> |
Chris@1464 18 <%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %></p>
Chris@1464 19 <% end %>
Chris@1464 20 <div id="preview" class="wiki"></div>
Chris@1464 21 <% end %>
Chris@1464 22 </div>
Chris@1464 23
Chris@1464 24 <h2><%=h @board.name %></h2>
Chris@1464 25 <p class="subtitle"><%=h @board.description %></p>
Chris@1464 26
Chris@1464 27 <% if @topics.any? %>
Chris@1464 28 <table class="list messages">
Chris@1464 29 <thead><tr>
Chris@1464 30 <th><%= l(:field_subject) %></th>
Chris@1464 31 <th><%= l(:field_author) %></th>
Chris@1464 32 <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
Chris@1464 33 <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
Chris@1464 34 <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
Chris@1464 35 </tr></thead>
Chris@1464 36 <tbody>
Chris@1464 37 <% @topics.each do |topic| %>
Chris@1464 38 <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
Chris@1464 39 <td class="subject"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
Chris@1464 40 <td class="author"><%= link_to_user(topic.author) %></td>
Chris@1464 41 <td class="created_on"><%= format_time(topic.created_on) %></td>
Chris@1464 42 <td class="reply-count"><%= topic.replies_count %></td>
Chris@1464 43 <td class="last_message">
Chris@1464 44 <% if topic.last_reply %>
Chris@1464 45 <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
Chris@1464 46 <%= link_to_message topic.last_reply %>
Chris@1464 47 <% end %>
Chris@1464 48 </td>
Chris@1464 49 </tr>
Chris@1464 50 <% end %>
Chris@1464 51 </tbody>
Chris@1464 52 </table>
Chris@1464 53 <p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
Chris@1464 54 <% else %>
Chris@1464 55 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@1464 56 <% end %>
Chris@1464 57
Chris@1464 58 <% other_formats_links do |f| %>
Chris@1464 59 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@1464 60 <% end %>
Chris@1464 61
Chris@1464 62 <% html_title @board.name %>
Chris@1464 63
Chris@1464 64 <% content_for :header_tags do %>
Chris@1464 65 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
Chris@1464 66 <% end %>