diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-03-06 13:26:27 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-28 09:07:19 +0100 |
commit | 91c3a5f36bf1b644dce6295df800b543cd069e15 (patch) | |
tree | 76008276f19001204bb012bf6d61584f68efb4be | |
parent | b5d9ed055c6b726be11519df560b6af2e19ee4d7 (diff) |
Move styling out of translatable text as much as possible.
-rw-r--r-- | app/assets/stylesheets/widget.css | 7 | ||||
-rw-r--r-- | app/views/widgets/show.html.erb | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/app/assets/stylesheets/widget.css b/app/assets/stylesheets/widget.css index 2c7a746ba..704769199 100644 --- a/app/assets/stylesheets/widget.css +++ b/app/assets/stylesheets/widget.css @@ -89,14 +89,11 @@ a:active { top: 44px; width: 100px; text-align: center; - + line-height: 1.3em; } .alaveteli-widget__count { font-size: 55px; -} - -.alaveteli-widget__people { - line-height: 1.3em; + line-height: 55px; } .alaveteli-widget__bottom a { diff --git a/app/views/widgets/show.html.erb b/app/views/widgets/show.html.erb index bf9b57e40..73b875fa7 100644 --- a/app/views/widgets/show.html.erb +++ b/app/views/widgets/show.html.erb @@ -49,9 +49,11 @@ </div> <div class="alaveteli-widget__people-count"> <% count = TrackThing.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) + 1 + WidgetVote.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) %> - <%= n_('<div class="alaveteli-widget__count">{{count}}</div> <div class="alaveteli-widget__people">person wants to know</div>', '<div class="alaveteli-widget__count">{{count}}</div> <div class="alaveteli-widget__people">people want to know</div>', count, :count => count) %> + <%= n_('<div class="alaveteli-widget__count">{{count}}</div> person wants to know', '<div class="alaveteli-widget__count">{{count}}</div> people want to know', count, :count => count) %> </div> </div> + + <% if @user existing_track = TrackThing.find_existing(@user, @track_thing) |