Skip to content

Commit 1cafde1

Browse files
committed
moved css to stylesheet; updated views
1 parent 0d4a8d5 commit 1cafde1

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
lines changed

web/app/models/swinburne.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def self.find_by_poem_title_id poem_title_id
3636
def self.find_variant_poem variant_id, poem_title_id
3737
connection.find(
3838
:q=>%(poem_title_id:"#{poem_title_id}"),
39-
:fq => [%(collection_id:"swinburne"),%(variant_s:"#{variant_id}")],
39+
:fq => [%(collection_id:"swinburne"),%({!tag=variant}variant_s:"#{variant_id}")],
4040
:rows => ALLROWS,
4141
'facet' => true,
42-
'facet.field' => ['variant_s'],
42+
'facet.field' => ['{!ex=variant}variant_s'],
4343
'facet' => true,
4444
'facet.mincount' => 1
4545
)

web/app/views/swinburne/_shared_fields.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<dd>
1010
<ul>
1111
<% @response.facets.detect{|f|f.name=='variant_s'}.items.each do |variant| %>
12-
<li><%= link_to variant.value, swinburne_poem_page_path(params[:poem_slug], "#{variant.value}-0") %></li>
12+
<li><%= link_to variant.value, swinburne_variant_poem_path("#{variant.value}", params[:poem_id]) %></li>
1313
<% end %>
1414
</ul>
1515
</dd>

web/public/stylesheets/swinburne.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
h2 span.title{
2+
display:inline;
3+
font-style:italic;
4+
}
5+
.tei.prepub{
6+
display:none;
7+
}
8+
.tei.head{
9+
display:none;
10+
}
11+
.tei.hi{
12+
display:inline;
13+
font-style:italic;
14+
}
15+
.tei.rend__sc{
16+
text-transform: uppercase;
17+
}
18+
.tei.rend__i{
19+
font-style:italic;
20+
}
21+
.tei.note{
22+
background-color:#EFEFEF;
23+
margin:0 1em;
24+
}
25+
.tei.text{letter-spacing:.05em;}
26+
blockquote{
27+
border : 1px solid #888;
28+
border-right:none;
29+
width: 200px;
30+
float: right;
31+
margin: 0px;
32+
padding: 10px;
33+
background-color: #ccc;
34+
quotes: "\201C" "\201D";
35+
}
36+
blockquote:before { content: open-quote; font-weight: bold; }
37+
blockquote:after { content: close-quote; font-weight: bold; }

0 commit comments

Comments
 (0)