mirror of https://github.com/zulip/zulip.git
Disable some buttons in embedded widget.
(imported from commit 7d6d4725b139ea71c579dfd7d19c38d7bb11ee44)
This commit is contained in:
parent
2276c6e524
commit
150ca939b1
|
@ -10,12 +10,14 @@
|
|||
<i class="icon-vector-bullhorn"></i><span class="compose_stream_button_label"> New stream message</span>
|
||||
</button>
|
||||
</span>
|
||||
{%if not embedded %}
|
||||
<span class="new_message_button">
|
||||
<button type="button" class="btn btn-large compose_private_button"
|
||||
id="left_bar_compose_private_button_big" title="New private message (C)">
|
||||
<i class="icon-vector-user"></i><span class="compose_private_button_label"> New private message</span>
|
||||
</button>
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="message_comp compose-content">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
<div class="column-middle" id="navbar-middle">
|
||||
<div class="column-middle-inner">
|
||||
<div id="streamlist-toggle">
|
||||
<div id="streamlist-toggle" {%if embedded %} style="visibility: hidden"{% endif %}>
|
||||
<a href="#" id="streamlist-toggle-button" role="button"><i class="icon-vector-reorder"></i>
|
||||
<span id="streamlist-toggle-unreadcount">0</span>
|
||||
</a>
|
||||
|
@ -26,7 +26,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="column-right">
|
||||
<div id="navbar-buttons">
|
||||
<div id="navbar-buttons" {%if embedded %} style="visibility: hidden"{% endif %}>
|
||||
<ul class="nav" role="navigation">
|
||||
<li class="dropdown actual-dropdown-menu" id="gear-menu">
|
||||
<a id="settings-dropdown" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
|
||||
|
|
|
@ -862,6 +862,7 @@ def home(request):
|
|||
'is_admin': user_profile.is_admin(),
|
||||
'show_webathena': user_profile.realm.domain == "mit.edu",
|
||||
'enable_feedback': settings.ENABLE_FEEDBACK,
|
||||
'embedded': narrow_stream is not None,
|
||||
'show_autoscroll_forever_option': page_params["show_autoscroll_forever_option"]
|
||||
},
|
||||
context_instance=RequestContext(request))
|
||||
|
|
Loading…
Reference in New Issue