BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
025b04f3
Commit
025b04f3
authored
Apr 27, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'add-username-to-activity-feed' into 'master'
Add username to activity atom feed Closes #31268 See merge request !10802
parents
2df748aa
2c358a05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
event.rb
app/models/event.rb
+1
-1
_event.atom.builder
app/views/events/_event.atom.builder
+1
-0
add-username-to-activity-feed.yml
changelogs/unreleased/add-username-to-activity-feed.yml
+4
-0
No files found.
app/models/event.rb
View file @
025b04f3
...
...
@@ -16,7 +16,7 @@ class Event < ActiveRecord::Base
RESET_PROJECT_ACTIVITY_INTERVAL
=
1
.
hour
delegate
:name
,
:email
,
:public_email
,
to: :author
,
prefix:
true
,
allow_nil:
true
delegate
:name
,
:email
,
:public_email
,
:username
,
to: :author
,
prefix:
true
,
allow_nil:
true
delegate
:title
,
to: :issue
,
prefix:
true
,
allow_nil:
true
delegate
:title
,
to: :merge_request
,
prefix:
true
,
allow_nil:
true
delegate
:title
,
to: :note
,
prefix:
true
,
allow_nil:
true
...
...
app/views/events/_event.atom.builder
View file @
025b04f3
...
...
@@ -8,6 +8,7 @@ xml.entry do
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(event.author_email))
xml.author do
xml.username event.author_username
xml.name event.author_name
xml.email event.author_public_email
end
...
...
changelogs/unreleased/add-username-to-activity-feed.yml
0 → 100644
View file @
025b04f3
---
title
:
Add username to activity atom feed
merge_request
:
10802
author
:
winniehell
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment