Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
7759049b
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,发现更多精彩内容 >>
提交
7759049b
编写于
4月 07, 2017
作者:
A
Annabel Dunstone Gray
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'activity-feed-user-name' into 'master'
Put back usernames in activity and profile feed See merge request !10539
上级
33a050d3
667fa9af
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
4 deletion
+8
-4
app/views/events/event/_common.html.haml
app/views/events/event/_common.html.haml
+1
-0
app/views/events/event/_created_project.html.haml
app/views/events/event/_created_project.html.haml
+1
-0
app/views/events/event/_note.html.haml
app/views/events/event/_note.html.haml
+1
-0
app/views/events/event/_push.html.haml
app/views/events/event/_push.html.haml
+1
-0
features/steps/shared/project.rb
features/steps/shared/project.rb
+1
-1
spec/features/dashboard/project_member_activity_index_spec.rb
.../features/dashboard/project_member_activity_index_spec.rb
+3
-3
未找到文件。
app/views/events/event/_common.html.haml
浏览文件 @
7759049b
...
...
@@ -10,6 +10,7 @@
=
custom_icon
(
"icon_code_fork"
)
.event-title
%span
.author_name
=
link_to_author
event
%span
{
class:
event
.
action_name
}
-
if
event
.
target
=
event
.
action_name
...
...
app/views/events/event/_created_project.html.haml
浏览文件 @
7759049b
...
...
@@ -2,6 +2,7 @@
=
custom_icon
(
"icon_status_open"
)
.event-title
%span
.author_name
=
link_to_author
event
%span
{
class:
event
.
action_name
}
=
event_action_name
(
event
)
...
...
app/views/events/event/_note.html.haml
浏览文件 @
7759049b
...
...
@@ -2,6 +2,7 @@
=
custom_icon
(
"icon_comment_o"
)
.event-title
%span
.author_name
=
link_to_author
event
=
event
.
action_name
=
event_note_title_html
(
event
)
...
...
app/views/events/event/_push.html.haml
浏览文件 @
7759049b
...
...
@@ -7,6 +7,7 @@
=
custom_icon
(
"icon_commit"
)
.event-title
%span
.author_name
=
link_to_author
event
%span
.pushed
#{
event
.
action_name
}
#{
event
.
ref_type
}
%strong
-
commits_link
=
namespace_project_commits_path
(
project
.
namespace
,
project
,
event
.
ref_name
)
...
...
features/steps/shared/project.rb
浏览文件 @
7759049b
...
...
@@ -97,7 +97,7 @@ module SharedProject
step
'I should see project "Shop" activity feed'
do
project
=
Project
.
find_by
(
name:
"Shop"
)
expect
(
page
).
to
have_content
"pushed new branch fix at
#{
project
.
name_with_namespace
}
"
expect
(
page
).
to
have_content
"
#{
@user
.
name
}
pushed new branch fix at
#{
project
.
name_with_namespace
}
"
end
step
'I should see project settings'
do
...
...
spec/features/dashboard/project_member_activity_index_spec.rb
浏览文件 @
7759049b
...
...
@@ -21,20 +21,20 @@ feature 'Project member activity', feature: true, js: true do
context
'when a user joins the project'
do
before
{
visit_activities_and_wait_with_event
(
Event
::
JOINED
)
}
it
{
is_expected
.
to
eq
(
"joined project"
)
}
it
{
is_expected
.
to
eq
(
"
#{
user
.
name
}
joined project"
)
}
end
context
'when a user leaves the project'
do
before
{
visit_activities_and_wait_with_event
(
Event
::
LEFT
)
}
it
{
is_expected
.
to
eq
(
"left project"
)
}
it
{
is_expected
.
to
eq
(
"
#{
user
.
name
}
left project"
)
}
end
context
'when a users membership expires for the project'
do
before
{
visit_activities_and_wait_with_event
(
Event
::
EXPIRED
)
}
it
"presents the correct message"
do
message
=
"removed due to membership expiration from project"
message
=
"
#{
user
.
name
}
removed due to membership expiration from project"
is_expected
.
to
eq
(
message
)
end
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录