publiccode.si/layouts/partials/modals.html

54 lines
2.6 KiB
HTML
Raw Normal View History

2017-03-20 13:37:30 +01:00
{{ "<!-- resources Modals -->" | safeHTML }}
{{ range .Site.Data.resources }}
<div class="resources-modal modal fade" id="resourcesModal{{ .modalID }}" tabindex="-1" role="dialog" aria-hidden="true">
2017-03-16 00:00:56 +01:00
<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 }}
2017-03-20 13:37:30 +01:00
<img src="img/resources/{{ .img }}" class="img-responsive img-centered" alt="">
2017-03-16 00:00:56 +01:00
{{ with .description }}
<p>{{ . | markdownify }}</p>
{{ end }}
{{ if or .client .date .category }}
<ul class="list-inline item-details">
{{ if .client }}
2017-03-20 13:37:30 +01:00
<li>{{ with $.Site.Params.resources.modal.client }}{{.}}: {{ end }}
2017-03-16 00:00:56 +01:00
<strong><a href="{{ with .clientLink }}{{ . }}{{ else }}#{{ end }}">{{ .client }}</a></strong>
</li>
{{ end }}
{{ if .date }}
2017-03-20 13:37:30 +01:00
<li>{{ with $.Site.Params.resources.modal.date }}{{.}}: {{ end }}
2017-03-16 00:00:56 +01:00
<strong><a href="#">{{ .date }}</a></strong>
</li>
{{ end }}
{{ if .category }}
2017-03-20 13:37:30 +01:00
<li>{{ with $.Site.Params.resources.modal.category }}{{.}}: {{ end }}
2017-03-16 00:00:56 +01:00
<strong><a href="#">{{ .category }}</a></strong>
</li>
{{ end }}
</ul>
{{ end }}
2017-03-20 13:37:30 +01:00
{{ with $.Site.Params.resources.modal.buttonText }}
2017-03-16 00:00:56 +01:00
<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 }}