debian-mirror-gitlab/app/views/shared/issuable/_nav.html.haml

26 lines
1.4 KiB
Text
Raw Normal View History

2016-04-02 18:10:28 +05:30
%ul.nav-links.issues-state-filters
- if defined?(type) && type == :merge_requests
- page_context_word = 'merge requests'
- else
- page_context_word = 'issues'
%li{class: ("active" if params[:state] == 'opened')}
2016-06-02 11:05:42 +05:30
= link_to page_filter_path(state: 'opened', label: true), title: "Filter by #{page_context_word} that are currently opened." do
2016-04-02 18:10:28 +05:30
#{state_filters_text_for(:opened, @project)}
- if defined?(type) && type == :merge_requests
%li{class: ("active" if params[:state] == 'merged')}
2016-06-02 11:05:42 +05:30
= link_to page_filter_path(state: 'merged', label: true), title: 'Filter by merge requests that are currently merged.' do
2016-04-02 18:10:28 +05:30
#{state_filters_text_for(:merged, @project)}
%li{class: ("active" if params[:state] == 'closed')}
2016-06-02 11:05:42 +05:30
= link_to page_filter_path(state: 'closed', label: true), title: 'Filter by merge requests that are currently closed and unmerged.' do
2016-04-02 18:10:28 +05:30
#{state_filters_text_for(:closed, @project)}
- else
%li{class: ("active" if params[:state] == 'closed')}
2016-06-02 11:05:42 +05:30
= link_to page_filter_path(state: 'closed', label: true), title: 'Filter by issues that are currently closed.' do
2016-04-02 18:10:28 +05:30
#{state_filters_text_for(:closed, @project)}
%li{class: ("active" if params[:state] == 'all')}
2016-06-02 11:05:42 +05:30
= link_to page_filter_path(state: 'all', label: true), title: "Show all #{page_context_word}." do
2016-04-02 18:10:28 +05:30
#{state_filters_text_for(:all, @project)}