2013-08-01 10:33:49 +08:00
|
|
|
|
<!--最新反馈
|
|
|
|
|
<div>
|
|
|
|
|
<div style="padding:40px 0px 0px 0px">
|
|
|
|
|
<table><tr><td><h3><strong><%= link_to l(:label_user_newfeedback), home_path %></strong></h3>start a...</td></tr></table></div>
|
|
|
|
|
<div style="margin:1;padding:1;width:99%;height:1px;background-color:#dbdbdb;overflow:hidden"></div>
|
|
|
|
|
|
|
|
|
|
<ul class="context_projects">
|
|
|
|
|
<li><table width="99%">
|
|
|
|
|
<tr> <td align="center" valign="middle"><img src="/images/user_images/user2.png" width="40" height="40"/></td><td><div class="firstname_project"><strong><%=link_to "huang",home_path%></strong>对我评价了: </div></td><td><div class="tablecontext_single">新建问题的时候存在一个bug,需要解决卡涵盖的垃圾卡拉格德国的萨嘎...</div></td><td width="200" align="right" valign="middle"> <img src="/images/user_images/share.png"/></td></tr>
|
|
|
|
|
|
|
|
|
|
</table></li></ul></div>
|
|
|
|
|
<div class=more><%= link_to"更多",:contoller=>'project',:action=>'index'%></div>-->
|
|
|
|
|
<div style="padding-left: 8px">
|
|
|
|
|
<h3><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)).html_safe %></h3>
|
|
|
|
|
<p class="subtitle">
|
|
|
|
|
<%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %>
|
|
|
|
|
</p>
|
|
|
|
|
<div id="activity">
|
|
|
|
|
<% @events_by_day.keys.sort.reverse.each do |day| %>
|
|
|
|
|
<h3></h3>
|
|
|
|
|
<div>
|
|
|
|
|
<% sort_activity_events(@events_by_day[day]).each do |e, in_group| -%>
|
|
|
|
|
<div class="issue-note">
|
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(e.event_author), :class => "avatar")%></td>
|
|
|
|
|
<td><table width="580px" border="0">
|
|
|
|
|
<tr>
|
2013-08-03 22:22:17 +08:00
|
|
|
|
<td colspan="2" valign="top"><strong> <%= h(e.project) if @project.nil? || @project != e.project %></strong> <span class="font_lighter"><%= link_to_user(e.event_author) if e.respond_to?(:event_author) %> 有了最新动态</span> <%= link_to format_activity_title(e.event_title), e.event_url %></td>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description"><%= format_activity_description(e.event_description) %></p></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="left"><a class="font_lighter"><%= format_activity_day(day) %> <%= format_time(e.event_datetime, false) %></a></td>
|
2013-08-03 22:22:17 +08:00
|
|
|
|
|
2013-08-01 10:33:49 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</table></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<% end -%>
|
|
|
|
|
</div>
|
|
|
|
|
<% end -%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
<%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %>
|
|
|
|
|
|
|
|
|
|
<div style="float:left;">
|
|
|
|
|
<%= link_to_content_update("\xc2\xab " + l(:label_previous),
|
|
|
|
|
params.merge(:from => @date_to - @days - 1),
|
|
|
|
|
:title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1))) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="float:right;">
|
|
|
|
|
<%= link_to_content_update(l(:label_next) + " \xc2\xbb",
|
|
|
|
|
params.merge(:from => @date_to + @days - 1),
|
|
|
|
|
:title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1))) unless @date_to >= Date.today %>
|
|
|
|
|
</div>
|
|
|
|
|
<% other_formats_links do |f| %>
|
|
|
|
|
<%= f.link_to 'Atom', :url => params.merge(:from => nil, :key => User.current.rss_key) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
|
<%= auto_discovery_link_tag(:atom, params.merge(:format => 'atom', :from => nil, :key => User.current.rss_key)) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
|
<%= form_tag({}, :method => :get) do %>
|
|
|
|
|
<h3><%= l(:label_activity) %></h3>
|
|
|
|
|
<p>
|
|
|
|
|
<% @activity.event_types.each do |t| %>
|
|
|
|
|
<%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
|
|
|
|
|
<label for="show_<%= t%>"><%= link_to(l("label_#{t.singularize}_plural"), {"show_#{t}" => 1, :user_id => params[:user_id], :from => params[:from]})%></label>
|
|
|
|
|
<br />
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
|
|
|
|
<% if @project && @project.descendants.active.any? %>
|
|
|
|
|
<%= hidden_field_tag 'with_subprojects', 0 %>
|
|
|
|
|
<p>
|
|
|
|
|
<label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%= l(:label_subproject_plural)%></label>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= hidden_field_tag('user_id', params[:user_id]) unless params[:user_id].blank? %>
|
|
|
|
|
<p>
|
|
|
|
|
<%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<% html_title(l(:label_activity), @author) -%> -->
|