2015-07-31 15:25:01 +08:00
|
|
|
<div class="top_new">
|
|
|
|
<span class="<%= (@user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true)) ? 'top_new_bg' : 'top_newcourses_bg'%> fl"></span>
|
|
|
|
<% if @user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true) %>
|
|
|
|
<a href="<%= url_for(:controller => 'courses', :action => 'new',) %>" class="green_n_btn fr mt2" target="_blank">新建课程</a>
|
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
|
2015-07-30 11:44:36 +08:00
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg',"user" %>
|
2015-07-29 10:34:04 +08:00
|
|
|
<div id="RSide" class="fl">
|
2015-07-31 15:25:01 +08:00
|
|
|
<!--<div class="users_r_top">-->
|
|
|
|
<!--<h2 class="users_r_h2">用户留言</h2>-->
|
|
|
|
<!--</div>-->
|
2015-07-29 10:34:04 +08:00
|
|
|
<div class="message_box mb10">
|
2015-07-29 17:41:10 +08:00
|
|
|
<div nhname='new_message' style="display:none;">
|
2015-07-29 18:26:04 +08:00
|
|
|
<%= form_for('new_form',:url => leave_user_message_path(@user.id),:method => "post") do |f|%>
|
|
|
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" nhname='new_message_textarea' name="new_form[user_message]"></textarea>
|
|
|
|
<p nhname='contentmsg'></p>
|
|
|
|
<div nhname='toolbar_container' style="float:left;padding-top:3px;"></div>
|
|
|
|
<a id="new_message_cancel_btn" href="javascript:void(0)" class="grey_n_btn fr " style="margin-top:3px;">取消</a>
|
|
|
|
<a id="new_message_submit_btn" href="javascript:void(0)" class="blue_n_btn fr mr5 " style="margin-top:3px;">留言</a>
|
|
|
|
<% end%>
|
2015-07-29 17:41:10 +08:00
|
|
|
</div>
|
2015-07-29 10:34:04 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
|
2015-07-30 09:20:54 +08:00
|
|
|
<div class="message_list_box " id="user_jour_list">
|
2015-07-29 17:41:10 +08:00
|
|
|
<%if @jour%>
|
|
|
|
<% @jour.each do |jour|%>
|
|
|
|
<%= render :partial => 'user_jours_new', :locals => {:jour => jour} %>
|
|
|
|
<%end%>
|
|
|
|
<% end%>
|
2015-07-29 18:26:04 +08:00
|
|
|
|
|
|
|
<ul class="wlist" style=" border:none;">
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
|
|
|
</ul>
|
|
|
|
<div class="cl"></div>
|
2015-07-29 17:41:10 +08:00
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
2015-07-29 10:34:04 +08:00
|
|
|
</div><!--message_box end-->
|
|
|
|
</div>
|