Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

templates: Merge core of home.html into index.html.

Tim Abbottc02e87254573
diff --git a/templates/zerver/app/home.html b/templates/zerver/app/home.html
index e24f39cac35..20403cf8e23 100644
--- a/templates/zerver/app/home.html
+++ b/templates/zerver/app/home.html
@@ -1,11 +1,3 @@
-{# Home tab of the app, containing messages. #}
-<div class="top-messages-logo">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
- <circle cx="386.56" cy="386.56" r="386.56"/>
- <path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
- </svg>
-</div>
-<div id="loading_older_messages_indicator"></div>
<div class="history-limited-box">
<p>
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>
@@ -27,7 +19,6 @@
{% endtrans %}
</p>
</div>
-<div id="page_loading_indicator"></div>
<div id="empty_narrow_message" class="empty_feed_notice">
<h4>{{ _("Nothing's been sent here yet!") }}</h4>
@@ -135,18 +126,3 @@
<h4>{{ _('No search results') }}</h4>
<p><span id="empty_search_stop_words_string" class="empty_search_text"></span></p>
</div>
-<div class="message_table focused_table" id="zhome" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
-</div>
-<div class="message_table" id="zfilt" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
-</div>
-<div id="typing_notifications">
-</div>
-<div id="bottom_whitespace">
- <div class="bottom-messages-logo">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
- <circle cx="386.56" cy="386.56" r="386.56"/>
- <path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
- </svg>
- </div>
- <div id="loading_newer_messages_indicator"></div>
-</div>
diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html
index ab1fa1acb70..b6423aea5f2 100644
--- a/templates/zerver/app/index.html
+++ b/templates/zerver/app/index.html
@@ -153,7 +153,30 @@
</div>
</div>
<div class="message_area_padder message_list" id="main_div">
+ <div class="top-messages-logo">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
+ <circle cx="386.56" cy="386.56" r="386.56"/>
+ <path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
+ </svg>
+ </div>
+ <div id="loading_older_messages_indicator"></div>
+ <div id="page_loading_indicator"></div>
{% include "zerver/app/home.html" %}
+ <div class="message_table focused_table" id="zhome" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
+ </div>
+ <div class="message_table" id="zfilt" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
+ </div>
+ <div id="typing_notifications">
+ </div>
+ <div id="bottom_whitespace">
+ <div class="bottom-messages-logo">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 773.12 773.12">
+ <circle cx="386.56" cy="386.56" r="386.56"/>
+ <path d="M566.66 527.25c0 33.03-24.23 60.05-53.84 60.05H260.29c-29.61 0-53.84-27.02-53.84-60.05 0-20.22 9.09-38.2 22.93-49.09l134.37-120c2.5-2.14 5.74 1.31 3.94 4.19l-49.29 98.69c-1.38 2.76.41 6.16 3.25 6.16h191.18c29.61 0 53.83 27.03 53.83 60.05zm0-281.39c0 20.22-9.09 38.2-22.93 49.09l-134.37 120c-2.5 2.14-5.74-1.31-3.94-4.19l49.29-98.69c1.38-2.76-.41-6.16-3.25-6.16H260.29c-29.61 0-53.84-27.02-53.84-60.05s24.23-60.05 53.84-60.05h252.54c29.61 0 53.83 27.02 53.83 60.05z"/>
+ </svg>
+ </div>
+ <div id="loading_newer_messages_indicator"></div>
+ </div>
</div>
</div>
<div id="compose" {% if embedded %}data-embedded{% endif %}>