From 12090cdd80567477e6a792caef51a208dbe2d402 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Mon, 12 Aug 2013 20:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20project-=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E9=87=8C=E9=9D=A2=E3=80=8B=E3=80=8B=E6=94=B9=E6=88=90=E7=AB=96?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/index.html.erb | 43 +++++++++++++---------------- app/views/projects/show.html.erb | 2 +- public/images/button/bg104.jpg | Bin 16280 -> 16097 bytes public/stylesheets/application.css | 13 +++++++++ 4 files changed, 33 insertions(+), 25 deletions(-) diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index c318b5077..1add4f2b5 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -1,26 +1,23 @@ <% content_for :header_tags do %> -<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> + <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> <% end %> +
+ <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> +
+ <%= form_tag(projects_path, :method => :get) do %>
- - - - - - - -
<%= l(:label_project_plural)%><%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> -
+ <%=l(:label_project_plural)%> + -<%end%> +
+<% end %>
- <%= render_project_hierarchy(@projects)%> +<%= render_project_hierarchy(@projects)%>