Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always show module sidebar link #471

Merged
merged 5 commits into from
Apr 23, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/profile/_data.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="col-12 mb-3">
<div class="mb-3">
<%= t('profile.data_explanation') %>
</div>
<div class="col-12 text-center">
<div>
<%= link_to t('profile.data_request'),
request_data_path,
class: 'btn btn-sm btn-primary',
Expand Down
7 changes: 7 additions & 0 deletions app/views/profile/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,10 @@
<%= render partial: 'shared/generic_modal',
locals: { sort: 'deleteAccount',
title: t('profile.delete_account') } %>

<div>
<%= link_to :root, class: "btn btn-sm btn-primary" do %>
<span class="bi bi-arrow-left">
<%= t('back_to_home') %>
<% end %>
</div>
1 change: 0 additions & 1 deletion app/views/shared/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
<% path = display_course_path(lecture) %>
<% active_class = get_class_for_path(path) %>
<li class="sidebar-item nav-link <%= active_class %>
Splines marked this conversation as resolved.
Show resolved Hide resolved
<%= !lecture.announcements.exists? ? "disabled" : ""%>">
<a href="<%= url_for(path)%>">
<i class="bi bi-hexagon<%= active_class.present? ? "-fill" : "" %>"></i>
<%= t('categories.course') %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2103,6 +2103,7 @@ de:
details: 'Details'
none: 'keine'
back: 'Zurück'
back_to_home: 'Zurück zur Startseite'
today: 'heute'
yesterday: 'gestern'
chapter: 'Kapitel %{number}. %{title}'
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1977,6 +1977,7 @@ en:
details: 'Details'
none: 'none'
back: 'Back'
back_to_home: 'Back to home'
today: 'today'
yesterday: 'yesterday'
chapter: 'Chapter %{number}. %{title}'
Expand Down