调整课程信息样式

This commit is contained in:
sw 2015-03-18 10:15:10 +08:00
parent 4ebd27ea40
commit 278854156a
2 changed files with 37 additions and 11 deletions

View File

@ -1,6 +1,3 @@
<%= stylesheet_link_tag 'public', :media => 'all' %>
<%= javascript_include_tag "header" %>
<div id="Header" > <div id="Header" >
<!-- logo --> <!-- logo -->
<div class="logo fl" > <div class="logo fl" >

View File

@ -15,9 +15,8 @@
<%= javascript_heads %> <%= javascript_heads %>
<%= heads_for_theme %> <%= heads_for_theme %>
<%= call_hook :view_layouts_base_html_head %> <%= call_hook :view_layouts_base_html_head %>
<%= stylesheet_link_tag 'leftside', :media => 'all' %> <%= stylesheet_link_tag 'public', 'leftside', 'courses', :media => 'all' %>
<%= stylesheet_link_tag 'courses', :media => 'all' %> <%= javascript_include_tag "course","header" %>
<%= javascript_include_tag "course" %>
<!-- page specific tags --> <!-- page specific tags -->
<%= yield :header_tags -%> <%= yield :header_tags -%>
</head> </head>
@ -25,7 +24,6 @@
<body> <body>
<div id="Container"> <div id="Container">
<%= render :partial => 'layouts/new_header' %> <%= render :partial => 'layouts/new_header' %>
<div id="TopBar"> <div id="TopBar">
<div class="topbar_info02 fl"> <div class="topbar_info02 fl">
<h2> <h2>
@ -60,11 +58,42 @@
<div id="Content"> <div id="Content">
<div id="LSide" class="fl"> <div id="LSide" class="fl">
<div class="project_info"> <div class="project_info">
<div class="pr_info_logo fl mr10 mb5"><a href="#"><img src="images/courses/pic_courses.jpg" width="60" height="60" alt="logo" /></a></div> <div class="pr_info_logo fl mr10 mb5">
<div class="pr_info_id fl mb5 f14">ID:123456</div> <!--<a href="#"><img src="images/courses/pic_courses.jpg" width="60" height="60" alt="logo" /></a>-->
<div class="pr_info_join fl"><a href="#" target="_blank">+加入课程</a><a href="#" target="_blank">+关注</a></div> <% if get_avatar?(@course) %>
<%= image_tag(url_to_avatar(@course), :width => "60", :height => "60") %>
<% else %>
<%= link_to image_tag('../images/avatars/course/course.jpg', :width => "60", :height => "60"), course_path(@course) %>
<% end %>
</div>
<div class="pr_info_id fl mb5 f14">
ID:<%= @course.id%>
</div>
<div class="pr_info_join fl">
<a href="#" target="_blank">
<%= l(:label_settings)%>
</a>
<a href="#" target="_blank">
<%= l(:label_course_closed)%>
</a>
<a href="#" target="_blank">
复制
</a>
<!--<a href="#" target="_blank">-->
<!--退出课程-->
<!--</a>-->
</div>
<div class="cl"></div> <div class="cl"></div>
<div ><a class="pr_info_name fl c_dark" href="#" target="_blank">开源软件数据挖掘与分析据挖掘与分析开源<span class="img_private ">私有</span></a></div> <div >
<a class="pr_info_name fl c_dark" href="courses/<%= @course.id%>" target="_blank">
<%= @course.name %>
<% if @course.is_public == 0%>
<span class="img_private ">
<%= l(:field_is_private)%>
</span>
<% end %>
</a>
</div>
<div class="cl"></div> <div class="cl"></div>
<div class="pr_info_foot ">教师(<a class="info_foot_num c_blue" href="#" target="_blank">100</a><span>|&nbsp;</span>学生(<a class="info_foot_num c_blue" href="#" target="_blank">100</a><span>|&nbsp;</span>资源(<a class="info_foot_num c_blue" href="#" target="_blank">100</a></div> <div class="pr_info_foot ">教师(<a class="info_foot_num c_blue" href="#" target="_blank">100</a><span>|&nbsp;</span>学生(<a class="info_foot_num c_blue" href="#" target="_blank">100</a><span>|&nbsp;</span>资源(<a class="info_foot_num c_blue" href="#" target="_blank">100</a></div>