diff options
author | winniehell <git@winniehell.de> | 2016-07-24 07:32:47 +0200 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-07-30 00:28:09 +0200 |
commit | a54419f01f6cad33138e3d4ed049741699251f85 (patch) | |
tree | e35ee6a66130150447a247ca8750aa47cc74ee3f /app | |
parent | 6ad514d0663bad80e24586be0919a580cdaab8d2 (diff) | |
download | gitlab-ce-a54419f01f6cad33138e3d4ed049741699251f85.tar.gz |
Make "New issue" button in Issue page less obtrusive (!5457)
Diffstat (limited to 'app')
-rw-r--r-- | app/views/help/ui.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/issues/show.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/help/ui.html.haml b/app/views/help/ui.html.haml index 431d312b4ca..85e188d6f8b 100644 --- a/app/views/help/ui.html.haml +++ b/app/views/help/ui.html.haml @@ -189,7 +189,7 @@ %li %a Sort by date - = link_to 'New issue', '#', class: 'btn btn-new' + = link_to 'New issue', '#', class: 'btn btn-new btn-inverted' .lead Only nav links without button and search diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index 9b6a97c0959..e5cce16a171 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -38,7 +38,7 @@ %li = link_to 'Edit', edit_namespace_project_issue_path(@project.namespace, @project, @issue) - if can?(current_user, :create_issue, @project) - = link_to new_namespace_project_issue_path(@project.namespace, @project), class: 'hidden-xs hidden-sm btn btn-grouped new-issue-link btn-success', title: 'New issue', id: 'new_issue_link' do + = link_to new_namespace_project_issue_path(@project.namespace, @project), class: 'hidden-xs hidden-sm btn btn-grouped new-issue-link btn-new btn-inverted', title: 'New issue', id: 'new_issue_link' do New issue - if can?(current_user, :update_issue, @issue) = link_to 'Reopen issue', issue_path(@issue, issue: { state_event: :reopen }, status_only: true, format: 'json'), data: {no_turbolink: true}, class: "hidden-xs hidden-sm btn btn-grouped btn-reopen #{issue_button_visibility(@issue, false)}", title: 'Reopen issue' |