summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_nav.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/issuable/_nav.html.haml')
-rw-r--r--app/views/shared/issuable/_nav.html.haml14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/shared/issuable/_nav.html.haml b/app/views/shared/issuable/_nav.html.haml
index a6970b7eebb..1d0b00bacb7 100644
--- a/app/views/shared/issuable/_nav.html.haml
+++ b/app/views/shared/issuable/_nav.html.haml
@@ -1,25 +1,25 @@
%ul.nav-links.issues-state-filters
- if defined?(type) && type == :merge_requests
- - page_context_word = 'merge requests'
+ - page_context_word = '合并请求'
- else
- - page_context_word = 'issues'
+ - page_context_word = '问题'
%li{class: ("active" if params[:state] == 'opened')}
- = link_to page_filter_path(state: 'opened'), title: "Filter by #{page_context_word} that are currently opened." do
+ = link_to page_filter_path(state: 'opened'), title: "只显示当前未关闭的#{page_context_word}。" do
#{state_filters_text_for(:opened, @project)}
- if defined?(type) && type == :merge_requests
%li{class: ("active" if params[:state] == 'merged')}
- = link_to page_filter_path(state: 'merged'), title: 'Filter by merge requests that are currently merged.' do
+ = link_to page_filter_path(state: 'merged'), title: '只显示当前已合并的合并请求。' do
#{state_filters_text_for(:merged, @project)}
%li{class: ("active" if params[:state] == 'closed')}
- = link_to page_filter_path(state: 'closed'), title: 'Filter by merge requests that are currently closed and unmerged.' do
+ = link_to page_filter_path(state: 'closed'), title: '只显示当前已关闭、未合并的合并请求。' do
#{state_filters_text_for(:closed, @project)}
- else
%li{class: ("active" if params[:state] == 'closed')}
- = link_to page_filter_path(state: 'closed'), title: 'Filter by issues that are currently closed.' do
+ = link_to page_filter_path(state: 'closed'), title: '只显示当前已关闭的问题。' do
#{state_filters_text_for(:closed, @project)}
%li{class: ("active" if params[:state] == 'all')}
- = link_to page_filter_path(state: 'all'), title: "Show all #{page_context_word}." do
+ = link_to page_filter_path(state: 'all'), title: "显示全部#{page_context_word}。" do
#{state_filters_text_for(:all, @project)}