Skip to content

Commit

Permalink
Merge pull request #5400 from dodona-edu/feat/improve-onboarding
Browse files Browse the repository at this point in the history
Create card with a link to our documentation to help teachers get started
  • Loading branch information
jorg-vr authored Feb 28, 2024
2 parents 683c5a6 + 3d71d0a commit 782f5e8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@
--bs-danger-rgb: var(--d-danger-rgb);
--bs-light: $neutral-90;
--bs-dark: $neutral-25;
--bs-secondary-text-emphasis: var(--d-on-secondary-container);
--bs-secondary-bg-subtle: var(--d-secondary-container);

// not overwritten
// --bs-primary-text-emphasis: #052c65;
// --bs-secondary-text-emphasis: #2b2f32;
// --bs-success-text-emphasis: #0a3622;
// --bs-info-text-emphasis: #055160;
// --bs-warning-text-emphasis: #664d03;
Expand Down
13 changes: 13 additions & 0 deletions app/views/pages/_teacher_intro_card.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="alert alert-secondary">
<h2 class="card-title-text mb-3">
<%= t ".title" %>
</h2>
<% if current_user.student? %>
<p>
<%= t ".rights_request_html" %>
</p>
<% end %>
<p>
<%= t ".documentation_html" %>
</p>
</div>
3 changes: 3 additions & 0 deletions app/views/pages/home.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
<div class="col-12 col-md-6 col-lg-4">
<div class="row">
<div class="col-12">
<% if current_user.administrating_courses.empty? && (current_user.staff? || current_user.institution&.users&.count == 1) %>
<%= render partial: 'teacher_intro_card' %>
<% end %>
<%= render "user_card" %>
<% if current_user.pending_courses.any? %>
<%= render "pending_courses_card" %>
Expand Down
5 changes: 5 additions & 0 deletions config/locales/views/pages/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,8 @@ en:
supported_by: Supported by
supported_p1_html: "Dodona is run by a small team of researchers at <a href='https://www.ugent.be/en' target='_blank'>Ghent University</a>. The platform is open source and all code is available on <a href='https://github.com/dodona-edu/dodona' target='_blank'>GitHub</a>. The hosting is provided by Ghent University. In addition, Dodona is supported by educational innovation projects from Ghent University and the Faculty of Sciences. <a href='https://www.elixir-belgium.org/' target='_blank'>ELIXIR Belgium</a> also provides some funding."
support_button: Make a donation
teacher_intro_card:
title: Start your own course today!
rights_request_html: "<a href='/en/rights_requests/new/'>Request teacher rights</a> to be able to create your own courses."
documentation_html: "Get detailed guidance on launching your own courses with Dodona by visiting <a href='https://docs.dodona.be/en/guides/teachers/getting-started/' target='_blank'>our documentation</a>."

4 changes: 4 additions & 0 deletions config/locales/views/pages/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,7 @@ nl:
supported_by: Met de steun van
supported_p1_html: "Dodona wordt ontwikkeld door een klein team onderzoekers aan de <a href='https://www.ugent.be' target='_blank'>Universiteit Gent</a>. Het platform is volledig open source en alle code is beschikbaar op <a href='https://github.com/dodona-edu/dodona' target='_blank'>GitHub</a>. De hosting wordt aangeboden door de Universiteit Gent. Daarnaast ontving Dodona al steun in de vorm van onderwijsinnovatieprojecten van de Universiteit Gent en de Faculteit Wetenschappen. Ook <a href='https://www.elixir-belgium.org/' target='_blank'>ELIXIR Belgium</a> ondersteunde dit project."
support_button: Doe een gift
teacher_intro_card:
title: Maak je eigen cursus aan!
rights_request_html: "Wist je dat je je eigen cursussen op Dodona kunt maken? <a href='/nl/rights_requests/new/'>Vraag lesgeversrechten aan</a> om van start te gaan."
documentation_html: "Ontdek hoe je eigen cursus op Dodona kunt starten met hulp van <a href='https://docs.dodona.be/nl/guides/teachers/getting-started/' target='_blank'>onze documentatie</a>."

0 comments on commit 782f5e8

Please sign in to comment.