Show More
@@ -827,10 +827,10 b' def person_by_id(id_, show_attr="usernam' | |||
|
827 | 827 | return id_ |
|
828 | 828 | |
|
829 | 829 | |
|
830 | def gravatar_with_user(author): | |
|
830 | def gravatar_with_user(author, show_disabled=False): | |
|
831 | 831 | from rhodecode.lib.utils import PartialRenderer |
|
832 | 832 | _render = PartialRenderer('base/base.html') |
|
833 | return _render('gravatar_with_user', author) | |
|
833 | return _render('gravatar_with_user', author, show_disabled=show_disabled) | |
|
834 | 834 | |
|
835 | 835 | |
|
836 | 836 | def desc_stylize(value): |
@@ -134,10 +134,10 b'' | |||
|
134 | 134 | </%def> |
|
135 | 135 | |
|
136 | 136 | |
|
137 | <%def name="gravatar_with_user(contact, size=16)"> | |
|
137 | <%def name="gravatar_with_user(contact, size=16, show_disabled=False)"> | |
|
138 | 138 | <div class="rc-user tooltip" title="${contact}"> |
|
139 | 139 | ${self.gravatar(h.email_or_none(contact), size)} |
|
140 | <span class="user"> ${h.link_to_user(contact)}</span> | |
|
140 | <span class="${'user user-disabled' if show_disabled else 'user'}"> ${h.link_to_user(contact)}</span> | |
|
141 | 141 | </div> |
|
142 | 142 | </%def> |
|
143 | 143 |
General Comments 0
You need to be logged in to leave comments.
Login now