Skip to content

Commit

Permalink
Merge pull request #272 from razeware/WEB-6747
Browse files Browse the repository at this point in the history
WEB-6747: Bringing preview up to brand
  • Loading branch information
jellodiil authored Aug 14, 2024
2 parents 71eb3e6 + 818121c commit 0bf38d1
Show file tree
Hide file tree
Showing 29 changed files with 1,492 additions and 599 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions app/server/public/images/svg-icons/change.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/server/public/images/svg-icons/checkmark-completed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/server/public/images/svg-icons/chevron-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/server/public/images/svg-icons/clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/server/public/images/svg-icons/colour-split-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/server/public/images/svg-icons/layers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/server/public/images/svg-icons/line-graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions app/server/public/images/svg-icons/logotype-orange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions app/server/public/images/svg-icons/symbol-orange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions app/server/robles_content_module_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ def text_path(lesson, segment)
"/texts/#{lesson.slug}/#{segment.slug}"
end

def segment_path(lesson, segment)
if segment.is_a?(Video)
transcript_path(lesson, segment)
elsif segment.is_a?(Assessment)
assessment_path(lesson, segment)
elsif segment.is_a?(Text)
text_path(lesson, segment)
end
end

def class_for_domain(course)
if course.domains.count > 1
'multi-domain'
Expand Down
18 changes: 18 additions & 0 deletions app/server/views/content_modules/_header.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<header id="global-header" class="global-header" role="banner">
<div class="header-container">

<div class="header-left">
<div class="header-logo">
<a href="/">
<svg><use xlink:href="#kodeco-orange"/></svg>
</a>
</div>
<div class="page-name">
<h4>robles: preview</h4>
</div>
</div>
<div class="header-center">
<span><%= content_module.shortcode %>:&nbsp;</span><span><%= content_module.title %>.</span>
</div>
</div>
</header>
Loading

0 comments on commit 0bf38d1

Please sign in to comment.