Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | [# arg0: The UserView to display. |
| 2 | arg1: "Yes" to show a shortened reason as visible text on the page. |
| 3 | ] |
| 4 | <div class="userlink_avail" title="[arg0.display_name][if-any arg0.avail_message]: |
| 5 | [arg0.avail_message][end]"> |
| 6 | [if-any arg0.avail_message] |
| 7 | <span class="availability_[arg0.avail_state]">█</span> |
| 8 | [end] |
| 9 | [if-any arg0.profile_url] |
| 10 | <a href="[arg0.profile_url]">[arg0.display_name]</a>[else]<a>[arg0.display_name]</a>[end] |
| 11 | </div> |
| 12 | [is arg1 "Yes"] |
| 13 | [if-any arg0.avail_message] |
| 14 | <div class="availability_[arg0.avail_state]" title="[arg0.display_name]: |
| 15 | [arg0.avail_message]" |
| 16 | >[arg0.avail_message_short]</div> |
| 17 | [end] |
| 18 | [end] |