修改了搜索结果显示

This commit is contained in:
huangjingquan 2013-11-04 21:38:14 +08:00
parent be14669f6b
commit bb994f8b7d
2 changed files with 28 additions and 40 deletions

View File

@ -32,9 +32,9 @@
<td style="width: 350px"><strong>当前单位 : <!-- <%= @course.teacher.user_extensions.occupation %> --></strong></td>
<td rowspan="2" width="350px">
<div class="top-content-search">
<%= form_tag(:controller => 'projects', :action => "search", :method => :get) do %>
<%= form_tag(:controller => 'projects', :action => 'search', :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 30 %>
<%= hidden_field_tag 'project_type', params[:project_type] %>
<%= hidden_field_tag 'project_type', @project.project_type %>
<%= submit_tag l(:label_search), :class => "small", :name => nil %>
<% end %>
</div>

View File

@ -20,46 +20,34 @@
<div id="wrapper">
<div id="wrapper2">
<div id="wrapper3">
<% if session[:enterprise_college] == 2 %>
<%=render :partial => 'layouts/base_enterprise_header'%>
<% elsif session[:enterprise_college] == 1 %>
<%=render :partial => 'layouts/base_college_header'%>
<% else %>
<%=render :partial => 'layouts/base_header'%>
<% end %>
<div id="main">
<!-- added by bai -->
<div class="top-content">
<table><tr><td>
<div class="top-content-home">
<table>
<tr>
<td>创客主页</td>
</tr>
<tr>
<td>forge.trustie.net</td>
</tr>
</table>
</div></td>
<td>
<div class="top-content-location">
<table>
<tr>
<td>当前位置:</td>
</tr>
<tr>
<td><%=link_to l(:label_home),home_path %> > <%=link_to l(:label_project_deposit),:controller => 'projects', :action => 'index' %> > <%=link_to @project,project_path %></td>
</tr>
</table>
</div></td>
<td>
<td class="info_font" style="width: 240px">软件项目托管社区</td>
<td style="width: 350px"><strong>当前位置: </strong></td>
<td rowspan="2" width="350px">
<div class="top-content-search">
</div></td></tr>
<%= form_tag(:controller => 'projects', :action => "search", :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 30 %>
<%= hidden_field_tag 'project_type', params[:project_type] %>
<%= submit_tag l(:label_search), :class => "small", :name => nil %>
<% end %>
</div>
</td>
</tr>
<tr>
<td style="padding-left: 8px"><a>forge.trustie.net/courses</a></td>
<td ><%=link_to l(:label_home),home_path %> > <%=link_to l(:label_project_deposit),:controller => 'projects', :action => 'index' %> > <%=link_to @project,project_path %></td>
</tr>
</table>
</div>
<!-- end -->
<!--project page-->