41 lines
2.6 KiB
Plaintext
41 lines
2.6 KiB
Plaintext
<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg',"user" %>
|
|
<% @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) %>
|
|
<a href="<%= url_for(:controller => 'projects', :action => 'new',:host=>Setting.host_name) %>" class="bgreen_n_btn fr ml10 mt2" target="_blank">新建项目</a>
|
|
<% else %>
|
|
<a href="<%= join_project_projects_path %>" data-remote ="true" class="green_n_btn fr mt2">加入项目</a>
|
|
<% end %>
|
|
|
|
<% if @user.user_extensions.identity == 0 && @user.allowed_to?(:add_course, nil, :global => true) %>
|
|
<a href="<%= url_for(:controller => 'courses', :action => 'new',:host=>Setting.host_course) %>" class="green_n_btn fr mt2" target="_blank">新建课程</a>
|
|
<% 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>-->
|
|
<a href="<%= join_private_courses_courses_path %>" data-remote ="true" class="green_n_btn fr mt2">加入课程</a>
|
|
<% end %>
|
|
<div class="cl"></div>
|
|
</div>
|
|
|
|
<div id="RSide" class="fl">
|
|
|
|
<div class="users_courses_box line_box mb10" nhname="list_more_div" style="display:none;">
|
|
<h4 class="users_h4">课程动态</h4>
|
|
<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>
|
|
<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>
|
|
|
|
<div class="users_courses_box line_box mb10" nhname="list_more_div" style="display:none;">
|
|
<h4 class="users_h4">项目动态</h4>
|
|
<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>
|
|
<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>
|
|
|
|
</div>
|