|
|
|
@ -27,18 +27,25 @@
|
|
|
|
|
<span class="user"><%= link_to journal.user, user_path(journal.user)%></span>
|
|
|
|
|
<span class="font_lighter"><%= label %></span>
|
|
|
|
|
<div> <%= textilizable journal.notes%> </div>
|
|
|
|
|
<span class="font_lighter"><%= l(:label_bids_published) %> <%= time_tag(journal.created_on).html_safe %> <%= l(:label_bids_published_ago) %></span>
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
<%= l(:label_bids_published) %>
|
|
|
|
|
<%= time_tag(journal.created_on).html_safe %>
|
|
|
|
|
<%= l(:label_bids_published_ago) %>
|
|
|
|
|
</span>
|
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
|
<span>
|
|
|
|
|
<% if reply_allow %>
|
|
|
|
|
<%= link_to(l(:button_quote), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal}, :remote => true,
|
|
|
|
|
:method => 'post', :title => l(:button_quote))%>
|
|
|
|
|
<%= link_to(l(:button_quote), {:controller => 'bids', :action => 'new', :id => bid, :journal_id => journal},
|
|
|
|
|
:remote => true,:method => 'post', :title => l(:button_quote))%>
|
|
|
|
|
<%= 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;"}
|
|
|
|
|
%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if @user==User.current|| User.current.admin? %>
|
|
|
|
|
<%= 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)) %>
|
|
|
|
|
<%= 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 %>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|