Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
70606bf0
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
70606bf0
编写于
6月 21, 2016
作者:
K
Kamil Trzcinski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Show proper image ID on registry page
上级
44b8b77e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
23 addition
and
5 deletion
+23
-5
CHANGELOG
CHANGELOG
+1
-0
app/views/projects/container_registry/_tag.html.haml
app/views/projects/container_registry/_tag.html.haml
+3
-3
lib/container_registry/tag.rb
lib/container_registry/tag.rb
+1
-0
spec/features/container_registry_spec.rb
spec/features/container_registry_spec.rb
+2
-1
spec/fixtures/container_registry/tag_manifest.json
spec/fixtures/container_registry/tag_manifest.json
+16
-1
未找到文件。
CHANGELOG
浏览文件 @
70606bf0
...
@@ -19,6 +19,7 @@ v 8.9.0 (unreleased)
...
@@ -19,6 +19,7 @@ v 8.9.0 (unreleased)
- Don't show 'Leave Project' to group members
- Don't show 'Leave Project' to group members
- Fix wiki page events' webhook to point to the wiki repository
- Fix wiki page events' webhook to point to the wiki repository
- Don't show tags for revert and cherry-pick operations
- Don't show tags for revert and cherry-pick operations
- Show image ID on registry page
- Fix issue todo not remove when leave project !4150 (Long Nguyen)
- Fix issue todo not remove when leave project !4150 (Long Nguyen)
- Allow customisable text on the 'nearly there' page after a user signs up
- Allow customisable text on the 'nearly there' page after a user signs up
- Bump recaptcha gem to 3.0.0 to remove deprecated stoken support
- Bump recaptcha gem to 3.0.0 to remove deprecated stoken support
...
...
app/views/projects/container_registry/_tag.html.haml
浏览文件 @
70606bf0
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
=
escape_once
(
tag
.
name
)
=
escape_once
(
tag
.
name
)
=
clipboard_button
(
clipboard_text:
"docker pull
#{
tag
.
path
}
"
)
=
clipboard_button
(
clipboard_text:
"docker pull
#{
tag
.
path
}
"
)
%td
%td
-
if
layer
=
tag
.
layers
.
first
-
if
tag
.
revision
%span
.has-tooltip
{
title:
"#{
layer
.revision}"
}
%span
.has-tooltip
{
title:
"#{
tag
.revision}"
}
=
layer
.
short_revision
=
tag
.
short_revision
-
else
-
else
\-
\-
%td
%td
...
...
lib/container_registry/tag.rb
浏览文件 @
70606bf0
...
@@ -3,6 +3,7 @@ module ContainerRegistry
...
@@ -3,6 +3,7 @@ module ContainerRegistry
attr_reader
:repository
,
:name
attr_reader
:repository
,
:name
delegate
:registry
,
:client
,
to: :repository
delegate
:registry
,
:client
,
to: :repository
delegate
:revision
,
:short_revision
,
to: :config_blob
,
allow_nil:
true
def
initialize
(
repository
,
name
)
def
initialize
(
repository
,
name
)
@repository
,
@name
=
repository
,
name
@repository
,
@name
=
repository
,
name
...
...
spec/features/container_registry_spec.rb
浏览文件 @
70606bf0
...
@@ -26,7 +26,8 @@ describe "Container Registry" do
...
@@ -26,7 +26,8 @@ describe "Container Registry" do
end
end
context
'when there are tags'
do
context
'when there are tags'
do
it
{
expect
(
page
).
to
have_content
(
tag_name
)}
it
{
expect
(
page
).
to
have_content
(
tag_name
)
}
it
{
expect
(
page
).
to
have_content
(
'd7a513a66'
)
}
end
end
end
end
...
...
spec/fixtures/container_registry/tag_manifest.json
浏览文件 @
70606bf0
{
"schemaVersion"
:
2
,
"mediaType"
:
"application/vnd.docker.distribution.manifest.v2+json"
,
"config"
:{
"mediaType"
:
"application/octet-stream"
,
"size"
:
1145
,
"digest"
:
"sha256:d7a513a663c1a6dcdba9ed832ca53c02ac2af0c333322cd6ca92936d1d9917ac"
},
"layers"
:[{
"mediaType"
:
"application/vnd.docker.image.rootfs.diff.tar.gzip"
,
"size"
:
2319870
,
"digest"
:
"sha256:420890c9e918b6668faaedd9000e220190f2493b0693ee563ebd7b4cc754a57d"
}]}
{
"schemaVersion"
:
2
,
"mediaType"
:
"application/vnd.docker.distribution.manifest.v2+json"
,
"config"
:
{
"mediaType"
:
"application/octet-stream"
,
"size"
:
1145
,
"digest"
:
"sha256:d7a513a663c1a6dcdba9ed832ca53c02ac2af0c333322cd6ca92936d1d9917ac"
},
"layers"
:
[
{
"mediaType"
:
"application/vnd.docker.image.rootfs.diff.tar.gzip"
,
"size"
:
2319870
,
"digest"
:
"sha256:420890c9e918b6668faaedd9000e220190f2493b0693ee563ebd7b4cc754a57d"
}
]
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录