mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Indicate clickability on labels
(imported from commit cc3c48879d50c0808d465492c20a887bef408a91)
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
<p>
|
||||
|
||||
{% if zephyr.recipient.type == 'class' %}
|
||||
<span onclick="narrow('{{ zephyr.display_recipient }}', '{{ zephyr.id }}')" class="label zephyr_class">{{ zephyr.display_recipient }}</span>
|
||||
<span onclick="narrow_instance('{{ zephyr.display_recipient }}', '{{ zephyr.instance }}', '{{ zephyr.id }}')" class="label zephyr_instance">{{ zephyr.instance }}</span>
|
||||
<span onclick="narrow('{{ zephyr.display_recipient }}', '{{ zephyr.id }}')" class="label zephyr_label_clickable zephyr_class">{{ zephyr.display_recipient }}</span>
|
||||
<span onclick="narrow_instance('{{ zephyr.display_recipient }}', '{{ zephyr.instance }}', '{{ zephyr.id }}')" class="label zephyr_label_clickable zephyr_instance">{{ zephyr.instance }}</span>
|
||||
{% else %}
|
||||
<span onclick="narrow_personals('{{ zephyr.id }}')" class="label zephyr_personal_recipient">{{ zephyr.display_recipient }}</span>
|
||||
<span onclick="narrow_personals('{{ zephyr.id }}')" class="label zephyr_label_clickable zephyr_personal_recipient">{{ zephyr.display_recipient }}</span>
|
||||
←
|
||||
{% endif %}
|
||||
|
||||
<span onclick="prepare_personal('{{ zephyr.sender.user.username }}')" class="label zephyr_sender">{{ zephyr.sender.user.username }}</span><br />
|
||||
<span onclick="prepare_personal('{{ zephyr.sender.user.username }}')" class="label zephyr_label_clickable zephyr_sender">{{ zephyr.sender.user.username }}</span><br />
|
||||
{{ zephyr.content|linebreaksbr }}
|
||||
</p></td>
|
||||
</tr>
|
||||
|
||||
@@ -202,16 +202,16 @@ function add_message(index, zephyr) {
|
||||
"<td class='zephyr'><p>";
|
||||
if (zephyr.type == "class") {
|
||||
new_str += "<span onclick=\"narrow('" + zephyr.display_recipient + "','" + zephyr.id
|
||||
+ "')\" class='label zephyr_class'>" + zephyr.display_recipient + "</span> "
|
||||
+ "')\" class='label zephyr_label_clickable zephyr_class'>" + zephyr.display_recipient + "</span> "
|
||||
+ "<span onclick=\"narrow_instance('" + zephyr.display_recipient + "','" +
|
||||
zephyr.instance + "','" + zephyr.id + "')\" class='label zephyr_instance'>" +
|
||||
zephyr.instance + "','" + zephyr.id + "')\" class='label zephyr_label_clickable zephyr_instance'>" +
|
||||
zephyr.instance + "</span> ";
|
||||
} else {
|
||||
new_str += "<span onclick=\"narrow_personals('" + zephyr.id + "')\" class='label zephyr_personal_recipient'>" +
|
||||
new_str += "<span onclick=\"narrow_personals('" + zephyr.id + "')\" class='label zephyr_label_clickable zephyr_personal_recipient'>" +
|
||||
zephyr.display_recipient + "</span>"
|
||||
+ " ← ";
|
||||
}
|
||||
new_str += "<span onclick=\"prepare_personal('" + zephyr.sender + "')\" class='label zephyr_sender'>"
|
||||
new_str += "<span onclick=\"prepare_personal('" + zephyr.sender + "')\" class='label zephyr_label_clickable zephyr_sender'>"
|
||||
+ zephyr.sender + "</span><br />"
|
||||
+ newline2br(zephyr.content) +
|
||||
"</p></td>" +
|
||||
|
||||
@@ -29,6 +29,17 @@ form.zephyr textarea {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.zephyr_label_clickable:hover {
|
||||
background-color: #999999;
|
||||
cursor: pointer;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.zephyr_class {
|
||||
background-color: #b94a48;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user