From 8043c527ceebcdd86b75c63eb95b324ca033d6da Mon Sep 17 00:00:00 2001 From: yanxd Date: Mon, 16 Dec 2013 14:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE-=E8=AE=BE=E7=BD=AE-=E9=97=AE?= =?UTF-8?q?=E9=A2=98-=E5=B1=85=E4=B8=AD;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/_issue_categories.html.erb | 58 +++++++++---------- public/stylesheets/nyan.css | 3 + 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/app/views/projects/settings/_issue_categories.html.erb b/app/views/projects/settings/_issue_categories.html.erb index e88a85d50..316f28eb4 100644 --- a/app/views/projects/settings/_issue_categories.html.erb +++ b/app/views/projects/settings/_issue_categories.html.erb @@ -1,29 +1,29 @@ -<% if @project.issue_categories.any? %> - - - - - - - -<% for category in @project.issue_categories %> - <% unless category.new_record? %> - - - - - - <% end %> -<% end %> - -
<%= l(:label_issue_category) %><%= l(:field_assigned_to) %>
<%=h(category.name) %><%=h(category.assigned_to.name) if category.assigned_to %> - <% if User.current.allowed_to?(:manage_categories, @project) %> - <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %> - <%= delete_link issue_category_path(category) %> - <% end %> -
-<% else %> -

<%= l(:label_no_data) %>

-<% end %> - -

<%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %>

+<% if @project.issue_categories.any? %> + + + + + + + +<% for category in @project.issue_categories %> + <% unless category.new_record? %> + + + + + + <% end %> +<% end %> + +
<%= l(:label_issue_category) %><%= l(:field_assigned_to) %>
<%=h(category.name) %><%=h(category.assigned_to.name) if category.assigned_to %> + <% if User.current.allowed_to?(:manage_categories, @project) %> + <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %> + <%= delete_link issue_category_path(category) %> + <% end %> +
+<% else %> +

<%= l(:label_no_data) %>

+<% end %> + +

<%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %>

diff --git a/public/stylesheets/nyan.css b/public/stylesheets/nyan.css index 703d81c5e..f40c0801d 100644 --- a/public/stylesheets/nyan.css +++ b/public/stylesheets/nyan.css @@ -1,5 +1,8 @@ /* TODO: base/common/page 准备封装一些基本样式组合调用 参考YUI *******************************************************************************/ +.text_center{ + text-align: center; +} /* 按钮 *******************************************************************************/