Finalize milestones for Merge Requests
This commit is contained in:
parent
d4e070cfad
commit
f417a265d7
9 changed files with 57 additions and 25 deletions
11
app/decorators/user_decorator.rb
Normal file
11
app/decorators/user_decorator.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class UserDecorator < ApplicationDecorator
|
||||
decorates :user
|
||||
|
||||
def avatar_image size = 16
|
||||
h.image_tag h.gravatar_icon(self.email, size), class: "avatar #{"s#{size}"}", width: size
|
||||
end
|
||||
|
||||
def tm_of(project)
|
||||
project.team_member_by_id(self.id)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue