You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/projects/Copy of show.html.erb

54 lines
3.1 KiB

6 years ago
<!--最新反馈
<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>对我评价了:&nbsp;</div></td><td><div class="tablecontext_single">新建问题的时候存在一个bug需要解决卡涵盖的垃圾卡拉格德国的萨嘎...</div></td><td width="200" align="right" valign="middle">&nbsp;<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:30px 0px 0px 0px"><h3><strong><%=link_to l(:label_news), project_news_index_path(@project) %></strong></h3></div>
<div style="margin:1;padding:1;width:99%;height:1px;background-color:#dbdbdb;overflow:hidden"></div>
<!--<%= render :partial => 'members_box' %>-->
<% if @news.any? && authorize_for('news', 'index') %>
<div>
<%= render :partial => 'news/news', :collection => @news %>
<div class=more><%= link_to l(:button_more),:contoller=>'project',:action=>'index'%></div>
</div>
<% end %>
<%= call_hook(:view_projects_show_right, :project => @project) %>
<!--最新动态-->
<div style="padding:30px 0px 0px 0px"><h3><strong><%=link_to @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)).html_safe %></strong></h3></div>
<div style="margin:1;padding:1;width:99%;height:1px;background-color:#dbdbdb;overflow:hidden"></div>
<!-- <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| %>
<ul class="context_projects">
<% 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) %> -->
<li>
<table><tr><td><span align="center" valign="middle"><img src="/images/new/mlogo.png" width="40" height="40"/></span></td>
<td><span><%= format_activity_day(day) %></span>
<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 %>
<!-- <span class="description"><%= format_activity_description(e.event_description) %> -->
<%= link_to_user(e.event_author ,:class=>"author") if e.respond_to?(:event_author) %></span></td></tr></table>
</li> <% end -%>
</ul>
<% end -%>
<div class=more><%= link_to l(:button_more),:contoller=>'project',:action=>'index'%></div>
</div>