Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
ee475c27
提交
ee475c27
编辑于
2 years ago
作者:
Andrew Fontaine
浏览文件
操作
下载
差异文件
Merge branch 'nl-labels-row-alignment' into 'master'
Labels page UI cleanup See merge request gitlab-org/gitlab!95327
上级
20482887
59daf641
No related branches found
No related tags found
无相关合并请求
变更
3
隐藏空白变更内容
行内
左右并排
显示
3 个更改的文件
app/views/projects/labels/index.html.haml
+3
-3
3 个添加, 3 个删除
app/views/projects/labels/index.html.haml
app/views/shared/_label_row.html.haml
+2
-2
2 个添加, 2 个删除
app/views/shared/_label_row.html.haml
locale/gitlab.pot
+4
-4
4 个添加, 4 个删除
locale/gitlab.pot
有
9 个添加
和
9 个删除
app/views/projects/labels/index.html.haml
+
3
−
3
浏览文件 @
ee475c27
...
...
@@ -11,14 +11,14 @@
.labels-container.gl-mt-5
-
if
can_admin_label
&&
search
.
blank?
%p
.text-muted
=
_
(
'Labels can be applied to issues and merge requests.'
)
%br
=
_
(
'Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging.'
)
=
_
(
'Labels can be applied to issues and merge requests. Star a label to make it a priority label.'
)
-# Only show it in the first page
-
hide
=
@available_labels
.
empty?
||
(
params
[
:page
].
present?
&&
params
[
:page
]
!=
'1'
)
.prioritized-labels.gl-mb-7
{
class:
[(
'hide'
if
hide
),
(
'is-not-draggable'
unless
can_admin_label
)]
}
%h4
.gl-mt-3
=
_
(
'Prioritized Labels'
)
%p
.text-muted
=
_
(
'Drag to reorder prioritized labels and change their relative priority.'
)
.manage-labels-list.js-prioritized-labels
{
data:
{
url:
set_priorities_project_labels_path
(
@project
),
sortable:
can_admin_label
}
}
#js-priority-labels-empty-state
.priority-labels-empty-state
{
class:
"#{'hidden' unless @prioritized_labels.empty? && search.blank?}"
}
=
render
'shared/empty_states/priority_labels'
...
...
此差异已折叠。
点击以展开。
app/views/shared/_label_row.html.haml
+
2
−
2
浏览文件 @
ee475c27
...
...
@@ -3,11 +3,11 @@
-
show_label_issues_link
=
subject_or_group_defined
&&
show_label_issuables_link?
(
label
,
:issues
)
-
show_label_merge_requests_link
=
subject_or_group_defined
&&
show_label_issuables_link?
(
label
,
:merge_requests
)
.label-name.gl-flex-shrink-0.gl-mt-2.gl-mr-
3
.label-name.gl-flex-shrink-0.gl-mt-2.gl-mr-
5
=
render_label
(
label
,
tooltip:
false
)
.label-description.gl-overflow-hidden.gl-w-full
.gl-display-flex.gl-align-items-stretch.gl-flex-wrap.gl-mt-2
.gl-flex-basis-half.gl-flex-grow-1.gl-overflow-hidden.gl-mr-
2
.gl-flex-basis-half.gl-flex-grow-1.gl-overflow-hidden.gl-mr-
5
-
if
label
.
description
.
present?
=
markdown_field
(
label
,
:description
)
-
elsif
show_labels_full_path?
(
@project
,
@group
)
...
...
此差异已折叠。
点击以展开。
locale/gitlab.pot
+
4
−
4
浏览文件 @
ee475c27
...
...
@@ -13929,6 +13929,9 @@ msgstr ""
msgid "Draft: %{filename}"
msgstr ""
msgid "Drag to reorder prioritized labels and change their relative priority."
msgstr ""
msgid "Drag your designs here or %{linkStart}click to upload%{linkEnd}."
msgstr ""
...
...
@@ -22949,7 +22952,7 @@ msgstr ""
msgid "Labels can be applied to issues and merge requests to categorize them."
msgstr ""
msgid "Labels can be applied to issues and merge requests."
msgid "Labels can be applied to issues and merge requests.
Star a label to make it a priority label.
"
msgstr ""
msgid "Labels with no issues in this iteration:"
...
...
@@ -37306,9 +37309,6 @@ msgstr ""
msgid "Standard"
msgstr ""
msgid "Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging."
msgstr ""
msgid "Star labels to start sorting by priority"
msgstr ""
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录