Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarmis committed May 30, 2012
1 parent 99eb256 commit 7ea63e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/mobile_client/views/digest.slim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
/ = topic_name
div data-role="collapsible"
- topic_name = k.split(' ').map {|w| w.capitalize }.join(' ').en.plural
h3 = topic_name
h3
- topic_name = "Things To Do" if topic_name == "Things To Does"
= topic_name
ul data-role="listview" data-inset="true" data-split-theme="d" data-theme="a" data-filter="false" data-divider-theme="a" style="margin:0;"
- v.each do |i|
li data-filtertext="#{topic_name} #{i.split(',')[0]} #{i.split(',')[1]}" data-theme="a"
Expand Down
7 changes: 6 additions & 1 deletion lib/mobile_client/views/place.slim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
= @result['phone']
- @result['urls'].each do |i|
a href="#{i.to_s}" data-role="button" data-inline="true" data-mini="true" data-theme="a"
= i.split('/')[2].tr('www.','').gsub!('com','')
- r = Regexp.new "(?![http://])(.*)"
- a = i.to_s
- simplified_url = a.match(r).to_s.split('/')[0]
/- simplified_url = i.gsub('/(?![http://])(.*)(.*\/|\.[^.]*){1}/', '')
/= i.split('/')[2].tr('www.','').gsub!('com','')
= simplified_url.gsub('.com','').gsub('www.','').gsub('.co','')

p
a data-role="button" href="/similar-results?result_id=#{@result['result_id']}&topic_ids=#{@topic}&lat=#{@result['lat']}&lng=#{@result['lng']}"
Expand Down

0 comments on commit 7ea63e0

Please sign in to comment.