summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-11-13 12:34:14 +0100
committerJoas Schilling <coding@schilljs.com>2019-11-13 12:34:14 +0100
commita649f269daae784a3a69aa5c353551baad528dc6 (patch)
tree284ada54dba78794f4e79e141dc8f8cea095ed7b /templates
parent20c3e907127df8460ef9646655faeb86d738bf0f (diff)
Use the same template for both cases
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/index-public.php34
-rw-r--r--templates/index.php5
2 files changed, 3 insertions, 36 deletions
diff --git a/templates/index-public.php b/templates/index-public.php
deleted file mode 100644
index 3b05e4958..000000000
--- a/templates/index-public.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-/** @var \OCP\IL10N $l */
-/** @var array $_ */
-
-style('spreed', 'merged');
-script('spreed', 'merged-guest');
-?>
-
-<div id="app" class="nc-enable-screensharing-extension" data-token="<?php p($_['token']) ?>">
- <script type="text/json" id="signaling-settings">
- <?php echo json_encode($_['signaling-settings']) ?>
- </script>
-</div>
-
-<div id="app-content" class="participants-1">
-
- <div id="app-content-wrapper">
- <button id="video-fullscreen" class="icon-fullscreen force-icon-white-in-call icon-shadow public" data-placement="bottom" data-toggle="tooltip" data-original-title="<?php p($l->t('Fullscreen (f)')) ?>"></button>
-
- <div id="videos"></div>
-
- <div id="screens"></div>
-
- <div id="emptycontent">
- <div id="emptycontent-icon" class="icon-talk"></div>
- <h2><?php p($l->t('Join a conversation or start a new one')) ?></h2>
- <p class="emptycontent-additional"><?php p($l->t('Say hi to your friends and colleagues!')) ?></p>
- <div id="shareRoomContainer" class="" style="display: inline-flex">
- <input id="shareRoomInput" class="share-room-input hidden" readonly="readonly" type="text"/>
- <div id="shareRoomClipboardButton" class="shareRoomClipboard icon-clippy hidden" data-clipboard-target="#shareRoomInput"></div>
- </div>
- </div>
- </div>
-</div>
diff --git a/templates/index.php b/templates/index.php
index 969e0afef..71082f06c 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -5,5 +5,6 @@
script('spreed', 'talk');
style('spreed', 'merged');
-\OC::$server->getEventDispatcher()->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');
-?> \ No newline at end of file
+if ($_['user_uid'] !== '') {
+ \OC::$server->getEventDispatcher()->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');
+}