Commit 98b7717df7e455b745c47582dcd5718f2ab904a2
1 parent
568ce1ed
Exists in
master
and in
4 other branches
Remove user decorator
Showing
8 changed files
with
10 additions
and
32 deletions
Show diff stats
app/assets/stylesheets/common.scss
| ... | ... | @@ -111,22 +111,10 @@ span.update-author { |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | .label { |
| 114 | - padding: 0px 4px; | |
| 115 | - font-size: 10px; | |
| 114 | + padding: 1px 4px; | |
| 115 | + font-size: 12px; | |
| 116 | 116 | font-style: normal; |
| 117 | - background-color: $link_color; | |
| 118 | - | |
| 119 | - &.label-success { | |
| 120 | - background-color: #8D8; | |
| 121 | - color: #333; | |
| 122 | - text-shadow: 0 1px 1px white; | |
| 123 | - } | |
| 124 | - | |
| 125 | - &.label-error { | |
| 126 | - background-color: #D88; | |
| 127 | - color: #333; | |
| 128 | - text-shadow: 0 1px 1px white; | |
| 129 | - } | |
| 117 | + font-weight: normal; | |
| 130 | 118 | } |
| 131 | 119 | |
| 132 | 120 | form { | ... | ... |
app/controllers/admin/teams/members_controller.rb
app/controllers/milestones_controller.rb
| ... | ... | @@ -32,7 +32,7 @@ class MilestonesController < ProjectResourceController |
| 32 | 32 | |
| 33 | 33 | def show |
| 34 | 34 | @issues = @milestone.issues |
| 35 | - @users = UserDecorator.decorate_collection(@milestone.participants) | |
| 35 | + @users = @milestone.participants | |
| 36 | 36 | @merge_requests = @milestone.merge_requests |
| 37 | 37 | |
| 38 | 38 | respond_to do |format| | ... | ... |
app/controllers/teams/members_controller.rb
app/decorators/user_decorator.rb
| ... | ... | @@ -1,11 +0,0 @@ |
| 1 | -class UserDecorator < ApplicationDecorator | |
| 2 | - decorates :user | |
| 3 | - | |
| 4 | - def avatar_image size = 16 | |
| 5 | - h.image_tag h.gravatar_icon(self.email, size), class: "avatar #{"s#{size}"}", width: size | |
| 6 | - end | |
| 7 | - | |
| 8 | - def tm_of(project) | |
| 9 | - project.team_member_by_id(self.id) | |
| 10 | - end | |
| 11 | -end |
app/models/user.rb
app/views/issues/_issue.html.haml