-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathindex.jsp
More file actions
132 lines (129 loc) · 5.52 KB
/
index.jsp
File metadata and controls
132 lines (129 loc) · 5.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%
/*
* ELB checks your application's health by periodically
* sending an HTTP HEAD request to a resource in your application. By
* default, this is the root or default resource in your application,
* but can be configured for each environment.
*
* Here, we report success as long as the app server is up, but skip
* generating the whole page since this is a HEAD request only. You
* can employ more sophisticated health checks in your application.
*/
if (request.getMethod().equals("HEAD")) return;
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Bespoke Suits for Dogs! (A sample app for CodeDeploy)</title>
<meta name="viewport" content="initial-scale=1.0">
<link rel='stylesheet' href='webjars/bootstrap/3.2.0/css/bootstrap.min.css'>
<link rel='stylesheet' href='webjars/bootstrap/3.2.0/css/bootstrap-theme.min.css'>
<link rel='stylesheet' href='css/theme.css'>
</head>
<body role="document">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Bespoke Suits for Dogs</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
</ul>
</div>
</div>
</nav>
<% if (!((String) request.getAttribute("deploymentGroupName")).contains("Production")) { %>
<div class="alert alert-info" role="alert">
<p><strong>AWS CodeDeploy Application:</strong> ${applicationName}</p>
<p><strong>AWS CodeDeploy Deployment Group:</strong> ${deploymentGroupName}</p>
<strong>Amazon EC2 Instances associated with this fleet:</strong>
<ul>
<% for (final String instance : (List<String>) request.getAttribute("instanceIds")) { %>
<% if (((Map<String, String>) request.getAttribute("instanceStates")).containsKey(instance)) { %>
<li> <%= instance %> - Instance Health: <%= ((Map<String, String>) request.getAttribute("instanceStates")).get(instance) %></li>
<% } else { %>
<li> <%= instance %> - Instance Health: Unknown</li>
<% } %>
<% } %>
</ul>
</div>
<% } %>
<div class="container theme-showcase" role="main">
<% if (((String) request.getAttribute("deploymentGroupName")).contains("app-name-ProdEnv")) { %>
<div class="alert alert-dismissible alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<h1>Grand Opening!</h1>
<p>To celebrate our grand opening, this week only all suits are <b>25% off</b> and include <b>free shipping!</b></p>
<div class="row">
<h2><center>Transform your dog from silly to stylish!</center></h2>
<div class="col-sm-4">
<center><img src="images/sales-lobsterdog.png" style="width:287px;height:360px;"></center>
</div>
<div class="col-sm-4" style="font-size: 300px">
<center>→</center>
</div>
<div class="col-sm-4">
<center><img src="images/classy-dog1.png" style="width:268px;height:360px;"><center>
</div>
</div>
</div>
<% } %>
<div class="jumbotron">
<h1>Bespoke Suits for Dogs</h1>
<p><i>Why can't your canine companion be classy too?</i></p>
</div>
<div class="page-header">
<h1>Our Products</h1>
</div>
<div class="row">
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Enjoy a Night on the Town</h3>
</div>
<div class="panel-body">
Meeting your special someone? Make sure your dog looks the part!
<img src="images/casual-dog2.png" style="width:236px;height:295px;">
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Great for Family Photos</h3>
</div>
<div class="panel-body">
With suits these fashionable, no one will question why your pet is there!
<img src="images/fancy-dog3.png" style="width:295px;height:433px;">
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Free alterations</h3>
</div>
<div class="panel-body">
Don't let this happen to your pooch!
Every purchase comes with free custom alterations to ensure a comfortable and snazzy fit.
<img src="images/alterations-dog4.png" style="width:287px;height:300px;">
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="webjars/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="webjars/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</html>