2015-07-30 11:44:36 +08:00
|
|
|
<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg',"user" %>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% @center_flag = (User.current == @user) %>
|
|
|
|
<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.allowed_to?(:add_project, nil, :global => true) %>
|
2015-07-10 15:38:49 +08:00
|
|
|
<a href="<%= url_for(:controller => 'projects', :action => 'new',:host=>Setting.host_name) %>" class="bgreen_n_btn fr ml10 mt2" target="_blank">新建项目</a>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% else %>
|
2015-08-11 11:26:22 +08:00
|
|
|
<a href="<%= join_project_projects_path %>" data-remote ="true" class="bgreen_n_btn fr mt2">加入项目</a>
|
2014-09-15 10:58:14 +08:00
|
|
|
<% end %>
|
|
|
|
|
2015-07-09 15:27:49 +08:00
|
|
|
<% if @user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true) %>
|
2015-08-11 11:26:22 +08:00
|
|
|
<a href="<%= url_for(:controller => 'courses', :action => 'new',:host=>Setting.host_course) %>" class="bgreen_n_btn fr mt2" target="_blank">新建课程</a>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% else %>
|
|
|
|
<!--<a href="<%#= url_for(:controller => 'courses', :action => 'join_private_courses',:host=>Setting.host_course) %>" data-remote ="true" class="green_n_btn fr mt2">加入课程</a>-->
|
2015-08-11 11:26:22 +08:00
|
|
|
<a href="<%= join_private_courses_courses_path %>" data-remote ="true" class="bgreen_n_btn fr mt2">加入课程</a>
|
2015-07-09 15:27:49 +08:00
|
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
2014-12-22 01:29:53 +08:00
|
|
|
|
2015-07-09 15:27:49 +08:00
|
|
|
<div id="RSide" class="fl">
|
2014-12-22 01:29:53 +08:00
|
|
|
|
2015-07-10 14:17:19 +08:00
|
|
|
<div class="users_courses_box line_box mb10" nhname="list_more_div" style="display:none;">
|
2015-07-09 15:27:49 +08:00
|
|
|
<h4 class="users_h4">课程动态</h4>
|
2015-07-16 15:24:10 +08:00
|
|
|
<div nhname="container" data-nodatamsg="暂无动态" data-url="<%= url_for(:controller => 'users', :action => 'user_course_activities') %>" data-isclose="0" data-currpage="0" data-hasmore="1"></div>
|
2015-07-09 15:27:49 +08:00
|
|
|
<div class="message_list_more">
|
|
|
|
<a nhname="expand" href="javascript:void(0)" class="c_blue02">点击展开更多</a> <a nhname="close" style="display:none" href="javascript:void(0)" class="c_lgrey fr">收起</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-22 01:29:53 +08:00
|
|
|
|
2015-07-10 14:17:19 +08:00
|
|
|
<div class="users_courses_box line_box mb10" nhname="list_more_div" style="display:none;">
|
2015-07-09 15:27:49 +08:00
|
|
|
<h4 class="users_h4">项目动态</h4>
|
2015-07-16 15:24:10 +08:00
|
|
|
<div nhname="container" data-nodatamsg="暂无动态" data-url="<%= url_for(:controller => 'users', :action => 'user_project_activities') %>" data-isclose="0" data-currpage="0" data-hasmore="1"></div>
|
2015-07-09 15:27:49 +08:00
|
|
|
<div class="message_list_more">
|
|
|
|
<a nhname="expand" href="javascript:void(0)" class="c_blue02">点击展开更多</a> <a nhname="close" style="display:none" href="javascript:void(0)" class="c_lgrey fr">收起</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
2015-07-09 15:27:49 +08:00
|
|
|
</div>
|