Commit 1487ed3e378ab6499fd6be45a91a4e401abc4ac0
1 parent
0afad135
Exists in
master
and in
4 other branches
replace font-awesome gem. Use fork icon
Showing
3 changed files
with
7 additions
and
7 deletions
Show diff stats
Gemfile
| @@ -129,7 +129,7 @@ group :assets do | @@ -129,7 +129,7 @@ group :assets do | ||
| 129 | gem "modernizr", "2.6.2" | 129 | gem "modernizr", "2.6.2" |
| 130 | gem "raphael-rails", git: "https://github.com/gitlabhq/raphael-rails.git" | 130 | gem "raphael-rails", git: "https://github.com/gitlabhq/raphael-rails.git" |
| 131 | gem 'bootstrap-sass' | 131 | gem 'bootstrap-sass' |
| 132 | - gem "font-awesome-sass-rails", "~> 3.0.0" | 132 | + gem "font-awesome-rails", "~> 3.1.1" |
| 133 | gem "gemoji", "~> 1.2.1", require: 'emoji/railtie' | 133 | gem "gemoji", "~> 1.2.1", require: 'emoji/railtie' |
| 134 | gem "gon" | 134 | gem "gon" |
| 135 | end | 135 | end |
Gemfile.lock
| @@ -130,9 +130,8 @@ GEM | @@ -130,9 +130,8 @@ GEM | ||
| 130 | eventmachine (>= 0.12.0) | 130 | eventmachine (>= 0.12.0) |
| 131 | ffaker (1.16.0) | 131 | ffaker (1.16.0) |
| 132 | ffi (1.8.1) | 132 | ffi (1.8.1) |
| 133 | - font-awesome-sass-rails (3.0.2.2) | ||
| 134 | - railties (>= 3.1.1) | ||
| 135 | - sass-rails (>= 3.1.1) | 133 | + font-awesome-rails (3.1.1.3) |
| 134 | + railties (>= 3.2, < 5.0) | ||
| 136 | foreman (0.63.0) | 135 | foreman (0.63.0) |
| 137 | dotenv (>= 0.7) | 136 | dotenv (>= 0.7) |
| 138 | thor (>= 0.13.6) | 137 | thor (>= 0.13.6) |
| @@ -535,7 +534,7 @@ DEPENDENCIES | @@ -535,7 +534,7 @@ DEPENDENCIES | ||
| 535 | enumerize | 534 | enumerize |
| 536 | factory_girl_rails | 535 | factory_girl_rails |
| 537 | ffaker | 536 | ffaker |
| 538 | - font-awesome-sass-rails (~> 3.0.0) | 537 | + font-awesome-rails (~> 3.1.1) |
| 539 | foreman | 538 | foreman |
| 540 | gemoji (~> 1.2.1) | 539 | gemoji (~> 1.2.1) |
| 541 | github-linguist | 540 | github-linguist |
app/views/projects/_clone_panel.html.haml
| @@ -7,11 +7,12 @@ | @@ -7,11 +7,12 @@ | ||
| 7 | - unless @project.empty_repo? | 7 | - unless @project.empty_repo? |
| 8 | - if can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace | 8 | - if can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace |
| 9 | - if current_user.already_forked?(@project) | 9 | - if current_user.already_forked?(@project) |
| 10 | - = link_to project_path(current_user.fork_of(@project)), class: 'btn grouped btn-primary' do | 10 | + = link_to project_path(current_user.fork_of(@project)), class: 'btn grouped disabled' do |
| 11 | + %i.icon-code-fork | ||
| 11 | Forked | 12 | Forked |
| 12 | - else | 13 | - else |
| 13 | = link_to fork_project_path(@project), title: "Fork", class: "btn grouped", method: "POST" do | 14 | = link_to fork_project_path(@project), title: "Fork", class: "btn grouped", method: "POST" do |
| 14 | - %i.icon-copy | 15 | + %i.icon-code-fork |
| 15 | Fork | 16 | Fork |
| 16 | - if can? current_user, :download_code, @project | 17 | - if can? current_user, :download_code, @project |
| 17 | = link_to archive_project_repository_path(@project), class: "btn grouped" do | 18 | = link_to archive_project_repository_path(@project), class: "btn grouped" do |