Guest User

Untitled

a guest
Jun 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. diff --git a/web/app/controllers/blists_controller.rb b/web/app/controllers/blists_controller.rb
  2. index ee4f953..c4b0bb9 100644
  3. --- a/web/app/controllers/blists_controller.rb
  4. +++ b/web/app/controllers/blists_controller.rb
  5. @@ -67,18 +67,20 @@ class BlistsController < SwfController
  6. end
  7. @view.register_opening
  8. @view_activities = Activity.find({:viewId => @view.id})
  9. - end
  10.  
  11. - if @view.description.blank?
  12. - @meta_description = "View this dataset"
  13. - updated_at = help.blist_long_date(@view.rowsUpdatedAt)
  14. - if updated_at
  15. - @meta_description += ", last updated #{updated_at}"
  16. + # If we're displaying a single dataset, set the title to the description.
  17. + if @view.description.blank?
  18. + @meta_description = "View this dataset"
  19. + updated_at = help.blist_long_date(@view.rowsUpdatedAt)
  20. + if updated_at
  21. + @meta_description += ", last updated #{updated_at}"
  22. + end
  23. + else
  24. + @meta_description = @view.description
  25. end
  26. - else
  27. - @meta_description = @view.description
  28. + @meta_keywords = @view.tags
  29. end
  30. - @meta_keywords = @view.tags
  31. +
  32. @data_component = params[:dataComponent]
  33. @popup = params[:popup]
  34.  
  35. @@ -373,4 +375,4 @@ end
  36. class Helper
  37. include Singleton
  38. include ApplicationHelper
  39. -end
  40. \ No newline at end of file
  41. +end
  42. diff --git a/web/app/views/blists/show.html.erb b/web/app/views/blists/show.html.erb
  43. index be8f216..d357d70 100644
  44. --- a/web/app/views/blists/show.html.erb
  45. +++ b/web/app/views/blists/show.html.erb
  46. @@ -2,7 +2,7 @@
  47. <%= @view ? auto_discovery_link_tag(:rss, "/views/#{@view.id}/rows.rss?accessType=WEBSITE") : '' %>
  48. <%= stylesheet_link_tag 'table-core', 'table-blist-grid', "blist-grid-screen",
  49. :cache => "cache/blists_show_all" %>
  50. - <title><%= @view.name %> | <%= t(:page_title) %></title>
  51. + <title><%= @view ? @view.name : 'Design a Dataset' %> | <%= t(:page_title) %></title>
  52. <%= meta_tags :description => @meta_description, :keywords => @meta_keywords %>
  53. <% end %>
  54.  
  55. diff --git a/web/static-content b/web/static-content
  56. index 86570c0..ec61983 160000
  57. --- a/web/static-content
  58. +++ b/web/static-content
  59. @@ -1 +1 @@
Add Comment
Please, Sign In to add comment