ansible-role-default-webpage/templates/index.html.j2

125 lines
4.2 KiB
Django/Jinja

{% raw %}
<!doctype html>
<html lang="en">
<head>
<link rel="shortcut icon" type="image/png" href="favicon.ico" />
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
{% endraw %}
<title>{{ web_page_title }}</title>
{% raw %}
</head>
<body>
<div
class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom box-shadow">
<h5 class="my-0 mr-md-auto font-weight-normal">
<img style="width: 65px;" alt="D4Science" src="images/_d4science.png">D4Science
</h5>
<nav class="my-2 my-md-0 mr-md-3">
<a class="p-2 text-dark" href="#">Don't have a D4Science account?</a>
</nav>
<a class="btn btn-outline-primary"
href="https://services.d4science.org/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=2&saveLastPath=false&_58_struts_action=%2Flogin%2Fcreate_account"
target="_blank">Create one</a>
</div>
{% endraw %}
{% if d4science_running_services is defined %}
{% for ctx in d4science_running_services %}
<div
class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">{{ ctx.desc }}</h1>
<p class="lead">Welcome to the
<a class="text-muted"
href="/{{ ctx.url }}"
target="_blank">{{ ctx.desc }}</a>
service hosted by D4Science.
</p>
</div>
{% endfor %}
{% else %}
{% if smartgears_tomcat_contexts is defined %}
{% for ctx in smartgears_tomcat_contexts %}
<div
class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
<h1 class="display-4">{{ ctx }}</h1>
<p class="lead">Welcome to the
<a class="text-muted"
href="/{{ ctx }}"
target="_blank">{{ ctx }}</a>
service hosted by D4Science.
</p>
</div>
{% endfor %}
{% endif %}
{% endif %}
{% raw %}
<div class="mx-auto text-center">
<p class="lead">
Could not find what you are looking for? Visit the <a
href="https://dev.d4science.org/support" target="_blank">Help
Forum</a> or <a href="https://www.d4science.org/contact-us"
target="_blank">Contact us</a>.
</p>
</div>
<footer class="pt-4 my-md-5 pt-md-5 border-top">
<div class="row">
<div class="col-12 col-md">
<small class="d-block mb-3 text-muted">&nbsp;&copy;
2017-2019</small>
</div>
<div class="col-6 col-md">
<h5>Legal</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted"
href="https://www.iubenda.com/privacy-policy/441050"
target="_blank">Privacy</a></li>
<li><a class="text-muted"
href="https://services.d4science.org/terms-of-use" target="_blank">Terms
of Use</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>About</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted"
href="https://www.d4science.org/about-d4science" target="_blank">What
is D4Science</a></li>
<li><a class="text-muted"
href="https://www.d4science.org/empowering" target="_blank">Supported
Projects</a></li>
<li><a class="text-muted" target="_blank"
href="https://services.d4science.org/explore">Supported VREs</a></li>
<li><a class="text-muted" target="_blank"
href="https://services.d4science.org/catalogue">Resource
Catalouge</a></li>
</ul>
</div>
<div class="col-6 col-md">
<h5>Data Scientists</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="https://dev.d4science.org"
target="_blank">Available REST APIs</a></li>
<li><a class="text-muted"
href="https://dev.d4science.org/authorization/" target="_blank">Authorization
Framework</a></li>
<li><a class="text-muted" href="https://dev.d4science.org/"
target="_blank">Data Analysis through Data Miner</a></li>
<li><a class="text-muted" href="https://dev.d4science.org/"
target="_blank">Spatial Data Infrastructure</a></li>
</ul>
</div>
</div>
</footer>
</body>
</html>
{% endraw %}