You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by Sam Ruby <ru...@apache.org> on 2015/12/13 16:14:53 UTC
[whimsy.git] [15/37] Commit b8a7959: bring in bootstrap
Commit b8a7959a6566ab6a81fb511ebf2d27a43b5c0ec6:
bring in bootstrap
Branch: refs/heads/secmail
Author: Sam Ruby <ru...@intertwingly.net>
Committer: Sam Ruby <ru...@intertwingly.net>
Pusher: rubys <ru...@apache.org>
------------------------------------------------------------
server.rb | +
views/index.html.rb | +++++++++++++++
------------------------------------------------------------
16 changes: 16 additions, 0 deletions.
------------------------------------------------------------
diff --git a/server.rb b/server.rb
index fd67f6f..6138a7e 100644
--- a/server.rb
+++ b/server.rb
@@ -3,6 +3,7 @@
#
require 'wunderbar/sinatra'
+require 'wunderbar/bootstrap'
require_relative 'mailbox'
diff --git a/views/index.html.rb b/views/index.html.rb
index 73dbe8d..0b91420 100644
--- a/views/index.html.rb
+++ b/views/index.html.rb
@@ -1,5 +1,20 @@
_html do
+ _style %{
+ td:nth-child(2), th:nth-child(2) {
+ padding-right: 7px;
+ padding-left: 7px;
+ }
+ }
+
_table do
+ _thead do
+ _tr do
+ _th 'Timestamp'
+ _th 'From'
+ _th 'Subject'
+ end
+ end
+
@messages.each do |id, description|
# skip if there are no attachments at all