From a4dc86fdfe0ab7e9cb555b3a333bb1e376b14760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Wed, 16 Feb 2011 11:56:54 +0100 Subject: [PATCH] Try to at least _look_ nice! my-project+#2414 --- app/views/meetings/index.html.erb | 26 +++++++++++++++++--------- assets/stylesheets/redmine_meeting.css | 5 ++++- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/app/views/meetings/index.html.erb b/app/views/meetings/index.html.erb index 9e3a74e802..18dfe501ee 100644 --- a/app/views/meetings/index.html.erb +++ b/app/views/meetings/index.html.erb @@ -9,20 +9,28 @@ <% if @meetings_by_start_year_month_date.empty? -%>

<%= l(:label_no_data) %>

<% else -%> -
+
<% @meetings_by_start_year_month_date.sort.reverse.each do |year,meetings_by_start_month_date| -%> <% meetings_by_start_month_date.sort.reverse.each do |month,meetings_by_start_date| -%>

<%= "#{month_name(month)} #{year}" %>

+
<% meetings_by_start_date.sort.reverse.each do |date,meetings| -%> -

<%= format_activity_day(date) %>

- <% meetings.each do |meeting| -%> -
- <%= format_time meeting.start_time, false %>-<%= format_time meeting.end_time, false %> <%= link_to h(meeting.title), :controller => 'meetings', :action => 'show', :id => meeting %> -

<%= l(:field_location) %>: <%=h meeting.location %> -

<%= l(:field_participants) %> (<%= meeting.participants.count %>): <%= meeting.participants.sort.join(", ") %>

-
- <% end -%> +

<%= format_activity_day(date) %>

+
+ <% meetings.each do |meeting| -%> +
+ <%= avatar meeting.author, :size => "24" %> + <%= format_time meeting.start_time, false %>-<%= format_time meeting.end_time, false %> + <%= link_to h(meeting.title), :controller => 'meetings', :action => 'show', :id => meeting %> +
+
+

<%= l(:field_location) %>: <%=h meeting.location %>

+

<%= l(:field_participants) %> (<%= meeting.participants.count %>): <%= meeting.participants.sort.join(", ") %>

+
+ <% end -%> +
<% end -%> +
<% end -%> <% end -%>
diff --git a/assets/stylesheets/redmine_meeting.css b/assets/stylesheets/redmine_meeting.css index f7616df04a..76e9a541be 100644 --- a/assets/stylesheets/redmine_meeting.css +++ b/assets/stylesheets/redmine_meeting.css @@ -1,2 +1,5 @@ .meetings div.meeting {padding-bottom: 1em;} -div.meeting_content {padding-bottom: 2em;} \ No newline at end of file +div.meeting_content {padding-bottom: 2em;} +div.meetings_by_date {padding: 1em 0 1em 2em;} +dl.meetings p, div#activity dl.meetings dd, div#activity dl.meetings dt {padding: 0;} +dl.meetings {margin-bottom: 2em;} \ No newline at end of file