[FE training-materials-updates] Fix removal of session specific slides

Michael Opdenacker michael.opdenacker at free-electrons.com
Fri Dec 12 18:55:18 CET 2014


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=5e0eeb84c7a2bc28f131b0eadbdb65fa27ddb3a1

>---------------------------------------------------------------

commit 5e0eeb84c7a2bc28f131b0eadbdb65fa27ddb3a1
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Fri Dec 12 18:53:11 2014 +0100

    Fix removal of session specific slides
    
    - Was broken
    - Instead of testing the emptiness of a \sessionurl macro,
      now testing \trainer, which is effectively empty when
      generating materials for the website.
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


>---------------------------------------------------------------

5e0eeb84c7a2bc28f131b0eadbdb65fa27ddb3a1
 slides/about-us/about-us.tex         | 4 +++-
 slides/first-slides/first-slides.tex | 4 +++-
 slides/last-slides/last-slides.tex   | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/slides/about-us/about-us.tex b/slides/about-us/about-us.tex
index 956a8f3..0315418 100644
--- a/slides/about-us/about-us.tex
+++ b/slides/about-us/about-us.tex
@@ -38,7 +38,9 @@
   \end{itemize}
 \end{frame}
 
-\ifdefempty{\sessionurl}{}{
+%% If the materials a generated for a real session, not for the website
+
+\ifdefempty{\trainer}{}{
 \begin{frame}
   \frametitle{Mailing lists for session participants}
   If you participated to a course taught by Free Electrons,
diff --git a/slides/first-slides/first-slides.tex b/slides/first-slides/first-slides.tex
index 217452a..98d7648 100644
--- a/slides/first-slides/first-slides.tex
+++ b/slides/first-slides/first-slides.tex
@@ -32,7 +32,9 @@
     \normalsize
 \end{frame}
 
-\ifdefempty{\sessionurl}{}{
+%% If the materials a generated for a real session, not for the website
+
+\ifdefempty{\trainer}{}{
   \begin{frame}
   \frametitle{Electronic copies of these documents}
      \begin{itemize}
diff --git a/slides/last-slides/last-slides.tex b/slides/last-slides/last-slides.tex
index 2f02c07..86aee7c 100644
--- a/slides/last-slides/last-slides.tex
+++ b/slides/last-slides/last-slides.tex
@@ -1,6 +1,8 @@
 \section{Last slides}
 
-\ifdefempty{\sessionurl}{}{
+%% If the materials a generated for a real session, not for the website
+
+\ifdefempty{\trainer}{}{
 \begin{frame}
   \frametitle{Evaluation form}
   Please take a few minutes to rate this training session,



More information about the training-materials-updates mailing list