-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into aws-eb-test
- Loading branch information
Showing
35 changed files
with
334 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<% if programme_type.activity_type_todos.none? %> | ||
<%= render IconComponent.new(name: 'people-group') %> <%= t('programme_types.intention.adults') %> | ||
<% elsif programme_type.intervention_type_todos.none? %> | ||
<%= render IconComponent.new(name: 'book-open-reader') %> <%= t('programme_types.intention.pupils') %> | ||
<% else %> | ||
<%= render IconComponent.new(name: 'school') %> <%= t('programme_types.intention.all') %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<% programme = programme_type.programme_for_school(current_user_school) if current_user_school %> | ||
|
||
<div class="row mt-4"> | ||
<div class="col-sm-2"> | ||
<%= link_to programme_type_path(programme_type) do %> | ||
<%= render 'programme_types/image', programme_type: programme_type, css_class: 'activity-card-img' %> | ||
<% end %> | ||
</div> | ||
<div class="col-sm-8"> | ||
<h4><strong> | ||
<%= link_to programme_type.title, programme_type_path(programme_type), style: 'text-decoration: none;' %> | ||
</strong></h4> | ||
<% if programme&.completed? %> | ||
<p> | ||
<span class="h4 check"> | ||
<%= fa_icon('flag-checkered text-success') %> | ||
</span> | ||
<%= t('programme_types.cards.you_have_already_completed_this_programme') %> | ||
</p> | ||
<% elsif programme&.started? %> | ||
<p> | ||
<span class="h4 check"> | ||
<%= far_icon('check-circle text-success') %> | ||
</span> | ||
<%= t('programme_types.cards.you_have_already_started_this_programme') %> | ||
</p> | ||
<% end %> | ||
<p> | ||
<%= programme_type.short_description %> | ||
</p> | ||
<p> | ||
<%= render 'intention', programme_type: %> | ||
</p> | ||
<p><%= t('programme_types.cards.bonus_points_html', | ||
bonus_score: tag.span(programme_type.bonus_score, class: 'badge badge-success')) %></p> | ||
</div> | ||
<div class="col-sm-2 align-self-center"> | ||
<% if programme&.started? %> | ||
<%= link_to t('programme_types.cards.continue'), programme_type_path(programme_type), | ||
class: 'btn btn-primary btn-lg' %> | ||
<% else %> | ||
<%= link_to t('programme_types.cards.view'), programme_type_path(programme_type), class: 'btn btn-primary btn-lg' %> | ||
<% end %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<% if programme_types&.any? && programme_types.count >= 4 %> | ||
<div class="row mt-3 bg-light"> | ||
<div class="col"> | ||
<div class="d-flex justify-content-between align-items-center"> | ||
<h4><%= t('activity_categories.our_programmes.title') %></h4> | ||
<div> | ||
<%= link_to t('activity_categories.view_all_programmes'), programme_types_path, | ||
class: 'btn btn-default' %> | ||
</div> | ||
</div> | ||
<% if Flipper.enabled?(:todos, current_user) %> | ||
<p><%= t('activity_categories.our_programmes.introduction') %></p> | ||
<% else %> | ||
<p><%= t('activity_categories.our_programmes.introduction_activities') %></p> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<div class="card-deck justify-content-center bg-light pb-4 activities-deck" id="programme-types"> | ||
<% programme_types.first(4).each do |programme_type| %> | ||
<div class="card col-sm-3"> | ||
<%= link_to programme_type_path(programme_type) do %> | ||
<%= render 'programme_types/image', programme_type: programme_type, css_class: '' %> | ||
<% end %> | ||
<div class="card-body"> | ||
<p class="card-text"> | ||
<%= programme_type.title %> | ||
</p> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> |
Oops, something went wrong.