commit
0d6c4a9984
@ -1,7 +1,6 @@
|
|||||||
module ActivityNotifysHelper
|
module ActivityNotifysHelper
|
||||||
def get_new_notify_count(container,type)
|
def get_new_notify_count(container,type)
|
||||||
logger.info('xxoo')
|
query = ActivityNotify.where('activity_container_id=? and activity_container_type=? and notify_to=? and is_read=0',container.id,type,User.current.id);
|
||||||
query = ActivityNotify.where('activity_container_id=? and activity_container_type=? and notify_to=?',container.id,type,User.current.id);
|
|
||||||
return query.count()
|
return query.count()
|
||||||
end
|
end
|
||||||
end
|
end
|
@ -1,15 +1,19 @@
|
|||||||
<%= form_tag(words_create_reply_path, :remote => true) do %>
|
<%= form_tag(words_create_reply_path, :remote => true) do %>
|
||||||
<%= text_area_tag 'user_notes', "", :class => 'noline',
|
<%= text_area_tag 'user_notes', "", :class => 'noline',
|
||||||
:style => "resize: none;", :rows => 4,
|
:style => "resize: none;", :rows => 4,
|
||||||
:placeholder => l(:label_feedback_respond_content),
|
:placeholder => l(:label_feedback_respond_content)#,
|
||||||
:maxlength => 250 %>
|
#:maxlength => 250
|
||||||
|
%>
|
||||||
|
<p nhname="contentmsg"></p>
|
||||||
|
|
||||||
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
||||||
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => m_reply_id.user.id %>
|
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => m_reply_id.user.id %>
|
||||||
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
|
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
|
||||||
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
|
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
|
||||||
|
<div class="fl" style="padding-top:5px;float:left;" nhname="toolbar_container"></div>
|
||||||
<%= submit_tag l(:button_feedback_respond), :name => nil ,
|
<%= submit_tag l(:button_feedback_respond), :name => nil ,
|
||||||
:class => "enterprise",
|
:class => "enterprise",
|
||||||
:style => "float: right; margin-top: 1px; margin-right: 4px;margin-bottom: 5px;"%>
|
:style => "float: right; margin-top: 1px; margin-right: 4px;margin-bottom: 5px;"%>
|
||||||
|
<input nhname="cancel_btn" type="button" style="display:none;"/>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
@ -1,15 +1,18 @@
|
|||||||
<%= form_tag(words_create_reply_path, :remote => true) do %>
|
<%= form_tag(words_create_reply_path, :remote => true) do %>
|
||||||
<%= text_area_tag 'user_notes', "", :class => 'w520 h50 mb5',
|
<%= text_area_tag 'user_notes', "", :class => 'w520 h50 mb5',
|
||||||
:style => "resize: none;overflow: hidden;",:rows => 4,
|
:style => "resize: none;overflow: hidden;",:rows => 4,
|
||||||
:placeholder => l(:label_feedback_respond_content),
|
:placeholder => l(:label_feedback_respond_content)
|
||||||
|
#,:maxlength => 250
|
||||||
:maxlength => 250 %>
|
%>
|
||||||
|
<p nhname="contentmsg"></p>
|
||||||
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
<%= hidden_field_tag 'reference_id', params[:reference_id], :value => journal.id %>
|
||||||
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => m_reply_id.user.id %>
|
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id], :value => m_reply_id.user.id %>
|
||||||
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
|
<%= hidden_field_tag 'reference_message_id', params[:reference_message_id], :value => m_reply_id.id %>
|
||||||
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
|
<%= hidden_field_tag 'show_name',params[:show_name],:value => show_name.nil? ? true : show_name %>
|
||||||
|
|
||||||
|
<div class="fl" style="padding-top:5px;" nhname="toolbar_container"></div>
|
||||||
<%= submit_tag l(:button_feedback_respond), :name => nil ,
|
<%= submit_tag l(:button_feedback_respond), :name => nil ,
|
||||||
:class => "reply_btn"%>
|
:class => "reply_btn"%>
|
||||||
|
<input nhname="cancel_btn" type="button" style="display:none;"/>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
Loading…
Reference in new issue