Skip to content

Commit 886f903

Browse files
author
Gabe Anzelini
committed
put list in a table
1 parent 6176b6e commit 886f903

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/views/my/blocks/_messages_posted_in_the_last_week_on_assigned_projects.html.erb

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<%
2+
boards = User.current.projects.collect{|proj| proj.boards.collect{|board| board.id}.join(",") }.join(",")
23
@messages = Message.find( :all,
3-
:conditions => ["created_on >= ?",1.week.ago],
4+
:conditions => ["created_on >= ? and board_id in ?",1.week.ago, boards],
45
:order => 'updated_on DESC')
56
%>
67
<% if @messages and @messages.count > 0 %>

assets/stylesheets/my_widgets.css

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,4 @@ table.list td.progress-cell { white-space: nowrap; padding-right: 2.5em; }
66
.cloud a { white-space: nowrap; margin: 0.5em; }
77

88

9-
table.messages td.project, table.messages td.author
10-
{
11-
text-align: center;
12-
}
9+
table.messages td.project, table.messages td.author{text-align: center;}

0 commit comments

Comments
 (0)