Permalink
Browse files

Merge branch 'executive_orders'

  • Loading branch information...
2 parents 52a7700 + 5815e1b commit 9edc911debf170135180b73e1e1ebfa9f887fa00 @andrewcarpenter andrewcarpenter committed Apr 6, 2012
@@ -39,3 +39,54 @@
padding: 2px .5em 1px;
}
+/* by_president_and_year.html */
+#executive_orders .executive_order_wrapper {
+ margin-left: 20px;
+ clear: both;
+}
+
+#executive_orders .executive_order_wrapper h4 .eo_number {
+ display: inline-block;
+ width: 80px;
+ vertical-align: top;
+ }
+
+#executive_orders .executive_order_wrapper h4 a {
+ font-weight: normal;
+ display: inline-block;
+ width: 655px;
+ }
+#executive_orders .executive_order_wrapper .metadata_wrapper { margin-left: 84px; }
+
+#executive_orders .executive_order_wrapper dl#col-1 { width: 150px; }
+#executive_orders .executive_order_wrapper dl#col-2 { width: 200px; }
+#executive_orders .executive_order_wrapper dl#col-3 { width: 215px; }
+
+#executive_orders .executive_order_wrapper dl dt {
+ clear: both;
+ float: left;
+ }
+#executive_orders .executive_order_wrapper dl dd {
+ float: left;
+ padding-top: 4px;
+ margin-left: 5px;
+ }
+
+#executive_orders .executive_order_wrapper dl.metadata {
+ font-size: 1em;
+ margin: 0 20px 30px 0;
+ float: left;
+ }
+#executive_orders .executive_order_wrapper dl.metadata dt {
+ color: #6E6E6E;
+ height: 19px;
+ }
+#executive_orders .executive_order_wrapper dl.metadata dd {
+ margin-left: 1em;
+ margin-bottom: 3px;
+ line-height: 1em;
+ padding-left: 10px;
+ text-indent: -10px;
+ }
+#executive_orders .executive_order_wrapper dl.metadata dd:last { margin-bottom: none; }
+
@@ -31,27 +31,32 @@
</div>
<% @eo_collection.executive_orders.each do |executive_order| %>
- <div>
- <h4>EO <%= executive_order.executive_order_number %>: <%= link_to executive_order.title, entry_path(executive_order) %></h4>
+ <div class="executive_order_wrapper">
+ <h4>
+ <span class="eo_number">EO <%= executive_order.executive_order_number %>:</span>
+ <%= link_to executive_order.title, entry_path(executive_order) %>
+ </h4>
- <dl>
- <dt><%= link_to 'PDF', executive_order_path(executive_order.executive_order_number, :format => :pdf) %></dt>
- <dd><%= pluralize executive_order.human_length, 'page' %></dd>
+ <div class="metadata_wrapper">
+ <dl class="metadata" id="col-1">
+ <dt><%= link_to 'PDF', executive_order_path(executive_order.executive_order_number, :format => :pdf) %></dt>
+ <dd><%= pluralize executive_order.human_length, 'page' %></dd>
- <dt><%= link_to 'Permalink', executive_order_path(executive_order.executive_order_number) %></dt>
- </dl>
- <dl>
- <dt>Signed:</dt>
- <dd><%= executive_order.signing_date %></dd>
- <dt>Published:</dt>
- <dd><%= executive_order.publication_date %></dd>
- </dl>
- <dl>
- <dt>FR Citation:</dt>
- <dd><%= executive_order.citation %></dd>
- <dt>FR Document Number:</dt>
- <dd><%= executive_order.document_number %></dd>
- </dl>
+ <dt><%= link_to 'Permalink', executive_order_path(executive_order.executive_order_number) %></dt>
+ </dl>
+ <dl class="metadata" id="col-2">
+ <dt>Signed:</dt>
+ <dd><%= executive_order.signing_date %></dd>
+ <dt>Published:</dt>
+ <dd><%= executive_order.publication_date %></dd>
+ </dl>
+ <dl class="metadata" id="col-3">
+ <dt>FR Citation:</dt>
+ <dd><%= executive_order.citation %></dd>
+ <dt>FR Document Number:</dt>
+ <dd><%= executive_order.document_number %></dd>
+ </dl>
+ </div>
</div>
<% end %>
<% end %>

0 comments on commit 9edc911

Please sign in to comment.