修改回复按钮表现方式

This commit is contained in:
nieguanghui 2013-12-26 15:32:34 +08:00
parent 6d47031d72
commit 4fc47ce3a3
3 changed files with 22 additions and 5 deletions

View File

@ -1,4 +1,5 @@
<li> <% ids_r = 'reply_respond_form_'+ reply.id.to_s %>
<li onmouseover="$('#<%= ids_r %>').show()" onmouseout="$('#<%= ids_r %>').hide()">
<span class="portrait"> <span class="portrait">
<%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %> <%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %>
</span> </span>
@ -7,9 +8,10 @@
<span><%= link_to reply.user.name, user_path(reply.user) %>:&nbsp;</span> <span><%= link_to reply.user.name, user_path(reply.user) %>:&nbsp;</span>
<span class="message-notes"> <%= reply.notes %></span> <span class="message-notes"> <%= reply.notes %></span>
<% ids = 'project_respond_form_'+ journal.id.to_s%> <% ids = 'project_respond_form_'+ journal.id.to_s%>
<p style="margin-top: 4px; font-size: 9pt;">
<p>
<span class="time"><%= format_time reply.created_on %></span> <span class="time"><%= format_time reply.created_on %></span>
<span style="float: right;"> <span style="display: none; margin-left: 4px;" id=<%= ids_r %>>
<%#= toggle_link l(:label_projects_feedback_respond), id, {:focus => 'project_respond'} %> <%#= toggle_link l(:label_projects_feedback_respond), id, {:focus => 'project_respond'} %>
<%= link_to l(:label_projects_feedback_respond),'', <%= link_to l(:label_projects_feedback_respond),'',
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{reply.user.show_name}: '); return false;"} {:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{reply.user.show_name}: '); return false;"}

View File

@ -12,9 +12,9 @@
<% else %> <% else %>
<span class="font_lighter"><%= l(:label_leave_others_message) %></span> <span class="font_lighter"><%= l(:label_leave_others_message) %></span>
<% end %> <% end %>
<span> <p>
<%= textilizable journal.notes%> <%= textilizable journal.notes%>
</span> </p>
<span class="font_lighter"> <%= l :label_comment_time %>&nbsp; <%= format_time journal.created_on %></span> <span class="font_lighter"> <%= l :label_comment_time %>&nbsp; <%= format_time journal.created_on %></span>
<% ids = 'project_respond_form_'+ journal.id.to_s%> <% ids = 'project_respond_form_'+ journal.id.to_s%>
<%#= toggle_link l(:label_projects_feedback_respond), ids, {:focus => 'project_respond'} %> <%#= toggle_link l(:label_projects_feedback_respond), ids, {:focus => 'project_respond'} %>

View File

@ -2118,6 +2118,7 @@ span.body{
ul.messages-for-user-reply li { ul.messages-for-user-reply li {
padding-bottom: 4px; padding-bottom: 4px;
font-size: 9pt;
} }
.respond-form{ .respond-form{
@ -2126,3 +2127,17 @@ ul.messages-for-user-reply li {
margin: auto; margin: auto;
clear:both; clear:both;
} }
.outer-message-for-use p {
margin: 0;
padding: 0;
margin-top: 5px;
}
.body p {
margin: 0;
padding: 0;
margin-top: 4px;
margin-left: 4px;
font-size: 9pt;
}