summaryrefslogtreecommitdiff
path: root/app/views/groups/issues.html.haml
blob: 735d939069979f04e7a0179e47989de6630d6068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- page_title "Issues"
- group_issues_exists = group_issues(@group).exists?
= render "head_issues"
= content_for :meta_tags do
  = auto_discovery_link_tag(:atom, params.merge(rss_url_options), title: "#{@group.name} issues")

- if show_new_nav? && group_issues_exists
  - content_for :breadcrumbs_extra do
    = link_to params.merge(rss_url_options), class: 'btn btn-default append-right-10' do
      = icon('rss')
    = render 'shared/new_project_item_select', path: 'issues/new', label: "New issue"

- if group_issues_exists
  .top-area
    = render 'shared/issuable/nav', type: :issues
    .nav-controls{ class: ("visible-xs" if show_new_nav?) }
      = link_to params.merge(rss_url_options), class: 'btn' do
        = icon('rss')
        %span.icon-label
          Subscribe
      = render 'shared/new_project_item_select', path: 'issues/new', label: "New issue"

  = render 'shared/issuable/filter', type: :issues

  .row-content-block.second-block
    Only issues from the
    %strong= @group.name
    group are listed here.
    - if current_user
      To see all issues you should visit #{link_to 'dashboard', issues_dashboard_path} page.

  = render 'shared/issues'
- else
  = render 'shared/empty_states/issues', project_select_button: true