Skip to content

Commit

Permalink
fixed missing images in procompiled version refs #18534
Browse files Browse the repository at this point in the history
  • Loading branch information
pwpuzzeld committed Jul 18, 2016
1 parent 1158e21 commit 20eba02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/modules/team_members.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ class app.TeamMembers
toggle_members()
load_members()

$(document).on 'click', '.members li #remove_member', (e) ->
$(document).on 'click', '.members li .remove_member', (e) ->
delete_member(e)

new TeamMembers

4 changes: 2 additions & 2 deletions app/assets/javascripts/templates/team_member_entry.hbs.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<li data-value='{"user_id": {{user_id}} }'>
{{label}}
{{#if admin}}
<img src="/assets/penguin.svg" id="penguin" alt="Remove"/>
<%= image_tag("penguin.svg", class: "admin", alt:"Admin" ) %>
{{/if}}

{{#if deletable}}
<a href="#">
<img src="/assets/remove.svg" id="remove_member" alt="Remove"/>
<%= image_tag("remove.svg", class: "remove_member", alt:"Remove" ) %>
</a>
{{/if}}
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/teammember.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
float: right;
}

li #penguin{
li .admin{
float: right;
}

0 comments on commit 20eba02

Please sign in to comment.