修改了“返回个人主页”和“返回课程”,修改了样式
This commit is contained in:
parent
19b030dd23
commit
1be0a7d23f
|
@ -21,11 +21,11 @@
|
|||
<div id="wrapper3">
|
||||
|
||||
<% if session[:enterprise_college] == 2 %>
|
||||
<%=render :partial => 'layouts/base_enterprise_header'%>
|
||||
<%= render :partial => 'layouts/base_enterprise_header'%>
|
||||
<% elsif session[:enterprise_college] == 1 %>
|
||||
<%=render :partial => 'layouts/base_college_header'%>
|
||||
<%= render :partial => 'layouts/base_college_header'%>
|
||||
<% else %>
|
||||
<%=render :partial => 'layouts/base_header'%>
|
||||
<%= render :partial => 'layouts/base_header'%>
|
||||
<% end %>
|
||||
|
||||
<div id="main" class="">
|
||||
|
@ -33,23 +33,32 @@
|
|||
<div class="main_context">
|
||||
<div class="spaceleft">
|
||||
<div>
|
||||
<table style="width: 232px ; height: 80px;"> <!-- modified by bai -->
|
||||
<table style="width: 232px ; height: 80px;">
|
||||
<!-- modified by bai -->
|
||||
<!-- <tr>
|
||||
<td><span style="padding-left: 8px; "><%= l(:label_course_view) %></span>
|
||||
|
||||
|
||||
</td>
|
||||
</tr> -->
|
||||
<tr><td style="padding-left: 8px"><%= l(:label_course_view) %></td></tr>
|
||||
<tr>
|
||||
<td style="padding-left: 8px"><%=l(:label_course_view) %></td>
|
||||
<td class="info_font"><span style="color:#ed8924"><%= h @bid.name %></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="info_font" style=" word-wrap: break-word; word-break: break-all; color: #ed8924 "><%= h @bid.name %></td>
|
||||
</tr>
|
||||
<tr><td style="padding-left: 8px"><a class="fontcolor"><%=link_to l(:label_course_return), project_path(@bid.courses.first) %></a>
|
||||
<span style="padding-left: 8px">
|
||||
<% if @user != User.current %>
|
||||
<td>
|
||||
<span class="bid_course" style="padding-left: 8px"> <% if @user != User.current %>
|
||||
<%= watcher_link(@bid, User.current) %>
|
||||
<% end %>
|
||||
</span></td>
|
||||
<% end %> </span></td>
|
||||
</tr>
|
||||
<tr><table><tr>
|
||||
<td align="center"><%= link_to l(:label_course_return), project_path(@bid.courses.first), :class => 'font-user-color' %></td>
|
||||
<td align="center"><%= link_to "返回个人主页", user_path(User.current), :class => 'font-user-color'%>
|
||||
</td></tr></table>
|
||||
</table>
|
||||
</div>
|
||||
<div class="user_underline"></div>
|
||||
<!--count-->
|
||||
|
||||
<!-- info -->
|
||||
<div class="inf_user_image">
|
||||
|
@ -66,9 +75,11 @@
|
|||
</tr>
|
||||
<% unless @bid.parent_id.nil?%>
|
||||
<tr>
|
||||
<td><div style=" color: rgb(255, 0, 0); width:200px">
|
||||
<td>
|
||||
<div style=" color: rgb(255, 0, 0); width:200px">
|
||||
<% author=Bid.find(@bid.parent_id).author%>
|
||||
作业来源于<%= link_to(author.lastname+author.firstname, user_path(Bid.find(@bid.parent_id).author))%>的需求:<%= link_to(Bid.find(@bid.parent_id).name, respond_path(Bid.find(@bid.parent_id))) %></div></td>
|
||||
作业来源于<%= link_to(author.lastname+author.firstname, user_path(Bid.find(@bid.parent_id).author))%>的需求:<%= link_to(Bid.find(@bid.parent_id).name, respond_path(Bid.find(@bid.parent_id))) %>
|
||||
</div></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
@ -118,9 +129,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="user_underline"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end -->
|
||||
</div>
|
||||
|
|
|
@ -217,6 +217,8 @@ ul.tool li{list-style-type:none;
|
|||
font-weight:bold;
|
||||
font-size:16px;
|
||||
color:#4d4d4d;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
.font_lighter{
|
||||
font-family:微软雅黑;
|
||||
|
|
|
@ -1781,6 +1781,18 @@ a.bid_user {
|
|||
color:#acaeb1;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
a.bid_course{
|
||||
vertical-align:middle;
|
||||
alignment-adjust:middle;
|
||||
color: #FFFFFF;
|
||||
/*width: 60px;*/
|
||||
border-radius: 3px;
|
||||
background-color: #15bccf;
|
||||
margin-left: 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
a.bids_user {
|
||||
font-family:微软雅黑;
|
||||
color:#15bccf;
|
||||
|
@ -1838,3 +1850,11 @@ input[type="submit"] {
|
|||
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2), 0px 1px 0px rgb(255, 255, 255);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a.font-user-color{
|
||||
color: #FFFFFF;
|
||||
width:113px;
|
||||
background-color: #3676c8;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue