From 1487ed3e378ab6499fd6be45a91a4e401abc4ac0 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 10 Jun 2013 21:09:52 +0300 Subject: [PATCH] replace font-awesome gem. Use fork icon --- Gemfile | 2 +- Gemfile.lock | 7 +++---- app/views/projects/_clone_panel.html.haml | 5 +++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index e63667e5673..e4206ab3d0d 100644 --- a/Gemfile +++ b/Gemfile @@ -129,7 +129,7 @@ group :assets do gem "modernizr", "2.6.2" gem "raphael-rails", git: "https://github.com/gitlabhq/raphael-rails.git" gem 'bootstrap-sass' - gem "font-awesome-sass-rails", "~> 3.0.0" + gem "font-awesome-rails", "~> 3.1.1" gem "gemoji", "~> 1.2.1", require: 'emoji/railtie' gem "gon" end diff --git a/Gemfile.lock b/Gemfile.lock index 91a08e1cf6b..b986539da1e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -130,9 +130,8 @@ GEM eventmachine (>= 0.12.0) ffaker (1.16.0) ffi (1.8.1) - font-awesome-sass-rails (3.0.2.2) - railties (>= 3.1.1) - sass-rails (>= 3.1.1) + font-awesome-rails (3.1.1.3) + railties (>= 3.2, < 5.0) foreman (0.63.0) dotenv (>= 0.7) thor (>= 0.13.6) @@ -535,7 +534,7 @@ DEPENDENCIES enumerize factory_girl_rails ffaker - font-awesome-sass-rails (~> 3.0.0) + font-awesome-rails (~> 3.1.1) foreman gemoji (~> 1.2.1) github-linguist diff --git a/app/views/projects/_clone_panel.html.haml b/app/views/projects/_clone_panel.html.haml index f8276c3c2b6..ebce06edf74 100644 --- a/app/views/projects/_clone_panel.html.haml +++ b/app/views/projects/_clone_panel.html.haml @@ -7,11 +7,12 @@ - unless @project.empty_repo? - if can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace - if current_user.already_forked?(@project) - = link_to project_path(current_user.fork_of(@project)), class: 'btn grouped btn-primary' do + = link_to project_path(current_user.fork_of(@project)), class: 'btn grouped disabled' do + %i.icon-code-fork Forked - else = link_to fork_project_path(@project), title: "Fork", class: "btn grouped", method: "POST" do - %i.icon-copy + %i.icon-code-fork Fork - if can? current_user, :download_code, @project = link_to archive_project_repository_path(@project), class: "btn grouped" do