Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed & error in feed.xml, added 'squeezing' to title string

  • Loading branch information...
commit dc690896b7a8e2995941a3351542e15bbbffcd6e 1 parent aaa9a6b
@cr0t authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  views/feed.erb
  2. +1 −1  views/job_list.erb
View
2  views/feed.erb
@@ -6,7 +6,7 @@
<description>Habrahabr.ru Jobs Feed</description>
<% @jobs.each do |job| %>
<item>
- <title><%= (job['title'] + ' ' + job['money_num'].to_s + ' (' + job['money'] + ')').squeeze(" ") %></title>
+ <title><%= (job['title'].gsub('&', '&amp;') + ' ' + job['money_num'].to_s + ' (' + job['money'] + ')').squeeze(" ") %></title>
<pubDate><%= Time.parse(job['date']).httpdate %></pubDate>
<link><%= job['url'] %></link>
<description><%= job['region'].squeeze(" ") %></description>
View
2  views/job_list.erb
@@ -8,7 +8,7 @@
<div class="span-24 last <%= (index % 2) == 0 ? 'even' : 'odd' %>">
<div class="span-10"><%= job['title'] %></div>
<div class="span-4"><%= job['date'] %></div>
- <div class="span-5"><%= job['region'] %></div>
+ <div class="span-5"><%= job['region'].squeeze(" ") %></div>
<div class="span-3"><%= job['money_num'] %> (<%= job['money'] %>)</div>
<div class="span-2 last"><a href="<%= job['url'] %>" target="_blank">Перейти&nbsp;&rarr;</a></div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.