修改了主页的显示样式,

修改了我的课程,使得可以直接创建课程
This commit is contained in:
baiyu 2013-09-30 16:20:56 +08:00
parent 3ec4e14bfd
commit 19962f2695
2 changed files with 15 additions and 13 deletions

View File

@ -7,8 +7,8 @@
</div>
<%= content_tag('div', "#{link_to(l(:label_layouts_feedback)+'(' + User.current.count_new_jour.to_s + ')', feedback_path(User.current))}".html_safe, :id => 'loggedas') if User.current.logged? %>
<%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}".html_safe, :id => 'loggedas') if User.current.logged? %>
<%= content_tag('li', "#{link_to(l(:label_enterprise_college), :controller =>'projects', :action => 'course', :project_type => 1 )}".html_safe, :id=> 'account-enterprise') %>
<%= content_tag('li', "#{link_to(l(:lable_college_enterprise), :controller => 'projects', :action =>'index', :project_type => 0)}".html_safe, :id=> 'account-college') %>
<%= content_tag('li', "#{link_to(l(:label_enterprise_college), :controller =>'projects', :action => 'course_enterprise', :project_type => 1 )}".html_safe, :id=> 'account-enterprise') %>
<%= content_tag('li', "#{link_to(l(:lable_college_enterprise), :controller => 'projects', :action =>'enterprise_course', :project_type => 0)}".html_safe, :id=> 'account-college') %>
<!-- <div style="float: right; margin-top: 13px;">
<%= content_tag('div', "#{link_to(image_tag('/images/mes.png'), feedback_path(User.current))}".html_safe, :title => "留言") if User.current.logged? %>
</div> -->

View File

@ -1,5 +1,16 @@
<div class="content_frame">
<% unless @memberships.empty? %>
<% if @memberships.empty? %>
<% if @user != User.current %>
<p class="font_description">
<%= l(:label_project_course_un) %>
</p>
<% else %>
<p class="font_description">
<%= l(:label_project_course_unadd) %><%= link_to"#{l(:label_course_new)}",:controller=>'projects',:action=>'new', :course => 1 %>
</p>
<% end %>
<% else %>
<%= link_to"#{l(:label_course_new)}",:controller=>'projects',:action=>'new', :course => 1 %>
<ul class="user_project_sort">
<% for membership in @memberships %>
<li>
@ -42,16 +53,7 @@
</li>
<% end %>
</ul>
<% else %>
<% if @user != User.current %>
<p class="font_description">
<%= l(:label_project_course_un) %>
</p>
<% else %>
<p class="font_description">
<%= l(:label_project_course_unadd) %><%= link_to"#{l(:label_new)}",:controller=>'projects',:action=>'new', :course => 1 %>
</p>
<% end %>
<% end %>
<%= call_hook :view_account_left_bottom, :user => @user %>
</div>