publiccode.si/site/layouts/partials/modals.html

55 lines
2.6 KiB
HTML

{{ "<!-- RESOURCES MODALS -->" | safeHTML }}
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ range $data.resources }}
<div class="resources-modal modal fade" id="resourcesModal{{ .modalID }}" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-content">
<div class="close-modal" data-dismiss="modal">
<div class="lr">
<div class="rl">
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="modal-body">
{{ with .title }}
<h2>{{ . }}</h2>
{{ end }}
{{ if and .title .description }}
<hr class="star-primary">
{{ end }}
<img src="img/resources/{{ .img }}" class="img-responsive img-centered" alt="">
{{ with .description }}
<p>{{ . | markdownify }}</p>
{{ end }}
{{ if or .client .date .category }}
<ul class="list-inline item-details">
{{ if .client }}
<li>{{ with $.Site.Params.resources.modal.client }}{{.}}: {{ end }}
<strong><a href="{{ with .clientLink }}{{ . }}{{ else }}#{{ end }}">{{ .client }}</a></strong>
</li>
{{ end }}
{{ if .date }}
<li>{{ with $.Site.Params.resources.modal.date }}{{.}}: {{ end }}
<strong><a href="#">{{ .date }}</a></strong>
</li>
{{ end }}
{{ if .category }}
<li>{{ with $.Site.Params.resources.modal.category }}{{.}}: {{ end }}
<strong><a href="#">{{ .category }}</a></strong>
</li>
{{ end }}
</ul>
{{ end }}
{{ with $.Site.Params.resources.modal.buttonText }}
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i>{{.}}</button>
{{ end }}
</div>
</div>
</div>
</div>
</div>
</div>
{{ end }}