2014-10-31 20:39:09 +08:00
|
|
|
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
2014-11-04 18:30:45 +08:00
|
|
|
|
2014-10-31 20:39:09 +08:00
|
|
|
<div class="ping_ctt">
|
|
|
|
<div id="tbc_01" class="ping_dis">
|
|
|
|
<% if journals.size > 0 %>
|
|
|
|
<% for journal in journals %>
|
|
|
|
<div class="ping_C" id='word_li_<%= journal.id.to_s %>'>
|
|
|
|
<div class="ping_dispic"><a target="_blank" href="#"><%= image_tag(url_to_avatar(journal.user)) %></a></div>
|
|
|
|
<div class="ping_discon" style="width: 85%;">
|
|
|
|
<div class="ping_distop">
|
|
|
|
<!-- <a style=" font-weight:bold; color:#15bccf; margin-right:30px; background:none;" target="_blank" href="#">gugu01</a> -->
|
2014-11-04 10:22:48 +08:00
|
|
|
<span><%= link_to journal.user, user_path(journal.user),:style => " font-weight:bold; color:#15bccf; margin-right:30px; background:none;", :target => "_blank"%></span><span style="color:#a6a6a6; margin-right:40px; margin-left:30px;"><%= format_time(journal.created_on) %></span>
|
2014-10-31 20:39:09 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
<p><%= textilizable journal.notes%></p>
|
|
|
|
</div>
|
|
|
|
<div class="ping_disfoot">
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
<span style="float: right">
|
2014-11-04 10:07:15 +08:00
|
|
|
<% if journal.user == User.current|| User.current.admin? %>
|
2014-10-31 20:39:09 +08:00
|
|
|
<%= link_to(l(:label_bid_respond_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)) %>
|
|
|
|
<% end %>
|
2014-11-01 11:05:43 +08:00
|
|
|
<% if reply_allow %>
|
|
|
|
<%= link_to l(:label_bid_respond_quote),'',
|
|
|
|
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{ids}'), $('##{ids} textarea'), '#{l(:label_reply_plural)} #{journal.user.name}: '); $('##{ids} textarea') ;return false;"} %>
|
|
|
|
<%= link_to(l(:button_quote), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal},
|
|
|
|
:remote => true,:method => 'post', :title => l(:button_quote))%>
|
|
|
|
<% end %>
|
2014-10-31 20:39:09 +08:00
|
|
|
</span>
|
2014-11-02 12:12:41 +08:00
|
|
|
<span class="font_lighter" style="float: right">
|
2014-10-31 20:39:09 +08:00
|
|
|
<%= l(:label_bids_published) %>
|
|
|
|
<%= time_tag(journal.created_on).html_safe %>
|
|
|
|
<%= l(:label_bids_published_ago) %>
|
2014-11-02 12:12:41 +08:00
|
|
|
</span>
|
2014-10-31 20:39:09 +08:00
|
|
|
</div>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
<% if reply_allow %>
|
|
|
|
<div id='<%= ids %>' class="respond-form">
|
2014-11-04 15:46:24 +08:00
|
|
|
<%= render :partial => 'words/new_respond', :locals => {:journal => journal, :m_reply_id => journal,:show_name => true} %>
|
2014-10-31 20:39:09 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<div>
|
2014-11-04 15:46:24 +08:00
|
|
|
<%= render :partial => "words/journal_reply", :locals => {:journal => journal, :show_name => true} %>
|
2014-10-31 20:39:09 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2014-11-01 15:06:03 +08:00
|
|
|
</div>
|