33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
|
|
|
|
|
|
<div id='leave-message'>
|
|
<%= render :partial => 'new_message', :locals => {:softapplication => @softapplication, :sta => @state} %>
|
|
</div>
|
|
|
|
|
|
<% if journals.size >0 %>
|
|
<ul class="message-for-user">
|
|
<% for journal in journals%>
|
|
<li id='word_li_<%= journal.id.to_s %>' class="outer-message-for-user">
|
|
<span class="portrait"><%= image_tag(url_to_avatar(journal.user), :class => "avatar") %></span>
|
|
<span class="body">
|
|
<span class="user"><%= link_to journal.user, user_path(journal.user)%></span>
|
|
<span class="font_lighter"><% label = l(:label_contest_requirement) %></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>
|
|
|
|
<% ids = 'project_respond_form_'+ journal.id.to_s%>
|
|
|
|
<span>
|
|
<% 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)) %>
|
|
<% end %>
|
|
</span>
|
|
</span>
|
|
<div style="clear: both;"></div>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|