From a010c800d6b610892c085005a80fb6f2301e73ea Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 13 Mar 2015 15:37:54 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=BA=93=E4=B8=BA=E7=A9=BA=E6=83=85=E5=86=B5=E4=B8=8B403?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=A0=B7=E5=BC=8F=20=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E5=8F=91=E9=80=81=E5=9B=BD=E9=99=85=E5=8C=96=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=B0=8F=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_projects.html.erb | 12 +++++------- config/locales/zh.yml | 2 +- public/images/jiantou1.jpg | Bin 0 -> 1308 bytes public/stylesheets/application.css | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 public/images/jiantou1.jpg diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 23f0be5e6..8a731668c 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -101,8 +101,8 @@
-
- <%= link_to @project.name, project_path(@project) %> +
+ <%= link_to @project.name, project_path(@project), :style => "color:#3E4040"%> <% if !@project.is_public? %> <%= l(:label_private)%> <% end %> @@ -177,12 +177,10 @@ <% end %>
<% end%> - <% unless @project.enabled_modules.where("name = 'repository'").empty? %> + <% unless @project.enabled_modules.where("name = 'repository'").empty? || @project.repositories.count == 0 %> - <% end %> - <% else %> - -     - <%= l(:label_tags_no) %> - + <% end %> <% end %> <% end %> \ No newline at end of file From cc5a22f2c6cb3055c25dbad548d11cad95a583e7 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 13 Mar 2015 16:16:38 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_projects.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 8a731668c..3098a5cda 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -151,7 +151,7 @@ (<%= @project.issues.count %>) <% end %> <% if User.current.member_of?(@project) %> - <%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %> + <%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:16px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %> <% end %>
<% end %> @@ -162,7 +162,7 @@ (<%= @project.boards.first.topics.count %>) <% end %> <% if User.current.member_of?(@project) %> - <%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %> + <%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:0px 3px 3px 3px;height:16px;margin-top:5px;background:#28be6c;float:right;line-height:20px;" %> <% end %> <% end%> @@ -173,7 +173,7 @@ (<%= @project.attachments.count %>) <% end %> <% if User.current.member_of?(@project) %> - <%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %> + <%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:16px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %> <% end %> <% end%>