Skip to content

Commit

Permalink
Add styles to the last updated lines
Browse files Browse the repository at this point in the history
  • Loading branch information
peregrinator committed Oct 10, 2011
1 parent 570e38f commit f991b72
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -28,12 +28,16 @@ webrat.log
/public/stylesheets/header.css
/public/stylesheets/ie.css
/public/stylesheets/ie6.css
/public/stylesheets/ie7.css
/public/stylesheets/ie9.css
/public/stylesheets/print.css
/public/stylesheets/reset.css
/public/stylesheets/screen.css
/public/stylesheets/text.css
/public/stylesheets/utilities.css
/public/stylesheets/enhancements.css
/app/stylesheets/*.css
/app/stylesheets/admin/*.css
/public/system
/public/uploads
/tmp
Expand Down
12 changes: 6 additions & 6 deletions Gemfile.lock
Expand Up @@ -41,7 +41,7 @@ GEM
mime-types
xml-simple
bcrypt-ruby (2.1.2)
bson (1.0.9)
bson (1.2.4)
bson_ext (1.3.0)
builder (2.1.2)
capistrano (2.5.19)
Expand Down Expand Up @@ -107,13 +107,13 @@ GEM
nokogiri (>= 1.2.1)
mime-types (1.16)
modularity (0.6.1)
mongo (1.0.9)
bson (>= 1.0.5)
mongoid (1.9.2)
mongo (1.2.4)
bson (>= 1.2.4)
mongoid (1.9.5)
activesupport (< 3.0.0)
bson (~> 1.0.1)
bson (~> 1.2.1)
durran-validatable (>= 2.0.1)
mongo (~> 1.0.1)
mongo (~> 1.2.1)
will_paginate (< 2.9)
mysql (2.7)
net-scp (1.0.4)
Expand Down
6 changes: 6 additions & 0 deletions app/stylesheets/design/_public_inspection.scss
@@ -1,3 +1,9 @@
#special-filing span.updated_at, #regular-filing span.updated_at {
font-size: 12px;
display: block;
font-weight: normal;
font-style: italic;
}
#entries span.pdf.small {
background: sprite-image('icons/icon_pdf_small.png', 0, 0, 50px);
padding-left: 5px;
Expand Down
16 changes: 11 additions & 5 deletions app/views/public_inspection/by_date.html.erb
Expand Up @@ -5,11 +5,17 @@

<div id="content_area">

<h2 id="special-filing">Special Filing <span>updated at <%= @issue.special_filings_updated_at.to_s(:time_then_date) %></h2>
<%= render :partial => "documents", :locals => {:documents_without_agencies => @special_documents.entries_without_agencies, :agencies => @special_documents.agencies, :pi_type => 'special'} %>

<h2 id="regular-filing">Regular Filing <span>updated at <%= @issue.regular_filings_updated_at.to_s(:time_then_date) %></span></h2>
<%= render :partial => "documents", :locals => {:documents_without_agencies => @regular_documents.entries_without_agencies, :agencies => @regular_documents.agencies, :pi_type => 'regular'} %>
<h2 id="special-filing">
Special Filing
<span class="updated_at">updated at <%= @issue.special_filings_updated_at.to_s(:time_then_date) %></span>
</h2>
<%= render :partial => "documents", :locals => {:documents_without_agencies => @special_documents.entries_without_agencies, :agencies => @special_documents.agencies, :pi_type => 'special'} %>

<h2 id="regular-filing">
Regular Filing
<span class="updated_at">updated at <%= @issue.regular_filings_updated_at.to_s(:time_then_date) %></span>
</h2>
<%= render :partial => "documents", :locals => {:documents_without_agencies => @regular_documents.entries_without_agencies, :agencies => @regular_documents.agencies, :pi_type => 'regular'} %>

</div> <!-- END CONTENT AREA -->

Expand Down

0 comments on commit f991b72

Please sign in to comment.