Mercurial > hg > soundsoftware-site
diff .svn/pristine/fe/fe0e2a7971f5615a462d500c0c1966b4ca458e24.svn-base @ 1296:038ba2d95de8 redmine-2.2
Fix redmine-2.2 branch update (add missing svn files)
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:05:06 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/fe/fe0e2a7971f5615a462d500c0c1966b4ca458e24.svn-base Fri Jun 14 09:05:06 2013 +0100 @@ -0,0 +1,66 @@ +<%= board_breadcrumb(@board) %> + +<div class="contextual"> +<%= link_to_if_authorized l(:label_message_new), + {:controller => 'messages', :action => 'new', :board_id => @board}, + :class => 'icon icon-add', + :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' %> +<%= watcher_tag(@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, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %> + <%= render :partial => 'messages/form', :locals => {:f => f} %> + <p><%= submit_tag l(:button_create) %> + <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %> | + <%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %></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><%= l(:field_subject) %></th> + <th><%= l(:field_author) %></th> + <%= 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)) %> + </tr></thead> + <tbody> + <% @topics.each do |topic| %> + <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 } %></td> + <td class="author"><%= link_to_user(topic.author) %></td> + <td class="created_on"><%= format_time(topic.created_on) %></td> + <td class="reply-count"><%= 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> +<p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p> +<% 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 @board.name %> + +<% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %> +<% end %>