From bffc302f5658485fb4da0bf07446e139e34d64fb Mon Sep 17 00:00:00 2001
From: georgeas <george.a.stoica@ntnu.no>
Date: Mon, 31 Aug 2020 12:58:30 +0200
Subject: [PATCH] Add parameters to use in the footer

Presentations including the footer should set the LECTURE_TOPIC
LECTURE_NO attributes so that the proper information is displayed
in the footer area of the presentation.

Example:
:LECTURE_TOPIC: Git demo
:LECTURE_NO: 4th lecture
---
 lectures/revealjs/03-dev-and-scm.adoc  | 2 ++
 lectures/revealjs/includes/footer.adoc | 5 +++--
 lectures/revealjs/scm.adoc             | 2 ++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/lectures/revealjs/03-dev-and-scm.adoc b/lectures/revealjs/03-dev-and-scm.adoc
index ef3efc8..3343562 100644
--- a/lectures/revealjs/03-dev-and-scm.adoc
+++ b/lectures/revealjs/03-dev-and-scm.adoc
@@ -2,6 +2,8 @@
 :customcss: slides.css
 :icons: font
 :includedir: revealjs/includes/
+:LECTURE_TOPIC: Software development
+:LECTURE_NO: 3rd lecture
 
 include::{includedir}header.adoc[]
 
diff --git a/lectures/revealjs/includes/footer.adoc b/lectures/revealjs/includes/footer.adoc
index c05c758..7a5dbce 100644
--- a/lectures/revealjs/includes/footer.adoc
+++ b/lectures/revealjs/includes/footer.adoc
@@ -1,3 +1,4 @@
+[subs="attributes"]
 ++++
  <div id="footer" class="footer">
  	<div style="display:table-row;">
@@ -8,8 +9,8 @@
      				alt="ntnu logo" height="28"/>
      	</a>
      </span>
-     <span class="element" style="width:300px;">| IT1901 </span>
-     <span class="element">| Software Development </span>
+     <span class="element" style="width:300px;">| IT1901 - {LECTURE_NO}</span>
+     	<span class="element">| {LECTURE_TOPIC} </span>
      <span class="element">&nbsp;&nbsp;&nbsp;&nbsp;</span>
   </div>   
  </div>
diff --git a/lectures/revealjs/scm.adoc b/lectures/revealjs/scm.adoc
index aedc8f3..a3c0f19 100644
--- a/lectures/revealjs/scm.adoc
+++ b/lectures/revealjs/scm.adoc
@@ -2,6 +2,8 @@
 :customcss: slides.css
 :icons: font
 :includedir: revealjs/includes/
+:LECTURE_TOPIC: Source Code Management
+:LECTURE_NO: 
 
 include::{includedir}header.adoc[]
 
-- 
GitLab