Skip to content

Commit

Permalink
Update links to use wikiURL and disable new self streaming for lecturers
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobortolan committed Dec 10, 2024
1 parent 243501f commit 5bd0975
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions web/template/admin/admin.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -92,26 +92,28 @@
class="mb-3 lg:mb-3 uppercase tracking-wide font-semibold text-sm lg:text-xs text-2">
Streaming</h5>
<ul>
<!-- Disable new self-streaming for lecturers, until https://github.com/TUM-Dev/gocast/issues/1418 is resolved
<li>
<a class="px-3 py-2 transition-colors duration-200 {{if eq $page "users"}}text-1{{else}}text-5{{end}} relative block"
href="/admin/token"><span
class="rounded-md absolute inset-0 bg-cyan-50 opacity-0"></span><span
class="relative">Token Management</span>
</a>
</li>
-->
<li>
<a class="px-3 py-2 transition-colors duration-200 {{if eq $page "users"}}text-1{{else}}text-5{{end}} relative block"
href="https://docs.tum.live/docs/usage/self-streaming/" target="_blank" rel="noopener noreferrer">
href="{{.IndexData.WikiURL}}/docs/usage/self-streaming/" target="_blank" rel="noopener noreferrer">
<span class="rounded-md absolute inset-0 bg-cyan-50 opacity-0"></span>
<span class="relative">Self-Streaming Guide</span>
<svg class="inline-block ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 9l3 3m0 0l-3 3m3-3H3m18 0a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</a>
</li>
<li>
<a class="px-3 py-2 transition-colors duration-200 {{if eq $page "users"}}text-1{{else}}text-5{{end}} relative block"
href="https://docs.tum.live/" target="_blank" rel="noopener noreferrer">
href="https://github.com/TUM-Dev/gocast/issues/new/choose" target="_blank" rel="noopener noreferrer">
<span class="rounded-md absolute inset-0 bg-cyan-50 opacity-0"></span>
<span class="relative">Need Help?</span>
<span class="relative">Report an issue</span>
<svg class="inline-block ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 9l3 3m0 0l-3 3m3-3H3m18 0a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</a>
</li>
Expand Down Expand Up @@ -240,26 +242,28 @@
class="mb-3 lg:mb-3 uppercase tracking-wide font-semibold text-sm lg:text-xs text-2">
Streaming</h5>
<ul>
<!-- Disable new self-streaming for lecturers, until https://github.com/TUM-Dev/gocast/issues/1418 is resolved
<li>
<a class="px-3 py-2 transition-colors duration-200 {{if eq $page "token"}}text-1{{else}}text-5{{end}} relative block"
href="/admin/token"><span
class="rounded-md absolute inset-0 bg-cyan-50 opacity-0"></span><span
class="relative">Token Management</span>
</a>
</li>
-->
<li>
<a class="px-3 py-2 transition-colors duration-200 text-5 relative block"
href="https://docs.tum.live/docs/usage/self-streaming/" target="_blank" rel="noopener noreferrer">
href="{{.IndexData.WikiURL}}/docs/usage/self-streaming/" target="_blank" rel="noopener noreferrer">
<span class="rounded-md absolute inset-0 bg-cyan-50 opacity-0"></span>
<span class="relative">Self-Streaming Guide</span>
<svg class="inline-block ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 9l3 3m0 0l-3 3m3-3H3m18 0a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</a>
</li>
<li>
<a class="px-3 py-2 transition-colors duration-200 text-5 relative block"
href="https://docs.tum.live/" target="_blank" rel="noopener noreferrer">
href="https://github.com/TUM-Dev/gocast/issues/new/choose" target="_blank" rel="noopener noreferrer">
<span class="rounded-md absolute inset-0 bg-cyan-50 opacity-0"></span>
<span class="relative">Need Help?</span>
<span class="relative">Report an Issue</span>
<svg class="inline-block ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 9l3 3m0 0l-3 3m3-3H3m18 0a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</a>
</li>
Expand Down Expand Up @@ -338,7 +342,7 @@
{{else if and (eq $curUser.Role 1) (eq .Page "courseImport")}}
{{template "course-import" .}}
{{else if and (or (eq $curUser.Role 1) (eq $curUser.Role 2)) (eq .Page "token")}}
{{template "token" dict "Tokens" .Tokens "Role" $curUser.Role}}
{{template "token" dict "Tokens" .Tokens "Role" $curUser.Role "WikiURL" .IndexData.WikiURL}}
{{else if and (eq $curUser.Role 1) (eq .Page "info-pages")}}
{{template "info-pages" .InfoPages}}
{{else if and (eq $curUser.Role 1) (eq .Page "notifications")}}
Expand Down
2 changes: 1 addition & 1 deletion web/template/admin/admin_tabs/token.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<p class="text-sm text-5 px-4">You can start streaming from 15 minutes before the lecture starts and up to 15 minutes after the lecture ends - TUMLive automatically finds the lecture you want to stream.</p>
<p class="text-sm text-5 px-4">To test your setup, you can start streaming while not in a lecture and a private test stream will be created.</p>
</div>
<p class="mt-4 italic">For more information, please refer to the <a href="https://docs.tum.live/docs/beta/usage/self-streaming/" target="_blank" rel="noopener noreferrer" class="text-blue-500 dark:text-blue-400 hover:text-blue-700 underline">self-streaming guide</a>.</p>
<p class="mt-4 italic">For more information, please refer to the <a href="{{.WikiURL}}/docs/beta/usage/self-streaming/" target="_blank" rel="noopener noreferrer" class="text-blue-500 dark:text-blue-400 hover:text-blue-700 underline">self-streaming guide</a>.</p>
</div>
</div>
</form>
Expand Down

0 comments on commit 5bd0975

Please sign in to comment.