forked from jacknudt/trustieforge
修改了“返回个人主页”和“返回课程”,修改了样式
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,26 +33,35 @@
|
|||
<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>
|
||||
</tr>
|
||||
<% 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>
|
||||
|
||||
<!-- info -->
|
||||
<div class="inf_user_image">
|
||||
</div>
|
||||
<div class="user_underline"></div>
|
||||
<!--count-->
|
||||
|
||||
<!-- info -->
|
||||
<div class="inf_user_image">
|
||||
<table>
|
||||
<tr>
|
||||
<td><%= l(:label_course_homework) %> : <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %></td>
|
||||
|
@ -60,17 +69,19 @@
|
|||
<tr>
|
||||
<td style="text-align: justify ; text-justify: inter-ideograph; width: 180px"><%= l(:label_teacher_homework) %> : <%= link_to(@user.lastname+@user.firstname, user_path(@user)) %></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td><%= l(:label_limit_time) %>: <%= @bid.deadline %></td>
|
||||
</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 %>
|
||||
<% end %>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
@ -118,9 +129,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="user_underline"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- end -->
|
||||
</div>
|
||||
|
@ -136,7 +145,7 @@
|
|||
<%= link_to l(:label_homework_commit), {:controller => 'bids', :action => 'show_project' },:class => link_class(:project)%>
|
||||
<% else %>
|
||||
<%= link_to l(:label_homework_info), {:controller => 'bids', :action => 'show_project' },:class => link_class(:project)%>
|
||||
|
||||
|
||||
<% end %>
|
||||
</li>
|
||||
<!-- <li><%= link_to l(:label_homework_statistics), { :controller => 'bids', :action => 'homework_statistics' },:class => link_class(:homework_statistics)%></li> -->
|
||||
|
|
|
@ -216,7 +216,9 @@ ul.tool li{list-style-type:none;
|
|||
font-family:微软雅黑;
|
||||
font-weight:bold;
|
||||
font-size:16px;
|
||||
color:#4d4d4d;
|
||||
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;
|
||||
|
@ -1837,4 +1849,12 @@ input[type="submit"] {
|
|||
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2), 0px 0px 2px rgb(255, 255, 255) inset;
|
||||
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