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