Repository navigation
Expand file tree
/
Copy pathindex.erb
More file actions
69 lines (64 loc) · 2.57 KB
/
Copy pathindex.erb
File metadata and controls
69 lines (64 loc) · 2.57 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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Stoplight - Monitor Your Builds</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="15" />
<link rel="stylesheet" href="stylesheets/application.css">
<link href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold" rel="stylesheet" type="text/css">
<style type="text/css">
.wrapper {
width: <%= 100.0 / @columns %>%;
height: <%= 100.0 / @rows %>%;
}
</style>
</head>
<body>
<aside id="mini-projects">
<% @projects.each do |project| %>
<a href="<%= project.build_url %>" class="project <%= project.last_build_status %> <%= project.current_status %>" target="_TOP">
<%= project.name %>
<% unless project.last_build_time.nil? %>
<time class="last-build-time" datetime="<%= project.last_build_time.iso8601 %>" title="<%= project.last_build_time %>">
<%= project.last_build_time.to_time.ago_in_words %>
</time>
<% end %>
</a>
<% end %>
</aside>
<div id="projects-board">
<% if @unsuccessful_projects.empty? %>
<div class="wrapper">
<article class="project success">
<h1>
<a href="javascript:void();">✓ Hooray!</a>
</h1>
<p class="status">All builds are passing!</p>
</article>
</div>
<% else %>
<% @unsuccessful_projects.each do |project| %>
<div class="wrapper">
<article class="project <%= project.last_build_status %> <%= project.current_status %>">
<h1>
<a href="<%= project.build_url%>" target="_TOP"><%= project.name %></a>
</h1>
<p class="status">
Build <%= project.last_build_id %> <strong><%= project.last_build_status %></strong>
<% unless project.last_build_time.nil? %>
<time class="build-time invisible" datetime="<%= project.last_build_time.iso8601 %>" title="<%= project.last_build_time %>">
<%= project.last_build_time.to_time.ago_in_words %>
</time>
<% end %>
</p>
</article>
</div>
<% end %>
<% end %>
<div>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="javascripts/application.js"></script>
</body>
</html>