This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a namespace is assigned a new team, an activity is created. Resolves #877 Signed-off-by: Thomas Hipp <[email protected]>
- Loading branch information
Thomas Hipp
committed
May 30, 2016
1 parent
3b0365e
commit bee1502
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
= CSV.generate_line(['namespace', activity.trackable.name, 'change team', '-', activity.owner.username, activity.created_at, "owned by team #{activity.trackable.team.name}"]) |
17 changes: 17 additions & 0 deletions
17
app/views/public_activity/namespace/_change_team.html.slim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
li | ||
.activitie-container | ||
.activity-type.change-team | ||
i.fa.fa-arrow-right | ||
.user-image | ||
= user_image_tag(activity.owner.email) | ||
.description | ||
h6 | ||
strong | ||
= "#{activity.owner.username} moved the " | ||
= link_to activity.trackable.name , activity.trackable | ||
= " namespace to the " | ||
= link_to activity.trackable.team.name, activity.trackable.team | ||
= " team" | ||
small | ||
i.fa.fa-clock-o | ||
= activity_time_tag activity.created_at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters