Only show the stage controls if the lesson is not complete
git-svn-id: http://webgoat.googlecode.com/svn/trunk@167 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
parent
d889f6e535
commit
26ed31df68
@ -200,6 +200,8 @@ StringBuffer buildList = new StringBuffer();
|
||||
</div>
|
||||
<%
|
||||
AbstractLesson al = webSession.getCurrentLesson();
|
||||
if (!al.isCompleted(webSession))
|
||||
{
|
||||
if (al instanceof SequentialLessonAdapter)
|
||||
{
|
||||
SequentialLessonAdapter sla = (SequentialLessonAdapter) al;
|
||||
@ -232,6 +234,7 @@ StringBuffer buildList = new StringBuffer();
|
||||
%></select></form><%
|
||||
}
|
||||
}
|
||||
}
|
||||
%>
|
||||
<div id="lessonContent"><%=webSession.getInstructions()%></div>
|
||||
<div id="message" class="info"><%=webSession.getMessage()%></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user