2013-10-31 16:52:06 +08:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
|
|
|
<% end %>
|
|
|
|
|
2013-11-08 11:25:33 +08:00
|
|
|
<div class="top-content">
|
|
|
|
<%= form_tag(:controller => 'projects', :action => "search", :method => :get) do %>
|
|
|
|
<table width="940px">
|
2013-10-31 16:52:06 +08:00
|
|
|
<tr>
|
2014-01-13 08:23:35 +08:00
|
|
|
<td class="info_font" style="width: 220px; color: #15bccf"><%= l(:label_project_deposit) %></td>
|
2013-11-08 15:59:08 +08:00
|
|
|
<td class="location-list"><strong><%= l(:label_user_location) %> :</strong></td>
|
2013-11-08 11:25:33 +08:00
|
|
|
<td rowspan="2">
|
|
|
|
<% if User.current.logged? %>
|
2014-04-09 21:44:40 +08:00
|
|
|
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type =>( @project_type||=0)}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
2013-11-08 11:25:33 +08:00
|
|
|
<% 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>
|
2014-02-25 11:27:36 +08:00
|
|
|
<td style="padding-left: 8px"><a><%= link_to request.host()+"/projects", :controller => 'projects', :action => 'index', :project_type => 0 %> </a></td>
|
2013-11-08 11:25:33 +08:00
|
|
|
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_project_deposit), :controller => 'projects', :action => 'index', :project_type => 0 %></td>
|
2013-10-31 16:52:06 +08:00
|
|
|
</tr>
|
2014-03-21 16:49:55 +08:00
|
|
|
</table>
|
2013-11-08 11:25:33 +08:00
|
|
|
<% end %>
|
2014-01-13 08:23:35 +08:00
|
|
|
</div>
|
2013-10-31 16:52:06 +08:00
|
|
|
<%= sort_project(@s_type, @project_type) %>
|
|
|
|
<div id="projects-index">
|
|
|
|
<%= render_project_hierarchy(@projects)%>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
<ul>
|
2014-03-21 16:46:30 +08:00
|
|
|
<%= pagination_links_full @project_pages, @project_count %>
|
2013-10-31 16:52:06 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
<p style="text-align:right;">
|
|
|
|
<span class="my-project"><%= l(:label_my_projects) %></span>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% other_formats_links do |f| %>
|
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
|
|
|
|
<%= form_tag({}, :method => :get) do %>
|
|
|
|
<h3><%= l(:label_project_plural) %></h3>
|
|
|
|
<label for="closed"><%= check_box_tag 'closed', 1, params[:closed] %> <%= l(:label_show_closed_projects) %></label>
|
|
|
|
<p>
|
|
|
|
<%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% html_title(l(:label_project_plural)) -%>
|