Browse Source

refactoring the index

encrypt 9 years ago
parent
commit
232dc68da6
1 changed files with 11 additions and 7 deletions
  1. 11 7
      views/index.erb

+ 11 - 7
views/index.erb

@@ -1,14 +1,18 @@
+<!doctype html>
 <html>
   <head>
     <title>Is Hacklabbo open?</title>
+    <style>
+      body {
+      text-align: center;
+      }
+      .date {
+      font-size: 9pt;
+      }
+    </style>
   </head>
   <body>
-    <center><h1>
-      <% if state[:open] %>
-      <%= "yes" %>
-      <% else %>
-      <%= "no"%>
-      <% end %>
-      </h1>b</center>
+    <h1><%= state[:open] ? "yes" : "no" %></h1>
+    <em class="date">last update <%= state[:date].nil? ? "never" : state[:date].to_s %></em>
   </body>
 </html>