debian-mirror-gitlab/app/views/projects/issues/index.html.haml

57 lines
2.5 KiB
Text
Raw Normal View History

- @no_container = true
2016-09-29 09:46:39 +05:30
- @bulk_edit = can?(current_user, :admin_issue, @project)
2015-09-11 14:41:01 +05:30
- page_title "Issues"
2016-09-13 17:45:13 +05:30
- new_issue_email = @project.new_issue_address(current_user)
2016-11-03 12:29:30 +05:30
= content_for :sub_nav do
= render "projects/issues/head"
2015-09-25 12:07:36 +05:30
2015-09-11 14:41:01 +05:30
= content_for :meta_tags do
- if current_user
= auto_discovery_link_tag(:atom, namespace_project_issues_url(@project.namespace, @project, :atom, private_token: current_user.private_token), title: "#{@project.name} issues")
%div{ class: (container_class) }
2016-08-24 12:49:21 +05:30
- if @project.issues.any?
.top-area
= render 'shared/issuable/nav', type: :issues
.nav-controls
- if current_user
= link_to namespace_project_issues_path(@project.namespace, @project, :atom, { private_token: current_user.private_token }), class: 'btn append-right-10' do
= icon('rss')
%span.icon-label
Subscribe
= render 'shared/issuable/search_form', path: namespace_project_issues_path(@project.namespace, @project)
- if can? current_user, :create_issue, @project
2016-09-13 17:45:13 +05:30
= link_to new_namespace_project_issue_path(@project.namespace,
@project,
issue: { assignee_id: issues_finder.assignee.try(:id),
milestone_id: issues_finder.milestones.first.try(:id) }),
class: "btn btn-new",
title: "New Issue",
id: "new_issue_link" do
2016-08-24 12:49:21 +05:30
New Issue
= render 'shared/issuable/filter', type: :issues
.issues-holder
2016-09-13 17:45:13 +05:30
= render 'issues'
- if new_issue_email
= render 'issue_by_email', email: new_issue_email
2016-08-24 12:49:21 +05:30
- else
.blank-state.blank-state-welcome
%h2.blank-state-title.blank-state-welcome-title
Welcome to GitLab Issues
%p.blank-state-text
Code, test, and deploy together
.blank-state
.blank-state-icon
= custom_icon("issues", size: 50)
%h3.blank-state-title
You don't have any issues right now.
%p.blank-state-text
Issues are the best way to track your project progress
- if can? current_user, :create_issue, @project
2016-08-24 12:49:21 +05:30
= link_to new_namespace_project_issue_path(@project.namespace, @project), class: "btn btn-new", title: "New Issue", id: "new_issue_link" do
New Issue
2016-09-13 17:45:13 +05:30
- if new_issue_email
= render 'issue_by_email', email: new_issue_email