|
|
|
@ -2,27 +2,36 @@
|
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<%= form_tag(:controller => 'projects', :action => 'search', :method => :get) do %>
|
|
|
|
|
<div class="project-search-block">
|
|
|
|
|
<table width="100%" valign="center">
|
|
|
|
|
<!-- modified by huang -->
|
|
|
|
|
<div class="top-content">
|
|
|
|
|
<%= form_tag(:controller => 'projects', :action => 'search', :method => :get) do %>
|
|
|
|
|
<table width="940px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="16%"><span style="margin-left:0px"><%= l(:label_new_course)%></span></td>
|
|
|
|
|
<td valign="center">
|
|
|
|
|
<% if User.current.logged?%>
|
|
|
|
|
<td class="info_font" style="width: 220px; color: #15bccf""><%= l(:label_course_practice) %></td>
|
|
|
|
|
<td class="location-list"><strong><%= l(:label_user_location) %> :</strong></td>
|
|
|
|
|
<td rowspan="2">
|
|
|
|
|
<% if User.current.logged?%>
|
|
|
|
|
<% if User.current.user_extensions.identity == 0 %>
|
|
|
|
|
<%= link_to(l(:label_course_new), {:controller => 'projects', :action => 'new', :course => 1, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<td align="right">
|
|
|
|
|
<div class="project-search">
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
</div></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
<td rowspan="2" >
|
|
|
|
|
<div class="project-search" style="float: right">
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 30 %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
|
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding-left: 8px"><a><%= link_to "forge.trustie.net/projects", :controller => 'projects', :action => 'course', :project_type => 1 %> </a></td>
|
|
|
|
|
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_course_practice), :controller => 'projects', :action => 'course', :project_type => 1 %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
<%= sort_course(@s_type, @project_type)%>
|
|
|
|
|
<!-- <div class="pagination_list">
|
|
|
|
|