Skip to content

Instantly share code, notes, and snippets.

@thetutlage
Last active June 9, 2018 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thetutlage/0cdc5cf84d235489568332c3209bf7c6 to your computer and use it in GitHub Desktop.
Save thetutlage/0cdc5cf84d235489568332c3209bf7c6 to your computer and use it in GitHub Desktop.
Html file for adonis antl demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-expand navbar-light bg-light">
<a class="navbar-brand" href="#">AdonisJs</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Switch language
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
@each(locale in locales)
<a class="dropdown-item" href="/switch/{{ locale }}"> {{ locale }} </a>
@endeach
</div>
</li>
</ul>
</div>
</nav>
<div class="jumbotron">
<h1 class="display-4">{{ antl.formatMessage('greetings.greet') }}</h1>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment