summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <theephil@gmail.com>2015-03-27 07:06:38 +0000
committerPhil Hughes <theephil@gmail.com>2015-03-27 07:06:38 +0000
commit79bd8ca9895e030b20bbb7756e1583486c908386 (patch)
tree13665bde08f174051a07a51db6ac774b25ca4a69 /app
parent91b108192c84178ec100ece41f159b68738f1a32 (diff)
downloadgitlab-ce-79bd8ca9895e030b20bbb7756e1583486c908386.tar.gz
Changed button type
Diffstat (limited to 'app')
-rw-r--r--app/helpers/projects_helper.rb2
-rw-r--r--app/views/projects/_home_panel.html.haml4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index f535b01b2ec..3199ff3b99a 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -81,7 +81,7 @@ module ProjectsHelper
end
def link_to_toggle_star(title, starred, signed_in)
- cls = 'star-btn btn btn-primary'
+ cls = 'star-btn btn btn-default'
cls << ' disabled' unless signed_in
toggle_html = content_tag('span', class: 'toggle') do
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index 3bb70458b16..599afe6e779 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -28,10 +28,10 @@
.fork-buttons
- if current_user && can?(current_user, :fork_project, @project) && @project.namespace != current_user.namespace
- if current_user.already_forked?(@project) && current_user.manageable_namespaces.size < 2
- = link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: 'Go to your fork', class: 'btn btn-primary' do
+ = link_to namespace_project_path(current_user, current_user.fork_of(@project)), title: 'Go to your fork', class: 'btn btn-default' do
= link_to_toggle_fork
- else
- = link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork project", class: 'btn btn-primary' do
+ = link_to new_namespace_project_fork_path(@project.namespace, @project), title: "Fork project", class: 'btn btn-default' do
= link_to_toggle_fork
- unless @project.empty_repo?
- if can? current_user, :download_code, @project