Actualizado plugin Redmine Questions 1.0.0 light
This commit is contained in:
parent
27e60f8ec1
commit
5d7889f1c9
140 changed files with 5342 additions and 1430 deletions
|
@ -1,14 +1,8 @@
|
|||
<%
|
||||
scope = Message.where({})
|
||||
scope = scope.where("#{Message.table_name}.parent_id IS NULL")
|
||||
scope = scope.where(["#{Board.table_name}.project_id = ?", @project.id]) if @project
|
||||
@latest_topics = scope.visible.includes(:board).order("#{Message.table_name}.created_on DESC").limit(5)
|
||||
%>
|
||||
<h3><%= l(:label_questions_latest_messages) %></h3>
|
||||
<ul class="related-topics">
|
||||
<% @latest_topics.each do |topic| %>
|
||||
<li class="related-topic">
|
||||
<%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => topic.board, :id => topic } %>
|
||||
</li>
|
||||
<% end unless @latest_topics.blank? %>
|
||||
</ul>
|
||||
<% Question.visible.by_date.in_project(@project).limit(5).each do |question| %>
|
||||
<li class="related-topic">
|
||||
<%= link_to h(question.subject), { :controller => 'questions', :action => 'show', :id => question, :project_id => @project } %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue