Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moved css to stylesheet; updated views

  • Loading branch information...
commit 1cafde1fbdf48199a98e6627c0c29c6a44854566 1 parent 0d4a8d5
@mwmitchell authored
View
4 web/app/models/swinburne.rb
@@ -36,10 +36,10 @@ def self.find_by_poem_title_id poem_title_id
def self.find_variant_poem variant_id, poem_title_id
connection.find(
:q=>%(poem_title_id:"#{poem_title_id}"),
- :fq => [%(collection_id:"swinburne"),%(variant_s:"#{variant_id}")],
+ :fq => [%(collection_id:"swinburne"),%({!tag=variant}variant_s:"#{variant_id}")],
:rows => ALLROWS,
'facet' => true,
- 'facet.field' => ['variant_s'],
+ 'facet.field' => ['{!ex=variant}variant_s'],
'facet' => true,
'facet.mincount' => 1
)
View
2  web/app/views/swinburne/_shared_fields.html.erb
@@ -9,7 +9,7 @@
<dd>
<ul>
<% @response.facets.detect{|f|f.name=='variant_s'}.items.each do |variant| %>
- <li><%= link_to variant.value, swinburne_poem_page_path(params[:poem_slug], "#{variant.value}-0") %></li>
+ <li><%= link_to variant.value, swinburne_variant_poem_path("#{variant.value}", params[:poem_id]) %></li>
<% end %>
</ul>
</dd>
View
37 web/public/stylesheets/swinburne.css
@@ -0,0 +1,37 @@
+h2 span.title{
+ display:inline;
+ font-style:italic;
+}
+.tei.prepub{
+ display:none;
+}
+.tei.head{
+ display:none;
+}
+.tei.hi{
+ display:inline;
+ font-style:italic;
+}
+.tei.rend__sc{
+ text-transform: uppercase;
+}
+.tei.rend__i{
+ font-style:italic;
+}
+.tei.note{
+ background-color:#EFEFEF;
+ margin:0 1em;
+}
+.tei.text{letter-spacing:.05em;}
+blockquote{
+ border : 1px solid #888;
+ border-right:none;
+ width: 200px;
+ float: right;
+ margin: 0px;
+ padding: 10px;
+ background-color: #ccc;
+ quotes: "\201C" "\201D";
+}
+blockquote:before { content: open-quote; font-weight: bold; }
+blockquote:after { content: close-quote; font-weight: bold; }
Please sign in to comment.
Something went wrong with that request. Please try again.