@@ -1,40 +1,42 | |||||
1 | <h2><%= l(:label_board_plural) %></h2> |
|
1 | <h2><%= l(:label_board_plural) %></h2> | |
2 |
|
2 | |||
3 | <table class="list boards"> |
|
3 | <table class="list boards"> | |
4 | <thead><tr> |
|
4 | <thead><tr> | |
5 | <th><%= l(:label_board) %></th> |
|
5 | <th><%= l(:label_board) %></th> | |
6 | <th><%= l(:label_topic_plural) %></th> |
|
6 | <th><%= l(:label_topic_plural) %></th> | |
7 | <th><%= l(:label_message_plural) %></th> |
|
7 | <th><%= l(:label_message_plural) %></th> | |
8 | <th><%= l(:label_message_last) %></th> |
|
8 | <th><%= l(:label_message_last) %></th> | |
9 | </tr></thead> |
|
9 | </tr></thead> | |
10 | <tbody> |
|
10 | <tbody> | |
11 | <% for board in @boards %> |
|
11 | <% for board in @boards %> | |
12 | <tr class="<%= cycle 'odd', 'even' %>"> |
|
12 | <tr class="<%= cycle 'odd', 'even' %>"> | |
13 | <td> |
|
13 | <td> | |
14 | <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "icon22 icon22-comment" %><br /> |
|
14 | <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "icon22 icon22-comment" %><br /> | |
15 | <%=h board.description %> |
|
15 | <%=h board.description %> | |
16 | </td> |
|
16 | </td> | |
17 | <td align="center"><%= board.topics_count %></td> |
|
17 | <td align="center"><%= board.topics_count %></td> | |
18 | <td align="center"><%= board.messages_count %></td> |
|
18 | <td align="center"><%= board.messages_count %></td> | |
19 | <td> |
|
19 | <td> | |
20 | <small> |
|
20 | <small> | |
21 | <% if board.last_message %> |
|
21 | <% if board.last_message %> | |
22 | <%= authoring board.last_message.created_on, board.last_message.author %><br /> |
|
22 | <%= authoring board.last_message.created_on, board.last_message.author %><br /> | |
23 | <%= link_to_message board.last_message %> |
|
23 | <%= link_to_message board.last_message %> | |
24 | <% end %> |
|
24 | <% end %> | |
25 | </small> |
|
25 | </small> | |
26 | </td> |
|
26 | </td> | |
27 | </tr> |
|
27 | </tr> | |
28 | <% end %> |
|
28 | <% end %> | |
29 | </tbody> |
|
29 | </tbody> | |
30 | </table> |
|
30 | </table> | |
31 |
|
31 | |||
32 | <p class="other-formats"> |
|
32 | <p class="other-formats"> | |
33 | <%= l(:label_export_to) %> |
|
33 | <%= l(:label_export_to) %> | |
34 | <span><%= link_to 'Atom', {:controller => 'projects', :action => 'activity', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}, |
|
34 | <span><%= link_to 'Atom', {:controller => 'projects', :action => 'activity', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}, | |
35 | :class => 'feed' %></span> |
|
35 | :class => 'feed' %></span> | |
36 | </p> |
|
36 | </p> | |
37 |
|
37 | |||
38 | <% content_for :header_tags do %> |
|
38 | <% content_for :header_tags do %> | |
39 | <%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %> |
|
39 | <%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %> | |
40 | <% end %> |
|
40 | <% end %> | |
|
41 | ||||
|
42 | <% html_title l(:label_board_plural) %> |
@@ -1,59 +1,61 | |||||
1 | <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %> |
|
1 | <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %> | |
2 |
|
2 | |||
3 | <div class="contextual"> |
|
3 | <div class="contextual"> | |
4 | <%= link_to_if_authorized l(:label_message_new), |
|
4 | <%= link_to_if_authorized l(:label_message_new), | |
5 | {:controller => 'messages', :action => 'new', :board_id => @board}, |
|
5 | {:controller => 'messages', :action => 'new', :board_id => @board}, | |
6 | :class => 'icon icon-add', |
|
6 | :class => 'icon icon-add', | |
7 | :onclick => 'Element.show("add-message"); return false;' %> |
|
7 | :onclick => 'Element.show("add-message"); return false;' %> | |
8 | <%= watcher_tag(@board, User.current) %> |
|
8 | <%= watcher_tag(@board, User.current) %> | |
9 | </div> |
|
9 | </div> | |
10 |
|
10 | |||
11 | <div id="add-message" style="display:none;"> |
|
11 | <div id="add-message" style="display:none;"> | |
12 | <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2> |
|
12 | <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2> | |
13 | <% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %> |
|
13 | <% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %> | |
14 | <%= render :partial => 'messages/form', :locals => {:f => f} %> |
|
14 | <%= render :partial => 'messages/form', :locals => {:f => f} %> | |
15 | <p><%= submit_tag l(:button_create) %> |
|
15 | <p><%= submit_tag l(:button_create) %> | |
16 | <%= link_to_remote l(:label_preview), |
|
16 | <%= link_to_remote l(:label_preview), | |
17 | { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, |
|
17 | { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, | |
18 | :method => 'post', |
|
18 | :method => 'post', | |
19 | :update => 'preview', |
|
19 | :update => 'preview', | |
20 | :with => "Form.serialize('message-form')", |
|
20 | :with => "Form.serialize('message-form')", | |
21 | :complete => "Element.scrollTo('preview')" |
|
21 | :complete => "Element.scrollTo('preview')" | |
22 | }, :accesskey => accesskey(:preview) %> | |
|
22 | }, :accesskey => accesskey(:preview) %> | | |
23 | <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p> |
|
23 | <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p> | |
24 | <% end %> |
|
24 | <% end %> | |
25 | <div id="preview" class="wiki"></div> |
|
25 | <div id="preview" class="wiki"></div> | |
26 | </div> |
|
26 | </div> | |
27 |
|
27 | |||
28 | <h2><%=h @board.name %></h2> |
|
28 | <h2><%=h @board.name %></h2> | |
29 |
|
29 | |||
30 | <% if @topics.any? %> |
|
30 | <% if @topics.any? %> | |
31 | <table class="list messages"> |
|
31 | <table class="list messages"> | |
32 | <thead><tr> |
|
32 | <thead><tr> | |
33 | <th><%= l(:field_subject) %></th> |
|
33 | <th><%= l(:field_subject) %></th> | |
34 | <th><%= l(:field_author) %></th> |
|
34 | <th><%= l(:field_author) %></th> | |
35 | <%= sort_header_tag("#{Message.table_name}.created_on", :caption => l(:field_created_on)) %> |
|
35 | <%= sort_header_tag("#{Message.table_name}.created_on", :caption => l(:field_created_on)) %> | |
36 | <th><%= l(:label_reply_plural) %></th> |
|
36 | <th><%= l(:label_reply_plural) %></th> | |
37 | <%= sort_header_tag("#{Message.table_name}.updated_on", :caption => l(:label_message_last)) %> |
|
37 | <%= sort_header_tag("#{Message.table_name}.updated_on", :caption => l(:label_message_last)) %> | |
38 | </tr></thead> |
|
38 | </tr></thead> | |
39 | <tbody> |
|
39 | <tbody> | |
40 | <% @topics.each do |topic| %> |
|
40 | <% @topics.each do |topic| %> | |
41 | <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"> |
|
41 | <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>"> | |
42 | <td class="subject"><%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic }, :class => 'icon' %></td> |
|
42 | <td class="subject"><%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic }, :class => 'icon' %></td> | |
43 | <td class="author" align="center"><%= topic.author %></td> |
|
43 | <td class="author" align="center"><%= topic.author %></td> | |
44 | <td class="created_on" align="center"><%= format_time(topic.created_on) %></td> |
|
44 | <td class="created_on" align="center"><%= format_time(topic.created_on) %></td> | |
45 | <td class="replies" align="center"><%= topic.replies_count %></td> |
|
45 | <td class="replies" align="center"><%= topic.replies_count %></td> | |
46 | <td class="last_message"> |
|
46 | <td class="last_message"> | |
47 | <% if topic.last_reply %> |
|
47 | <% if topic.last_reply %> | |
48 | <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br /> |
|
48 | <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br /> | |
49 | <%= link_to_message topic.last_reply %> |
|
49 | <%= link_to_message topic.last_reply %> | |
50 | <% end %> |
|
50 | <% end %> | |
51 | </td> |
|
51 | </td> | |
52 | </tr> |
|
52 | </tr> | |
53 | <% end %> |
|
53 | <% end %> | |
54 | </tbody> |
|
54 | </tbody> | |
55 | </table> |
|
55 | </table> | |
56 | <p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p> |
|
56 | <p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p> | |
57 | <% else %> |
|
57 | <% else %> | |
58 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
58 | <p class="nodata"><%= l(:label_no_data) %></p> | |
59 | <% end %> |
|
59 | <% end %> | |
|
60 | ||||
|
61 | <% html_title h(@board.name) %> |
@@ -1,56 +1,58 | |||||
1 | <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}), |
|
1 | <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}), | |
2 | link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %> |
|
2 | link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %> | |
3 |
|
3 | |||
4 | <div class="contextual"> |
|
4 | <div class="contextual"> | |
5 | <%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %> |
|
5 | <%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %> | |
6 | <%= link_to_if_authorized l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %> |
|
6 | <%= link_to_if_authorized l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %> | |
7 | </div> |
|
7 | </div> | |
8 |
|
8 | |||
9 | <h2><%=h @topic.subject %></h2> |
|
9 | <h2><%=h @topic.subject %></h2> | |
10 |
|
10 | |||
11 | <div class="message"> |
|
11 | <div class="message"> | |
12 | <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p> |
|
12 | <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p> | |
13 | <div class="wiki"> |
|
13 | <div class="wiki"> | |
14 | <%= textilizable(@topic.content, :attachments => @topic.attachments) %> |
|
14 | <%= textilizable(@topic.content, :attachments => @topic.attachments) %> | |
15 | </div> |
|
15 | </div> | |
16 | <%= link_to_attachments @topic.attachments, :no_author => true %> |
|
16 | <%= link_to_attachments @topic.attachments, :no_author => true %> | |
17 | </div> |
|
17 | </div> | |
18 | <br /> |
|
18 | <br /> | |
19 |
|
19 | |||
20 | <% unless @replies.empty? %> |
|
20 | <% unless @replies.empty? %> | |
21 | <h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3> |
|
21 | <h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3> | |
22 | <% @replies.each do |message| %> |
|
22 | <% @replies.each do |message| %> | |
23 | <a name="<%= "message-#{message.id}" %>"></a> |
|
23 | <a name="<%= "message-#{message.id}" %>"></a> | |
24 | <div class="contextual"> |
|
24 | <div class="contextual"> | |
25 | <%= link_to_if_authorized image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit) %> |
|
25 | <%= link_to_if_authorized image_tag('edit.png'), {:action => 'edit', :id => message}, :title => l(:button_edit) %> | |
26 | <%= link_to_if_authorized image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete) %> |
|
26 | <%= link_to_if_authorized image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete) %> | |
27 | </div> |
|
27 | </div> | |
28 | <div class="message reply"> |
|
28 | <div class="message reply"> | |
29 | <h4><%=h message.subject %> - <%= authoring message.created_on, message.author %></h4> |
|
29 | <h4><%=h message.subject %> - <%= authoring message.created_on, message.author %></h4> | |
30 | <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div> |
|
30 | <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div> | |
31 | <%= link_to_attachments message.attachments, :no_author => true %> |
|
31 | <%= link_to_attachments message.attachments, :no_author => true %> | |
32 | </div> |
|
32 | </div> | |
33 | <% end %> |
|
33 | <% end %> | |
34 | <% end %> |
|
34 | <% end %> | |
35 |
|
35 | |||
36 | <% if !@topic.locked? && authorize_for('messages', 'reply') %> |
|
36 | <% if !@topic.locked? && authorize_for('messages', 'reply') %> | |
37 | <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p> |
|
37 | <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p> | |
38 | <div id="reply" style="display:none;"> |
|
38 | <div id="reply" style="display:none;"> | |
39 | <% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %> |
|
39 | <% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %> | |
40 | <%= render :partial => 'form', :locals => {:f => f, :replying => true} %> |
|
40 | <%= render :partial => 'form', :locals => {:f => f, :replying => true} %> | |
41 | <%= submit_tag l(:button_submit) %> |
|
41 | <%= submit_tag l(:button_submit) %> | |
42 | <%= link_to_remote l(:label_preview), |
|
42 | <%= link_to_remote l(:label_preview), | |
43 | { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, |
|
43 | { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, | |
44 | :method => 'post', |
|
44 | :method => 'post', | |
45 | :update => 'preview', |
|
45 | :update => 'preview', | |
46 | :with => "Form.serialize('message-form')", |
|
46 | :with => "Form.serialize('message-form')", | |
47 | :complete => "Element.scrollTo('preview')" |
|
47 | :complete => "Element.scrollTo('preview')" | |
48 | }, :accesskey => accesskey(:preview) %> |
|
48 | }, :accesskey => accesskey(:preview) %> | |
49 | <% end %> |
|
49 | <% end %> | |
50 | <div id="preview" class="wiki"></div> |
|
50 | <div id="preview" class="wiki"></div> | |
51 | </div> |
|
51 | </div> | |
52 | <% end %> |
|
52 | <% end %> | |
53 |
|
53 | |||
54 | <% content_for :header_tags do %> |
|
54 | <% content_for :header_tags do %> | |
55 | <%= stylesheet_link_tag 'scm' %> |
|
55 | <%= stylesheet_link_tag 'scm' %> | |
56 | <% end %> |
|
56 | <% end %> | |
|
57 | ||||
|
58 | <% html_title h(@topic.subject) %> |
General Comments 0
You need to be logged in to leave comments.
Login now