Skip to content

Commit

Permalink
set inactive user color to gray in task edit view. #issue 349.
Browse files Browse the repository at this point in the history
  • Loading branch information
liufengyun committed Apr 17, 2012
1 parent 37e2b76 commit 475c42e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/task.scss
Expand Up @@ -534,6 +534,10 @@ label .unread_icon {
word-wrap: break-word;
}

#task_sidebar .inactive {
color: gray;
}

#task_addcomment textarea {
width: 99%;
&#task_description {
Expand Down
3 changes: 2 additions & 1 deletion app/views/tasks/_notification.html.erb
Expand Up @@ -23,7 +23,8 @@
<%= content %>
</label>

<% active_class = user.active ? "":"inactive" %>
<%= link_to user.to_html, { :controller => "users", :action => "edit", :id => user},
:class => "username left", :target => "_blank" %>
:class => "username left #{active_class}", :target => "_blank" %>
<%= link_to_function('<i class="icon-remove"></i>'.html_safe, "removeTaskUser(this)", :class => "removeLink") %>
</div>

0 comments on commit 475c42e

Please sign in to comment.