##// END OF EJS Templates
Removed inline styles....
Jean-Philippe Lang -
r9935:f8de723c468f
parent child
Show More
@@ -1,66 +1,66
1 <%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)) %>
1 <%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@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 => 'showAndScrollTo("add-message", "message_subject"); return false;' %>
7 :onclick => 'showAndScrollTo("add-message", "message_subject"); 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 <% if authorize_for('messages', 'new') %>
12 <% if authorize_for('messages', 'new') %>
13 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
13 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
14 <%= form_for @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
14 <%= form_for @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
15 <%= render :partial => 'messages/form', :locals => {:f => f} %>
15 <%= render :partial => 'messages/form', :locals => {:f => f} %>
16 <p><%= submit_tag l(:button_create) %>
16 <p><%= submit_tag l(:button_create) %>
17 <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %> |
17 <%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board}, 'message-form') %> |
18 <%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %></p>
18 <%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %></p>
19 <% end %>
19 <% end %>
20 <div id="preview" class="wiki"></div>
20 <div id="preview" class="wiki"></div>
21 <% end %>
21 <% end %>
22 </div>
22 </div>
23
23
24 <h2><%=h @board.name %></h2>
24 <h2><%=h @board.name %></h2>
25 <p class="subtitle"><%=h @board.description %></p>
25 <p class="subtitle"><%=h @board.description %></p>
26
26
27 <% if @topics.any? %>
27 <% if @topics.any? %>
28 <table class="list messages">
28 <table class="list messages">
29 <thead><tr>
29 <thead><tr>
30 <th><%= l(:field_subject) %></th>
30 <th><%= l(:field_subject) %></th>
31 <th><%= l(:field_author) %></th>
31 <th><%= l(:field_author) %></th>
32 <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
32 <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
33 <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
33 <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
34 <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
34 <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
35 </tr></thead>
35 </tr></thead>
36 <tbody>
36 <tbody>
37 <% @topics.each do |topic| %>
37 <% @topics.each do |topic| %>
38 <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
38 <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
39 <td class="subject"><%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %></td>
39 <td class="subject"><%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %></td>
40 <td class="author" align="center"><%= link_to_user(topic.author) %></td>
40 <td class="author"><%= link_to_user(topic.author) %></td>
41 <td class="created_on" align="center"><%= format_time(topic.created_on) %></td>
41 <td class="created_on"><%= format_time(topic.created_on) %></td>
42 <td class="replies" align="center"><%= topic.replies_count %></td>
42 <td class="reply-count"><%= topic.replies_count %></td>
43 <td class="last_message">
43 <td class="last_message">
44 <% if topic.last_reply %>
44 <% if topic.last_reply %>
45 <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
45 <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
46 <%= link_to_message topic.last_reply %>
46 <%= link_to_message topic.last_reply %>
47 <% end %>
47 <% end %>
48 </td>
48 </td>
49 </tr>
49 </tr>
50 <% end %>
50 <% end %>
51 </tbody>
51 </tbody>
52 </table>
52 </table>
53 <p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
53 <p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
54 <% else %>
54 <% else %>
55 <p class="nodata"><%= l(:label_no_data) %></p>
55 <p class="nodata"><%= l(:label_no_data) %></p>
56 <% end %>
56 <% end %>
57
57
58 <% other_formats_links do |f| %>
58 <% other_formats_links do |f| %>
59 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
59 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
60 <% end %>
60 <% end %>
61
61
62 <% html_title @board.name %>
62 <% html_title @board.name %>
63
63
64 <% content_for :header_tags do %>
64 <% content_for :header_tags do %>
65 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
65 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
66 <% end %>
66 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now