sync: include headline in exercice overview, as it is difficult to retrieve otherwise

This commit is contained in:
nemunaire 2018-12-04 04:11:09 +01:00
parent 99024ee5ce
commit deb12052b5
2 changed files with 5 additions and 7 deletions

View file

@ -61,9 +61,6 @@ func SyncExercices(i Importer, theme fic.Theme) []string {
}
ovrvw := strings.Split(overview, "\n")
headline := ovrvw[0]
if len(ovrvw) > 1 {
overview = strings.Join(ovrvw[1:], "\n")
}
statement, err := getFileContent(i, path.Join(theme.Path, edir, "statement.txt"))
if err != nil {

View file

@ -186,9 +186,10 @@
</ol>
<div class="carousel-inner">
<div class="carousel-item" ng-repeat="theme in themes" ng-class="{active: $first}">
<div class="carousel-caption">
<h3 class="text-left" style="margin: 10px" ng-bind="theme.name"></h3>
<p class="text-justify text-bold" style="padding: 5px 16px; font-size: 111%" ng-bind="theme.intro"></p>
<div class="carousel-caption text-indent">
<h3 class="text-left" ng-bind="theme.name"></h3>
<p class="lead text-justify text-bold" style="font-size: 111%" ng-bind-html="theme.headline"></p>
<p class="text-justify" ng-bind-html="theme.intro"></p>
</div>
</div>
</div>
@ -196,7 +197,7 @@
<div class="carousel slide" data-interval="7000" style="height: 100px" autocarousel ng-if="s.params.kind == 'teams'">
<ol class="carousel-indicators">
<li data-slide-to="{{k}}" ng-repeat="(k, team) in teams" ng-class="{active: $first}"></li>
<li data-slide-to="{{k}}" ng-repeat="(k, team) in teams" ng-class="{active: $first}" ng-if="team.rank"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item" ng-repeat="team in teams" ng-class="{active: $first}" ng-if="team.rank">