|
|
@ -3,59 +3,7 @@
|
|
|
|
<%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %>
|
|
|
|
<%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div id="activity">
|
|
|
|
|
|
|
|
<% @events_by_day.keys.sort.reverse.each do |day| %>
|
|
|
|
|
|
|
|
<h3><%= format_activity_day(day) %></h3>
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
|
|
|
|
<% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%>
|
|
|
|
|
|
|
|
<dt class="<%= e.event_type %> <%= "grouped" if in_group %> <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
|
|
|
|
|
|
|
|
<%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
|
|
|
|
|
|
|
|
<span class="time"><%= format_time(e.event_datetime, false) %></span>
|
|
|
|
|
|
|
|
<%= content_tag('span', h(e.project), :class => 'project') if @project.nil? || @project != e.project %>
|
|
|
|
|
|
|
|
<%= link_to format_activity_title(e.event_title), e.event_url %>
|
|
|
|
|
|
|
|
</dt>
|
|
|
|
|
|
|
|
<dd class="<%= "grouped" if in_group %>"><span class="description"><%= format_activity_description(e.event_description) %></span>
|
|
|
|
|
|
|
|
<span class="author"><%= link_to_user(e.event_author) if e.respond_to?(:event_author) %></span></dd>
|
|
|
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div id="activity">
|
|
|
|
|
|
|
|
<% @events_by_day.keys.sort.reverse.each do |day| %>
|
|
|
|
|
|
|
|
<h3><%= format_activity_day(day) %></h3>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%>
|
|
|
|
|
|
|
|
<div class="issue-note">
|
|
|
|
|
|
|
|
<!-- <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %> -->
|
|
|
|
|
|
|
|
<!--<div class="img-activity">
|
|
|
|
|
|
|
|
<%= tag('img', {:src => 'http://localhost:3000/images/12_50.png', :class => 'img-ta2'}, false, false) %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="<%= "grouped" if in_group %>">
|
|
|
|
|
|
|
|
<div class="description">
|
|
|
|
|
|
|
|
<%= format_activity_description(e.event_description) %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="activity-info">
|
|
|
|
|
|
|
|
<div class="time">
|
|
|
|
|
|
|
|
<span>时间: </span><%= format_time(e.event_datetime, false) %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
|
|
|
|
<span>主题: </span><span class="project-name"><%= h(e.project) if @project.nil? || @project != e.project %></span>
|
|
|
|
|
|
|
|
<%= link_to format_activity_title(e.event_title), e.event_url %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="author">
|
|
|
|
|
|
|
|
<span>作者: </span><%= link_to_user(e.event_author) if e.respond_to?(:event_author) %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="clear: both"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
</div>-->
|
|
|
|
|
|
|
|
<!--add by huang-->
|
|
|
|
|
|
|
|
<div id="activity">
|
|
|
|
<div id="activity">
|
|
|
|
<% @events_by_day.keys.sort.reverse.each do |day| %>
|
|
|
|
<% @events_by_day.keys.sort.reverse.each do |day| %>
|
|
|
|
<h3></h3>
|
|
|
|
<h3></h3>
|
|
|
|