exceptionHandle
yanxd 12 years ago
parent 2c5cd7a12a
commit 60489bdbfd

@ -1,45 +1,54 @@
<!-- fq --> <!-- fq -->
<style>
.portrait{
float: left;
width: 40px;
padding-top: 3px;
margin: 0px;
padding: 0px;
display: block;
}
.body{
float: left;
width: 405px;
overflow: hidden;
font-size: 9pt;
margin: 0px 10px;
padding: 0px;
display: block;
}
</style>
<% if jour.size >0 %> <% if jour.size >0 %>
<% remove_allowed = (User.current.id == jour.first.user_id) %> <% remove_allowed = (User.current.id == jour.first.user_id) %>
<ul>
<% for journal in jour%> <% for journal in jour%>
<table width="660px" border="0" align="center"> <li>
<tr> <span class="portrait"><%= image_tag(url_to_avatar(journal.user), :class => "avatar") %></span>
<td colspan="2" valign="top" width="50" ><%= image_tag(url_to_avatar(journal.user), :class => "avatar") %></td> <span class="body">
<td> <span class="user"><%= link_to journal.user, user_path(journal.user)%></span>
<table width="580px" border="0"> <% if @user == User.current %>
<tr> <span class="font_lighter"><%= l(:label_leave_me_message) %></span>
<td colspan="2" valign="top"><strong> <%= link_to journal.user, user_path(journal.user)%></strong> <% else %>
<% if @user == User.current %> <span class="font_lighter"><%= l(:label_leave_others_message) %></span>
<span class="font_lighter"><%= l(:label_leave_me_message) %></span> <% end %>
<% else %> <span>
<span class="font_lighter"><%= l(:label_leave_others_message) %></span> <%= textilizable journal.notes%>
<% end %> </td> </span>
</tr> <span class="font_lighter"> <%= l :label_comment_time %>&nbsp; <%= format_time journal.created_on %></span>
<tr> <% if @user == User.current %>
<td colspan="2" width="580px" > <% ids = 'project_respond_form_'+ journal.id.to_s%>
<div class="info-break"> <%= toggle_link l(:label_projects_feedback_respond), ids, {:focus => 'project_respond'} %>
<%= textilizable journal.notes%>
</div></td>
</tr>
<tr>
<td align="left"><span class="font_lighter"> <%= l :label_comment_time %>&nbsp; <%= format_time journal.created_on %></span></td>
<td width="200" align="right" class="a"> <% if @user == User.current %>
<%= link_to(l(:label_newfeedback_quote), {:controller => 'words', :action => 'new', :id => user, :journal_id => journal}, :remote => true,
:method => 'post', :title => l(:button_quote))%>
<%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => journal, :user_id => user},
:remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) if remove_allowed || journal.jour_id == User.current.id %></td>
<% else %>
<%= link_to(l(:label_newfeedback_quote), {:controller => 'words', :action => 'new', :id => user, :journal_id => journal}, :remote => true,
:method => 'post', :title => l(:button_quote))%>
<% end %> <% end %>
</tr> </span>
</table> <div style="clear: both;"></div>
</td> <div id=<%= ids %> style="display: none; width: 80%; margin: auto;">
</tr> <%= render :partial => 'words/new_respond', :locals => {:journal => journal} %>
</table> </div>
<div class="line_under"></div> <div>
<%= render :partial => "words/journal_reply", :locals => {:journal => journal} %>
</div>
</li>
<% end %> <% end %>
</ul>
<% end %> <% end %>

Loading…
Cancel
Save